LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   different version gcc for diff user? (https://www.linuxquestions.org/questions/linux-software-2/different-version-gcc-for-diff-user-474683/)

Fumar-mata 08-17-2006 04:19 AM

different version gcc for diff user?
 
Goodday,
I recently installed linux yet again (redhat, fedora, debian etc) and now run once again Debian.
Since my computer has a Senao Sub-316 wireless usb adapter, i have to install ndiswrapper.
To compile ndiswarpper i need gcc 3.4, i currently had 3.3.5

So i went up downloaded the tarball, put it into home/user.
Got su, and did the install (which took about 2.5 hours)
After the installation i did gcc --version and gcc -v which still said i had gcc 3.3.5
Then i did apt-get install gcc-3.4
and it informed me gcc-3.4 is already the most recent version.
After missing the point i did some work as the "user"
And then realized THAT account did have gcc 3.4.6!
Although i cant compile ndiswarpper because i need to be root to do that (duh)
I searched for hours on the internet to figure out how i can perhaps relay the root path to point to that version. but no success.

I normally dont go on a messageboard unless i really haveto. though i really dont know an easy way to resolve this (and i bet there is an easy way)
Perhaps anyone can be of assistence, otherwise point out how to prevent this.

Sincerely,

Fumar-mata
(smoking is deadly)

Harry Seldon 08-17-2006 04:13 PM

Run a which gcc command as user to determine which executable is being called under that account then su to root and do the same. Make sure the PATH variable has the location for the more current version of gcc before the location of your older gcc version. When you execute a command your shell's going to use whichever command it first finds in your PATH.


All times are GMT -5. The time now is 01:30 PM.