Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-17-2006, 04:19 AM   #1
LQ Newbie
Registered: Aug 2006
Posts: 1

Rep: Reputation: 0
different version gcc for diff user?

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.


(smoking is deadly)
Old 08-17-2006, 04:13 PM   #2
Harry Seldon
Registered: Feb 2004
Distribution: SLES 9
Posts: 112

Rep: Reputation: 15
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
diff between GNU,GMT and WAUST time version izza_azhar Programming 2 01-24-2005 06:37 AM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 08:17 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration