Installing a driver


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Installing a driver
# 1  
Old 08-08-2008
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
# 2  
Old 08-08-2008
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
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Installing Printer driver

So I have a canon printer I'm trying to set it up I've gotten the driver from here; wget -c http://gdlp01.c-wss.com/gds/1/0100005511/01/cnijfilter-mg7100series-4.00-1-rpm.tar.gz I try and run the script thats below; But I know where i have to copy the driver too. I was wonder what file i have... (10 Replies)
Discussion started by: jtsmith90
10 Replies

2. Red Hat

Issues in Installing Ethernet Driver on RHEL6

Am using Toshiba Satellite C850-l5212 Laptop . I have installed RHEL6 server on it ( Linux 2.6.32-220.el6.x86_64 ) Now ethernet eth0 is no working .Am not able to find eth0 when i do ifconfig -a . Later found that ethernet driver was not installed. tar jxvf compat-drivers-2013-03-15-u.tar.bz2... (2 Replies)
Discussion started by: senthilcaesar
2 Replies

3. Red Hat

Installing broadcom driver for wireless access

I use lspci and dmesg command and find out that i have ipw2000 wireless card on my laptop. I want to install driver for that but i'm not getting proper driver for that.My linux version is el5 and architecture is i386. (0 Replies)
Discussion started by: amitbharad
0 Replies

4. Hardware

Difference between platform driver,codec driver and Machine driver

In general terms what are the differences platform driver,codec driver and Machine driver? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

5. Ubuntu

Is Ubuntu OS good? Do you need to install any driver after installing it?

I'm planning to install the Ubuntu OS on my laptop(currently has windows Vista), but I don't know if Ubuntu is good. Do you need to install any drivers for Ubuntu? Can I send stuff to my printer in Ubuntu? Is it compatible with my printer driver? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

6. UNIX for Dummies Questions & Answers

boot option Available partitions 0b00 1048575 sr0 driver:sr 0800 488386584 sda driver:sd

Help, suspect hacked via serial or electric! any ideas on error "Pid:1, comm:swapper Tainted:G W 2.6.35-22 generic #33 -unbutu device = "(null)" or unknown-blocklist(8.1) please append a correct "root"boot option Available partitions 0b00 1048575 sr0 driver:sr 0800 488386584 sda driver:sd. Thanks... (3 Replies)
Discussion started by: kryclear
3 Replies

7. UNIX for Dummies Questions & Answers

Installing device driver for TSM library

I am installing an lin_tape-1.38.0-1.src.rpm file but it won't install Linux version Linux 2.6.18-164.el5xen #1 SMP Thu Sep 3 04:41:04 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux but I am getting issues when installing # rpmbuild --rebuild lin_tape-1.38.0-1.src.rpm Installing... (1 Reply)
Discussion started by: karlochacon
1 Replies

8. Solaris

Installing Network on Computer, might be driver

Hi All, Just completing my second Solaris installation, in the previous one which was on a Dell X64 machine, I went through the Network configuration setting, on the current computer which I am installing Solaris on, its a custom built machine and for some reason, I didnt see the screen where I... (1 Reply)
Discussion started by: platforminc
1 Replies

9. Solaris

SUNWglmr -- rasctrl environment monitoring driver for i2c or SCSI device driver ?

I've been researching minimizeing Solaris 8 and found that on the web page http://www.sun.com/bigadmin/content/packagelist/s8u7PkgList/p2.html the package SUNWglmr is listed as "rasctrl environment monitoring driver for i2c, (Root) (32-bit)" while in the document "Solaris 8 minimize-updt1.pdf"... (1 Reply)
Discussion started by: roygoodwin
1 Replies

10. UNIX for Dummies Questions & Answers

Installing driver in linux redhat... what am I doing wrong?

I am trying to install this driver: http://www.asus.com/support/download/selectftp.aspx?l1_id=1&l2_id=15&l3_id=15&m_id=1&f_name=5702_558.zip~zaqwedc hoping it will correct my problem with my ethernet card. I am following the instructions in the text file that came with download... it says to... (7 Replies)
Discussion started by: Minnesota Red
7 Replies
Login or Register to Ask a Question