The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


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
Installing Firefox and now ended up installing latest glibc scriptingmani Linux 1 08-09-2007 01:28 PM
SUNWglmr -- rasctrl environment monitoring driver for i2c or SCSI device driver ? roygoodwin SUN Solaris 1 12-26-2006 07:59 PM
To Driver Computekwes Post Here to Contact Site Administrators and Moderators 13 09-20-2004 01:21 PM
Installing driver in linux redhat... what am I doing wrong? Minnesota Red UNIX for Dummies Questions & Answers 7 06-21-2003 08:22 PM
NIC Driver s_aamir UNIX for Advanced & Expert Users 1 11-20-2002 03:03 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 08-08-2008
Registered User
 

Join Date: Jan 2008
Posts: 3
Installing a driver

Hi All,

I am trying to install a driver for a CAN card of a machine running Ubuntu 8.04. It cames with three .tgz files for gcc2, gcc3, and k26. The current version of gcc is 4.2.1, which is causing me problems. I installed gcc-3.3 using

sudo apt-get install gcc-3.3

But when I run the make command for the driver, it still is using gcc 4.2.1, and as a result is not compiling.

How do I switch the PATH so that I am using gcc-3.3 to install the driver. I am very new to Linux, please help.

Thanks,
Brian
Reply With Quote
Forum Sponsor
  #2  
Old 08-08-2008
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
export PATH=/some/path:/some/other/path:/and/another/path:.....

The PATH variable is a list of directory names separated by colons. The list of directories is searched in the order in which they appear in this list. Find out where gcc 3.3 is and add this directory to the beginning of the current value of $PATH:

PATH=/some/new/directory:$PATH

Display the $PATH variable to make sure everything was done correctly:

echo $PATH

You might get a list which reads like:

/some/new/directory:/bin:/etc:/usr/bin:/usr/bin/X11:/usr/ucb:....

or something such. This should do it. Probably you have to change the library paths and other parts of the environment too when you change the compiler version.

I hope this helps.

bakunin
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0