• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

I thought Linux did almost everything Unix does? What am I missing?

wjsulliv

Senior member
I am taking an operating systems course this quarter, based in unix or windows.

I wanted to learn unix, and since the unix system they provide is only available online (via a telnet type setup) I thought I would install Mandrake 8.1 on my laptop and use that.

I installed it to startx automatically, and figured I could just use the shell?

However, things I expected to use commands just like I would in unix (Like "g++ program.cpp -o program"). That gives me an error saying that g++ is invalid?

What am I missing? Is it because I am using the shell? Did I fail to install something? What would I use for a c++ developement enviroment?

thanks
 
Sounds like you forgot to install the compiler packages with mandrake. Not odd since they usually don't come as a standard option with distros.

I'm not sure if g++ is in the gcc package, but you can start there and work your way in. You'll need to install the gcc.2.9.whatever.rpm package, and that requires the kernel-header package to compile against.

You can do that by mounting your cdrom and then go into the RPMS directory and type (fill in the version numbers off the cd)
rpm -ivh gcc.2.9.xx.xx.rpm kernel-headers.2.4.xx-xx.rpm

You may need to add some other ones in there as well. Just see what file it is asking for if it complains and look for a package with the same name, then add it to the rpm command.
 
Welcome to the world of Unix system administration. Be prepared to learn more than you ever wanted to know about Unix. Be careful, because you may learn just enough to keep you coming back for more...
 
The rpm -qa|grep gcc command returns the following:

gcc3.0-cpp-3.0.1-1mdk

What does that mean?


Also FUBAR, I presume I install the rpm for gcc from my mandrake install disks?
Considering this is virtually a fresh install right now, could I just reinstall the whole thing?

Thanks
 
The result of the rpm command means that you've somehow managed to install the gcc v3.0 compiler, but not the older compilers.
gcc v3.0 is still somewhat unsupported. Most things suggest using gcc 2.95.* (2.96 for RedHat & Mandrake folks).

So, you need to install the compilers & supporting stuff. You could reinstall the whole distro, but you shouldn't need to by a long shot.

The needed rpms should be on your install disks. Here is what I think you will need:

gcc-c++-2.96-98
gcc-2.96-98
libstdc++-2.96-98
libstdc++-devel-2.96-98
glibc-2.2.4-19.3
glibc-devel-2.2.4-19.3
cpp-2.96-98
binutils-2.11.90.0.8-12

The version numbers may be slightly different from what I've listed. And some of the stuff may already be installed.
If it comes back and says your missing dependencies, just install them & continue. Everything you need should be on the install disks.
Good luck.


 
Back
Top