![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem Setting $PATH | greengrass | SUN Solaris | 1 | 04-08-2007 12:40 AM |
| Setting path | radhika03 | Shell Programming and Scripting | 5 | 01-22-2007 12:11 PM |
| Help on setting path variable | randomcz | UNIX for Dummies Questions & Answers | 4 | 11-15-2006 03:41 PM |
| Setting $PATH for a particular file...???? | moxxx68 | UNIX for Dummies Questions & Answers | 4 | 10-08-2004 04:23 AM |
| Global PATH setting | jxh | UNIX for Dummies Questions & Answers | 5 | 07-20-2001 06:23 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Setting path for GCC?
Dear all, I have downloaded the latest version of gcc --- gcc-3.3.1.tar.gz from gnu.org. My Linux distribution is Mandrake 9.0. This was how I installed it:
su - passwrd: mkdir /usr/local/src cd /usr/local/src gunzip /tmp/gcc-3.3.1.tar.gz #where I downloaded the file tar xvf /tmp/gcc-3.3.1.tar cd /opt/build /usr/local/src/gcc-3.3.1/configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-languages=c,c++,ada,f77,objc,java --host=i586-mandrake-linux-gnu --with-system-zlib make make install After I have done all these, I used "which, whereis, -v, and --version" to check the version of GCC. Quote:
I have two questions here: First, how could I set system to use gcc-3.3.1? Someone told me because gcc-3.2 was installed in /usr/bin and gcc-3.3.1 was in /usr/local/bin so I have to change the order in $PATH. I didn't understand that clear, so I went to ~/.bashrc and changed it. But after I rebooted the system, I saw the system was still using gcc-3.2. As a newbie, I hope someone could walk me through it step-by-step or even a little tip will be appreciated. My second question is about removing the older version of gcc. I don't think I need two versions of gcc in my system since they require space. I want to remove the older version. My Mandrake 9.0 uses rpm to install gcc-3.2 in the system, so I tried to use "rpm -e gcc" to delete the old version. I failed because of the software dependency. Is there any way to remove it and not hurting my other programs have installed in my computer? Thanx in advanced. HOUSCOUS |
| Bookmarks |
| Tags |
| linux mandrake |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|