LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   A few questions from a new user. Driver related (https://www.linuxquestions.org/questions/mandriva-30/a-few-questions-from-a-new-user-driver-related-88442/)

davess4 09-02-2003 11:35 AM

A few questions from a new user. Driver related
 
Hi guys,
I just installed Mandrake 9.1 from CDs I made with iso images I downloaded off the web. Everything is up and running fine except I can't get drivers installed for my NIC.
I have an onboard NIC, 3com 3c2000 gigabit LOM. I had it working under redhat but had other problems with redhat so I ditched it. The error I get is when I try and run the make command to build the driver.
-------
[root @localhost 3c2000]# make load
/bin/sh: line 1: gcc: command not found
/bin/sh: line 1: gcc: command not found
gcc -D_KERNEL__ -Wall -Wstrict-prototypes -02 -DMODULE -I. -DSK_USE_CSUM -I /usr/src/linux-2.4/include -c -o skge.o skge.c
make: gcc: Command not found
make: *** [skge.o] Error 127
-------

I do not understand the error at all except that it seems on my installation there is no /usr/src/ folder. there is only /usr/RPMs/

Did I get bad images? or what I'm lost here. any advice would be great I really want to get the computer online.

-Dave

iainagray 09-02-2003 03:38 PM

Hi,

I've never seen the "make load" command you speak about, is the driver one off of the CD's or one you downloaded from the net? Is this command one that was specified in the INSTALL or README file that came with the driver?

With regards to the /usr/src dir on my install the RPMS dir is a sub of src, ie /usr/src/RPMS

davess4 09-02-2003 03:41 PM

the make load command was specified on the readme that came with the driver. and I got the driver from the CD that came with the Motherboard I bought. The one on the net is exactly the same. The make load command worked for me before when I was using Redhat, but it seems that it is looking for something in the directory usr/src/linux-2.4/include
which doesn't even exist with my install, I'm not sure why. I was wondering if I could have gotten bad CDs or something.

jcksrobbins 09-02-2003 05:01 PM

Someone correct me if I'm wrong, but it sounds like you don't have a compiler installed.

Try going to Configuration>Packaging>Install Software. Type "gcc" (without quotes) in the search box.

Install what it finds and then try to install your drivers again.

iainagray 09-02-2003 06:41 PM

Check to see if the following files are in /usr/bin
gcc, gcc-3.2.2, gcc3.2-version
by changing to /usr/bin and typing
ls gcc*

as jcksrobbins said, it looks as of bash can't find gcc rather than gcc getting confused with the "load" extension

davess4 09-02-2003 10:01 PM

I did that, now I don't get GCC errors, but I get errors with version.h saying I need to install the kernel source... Any idea's?

-Dave

davess4 09-03-2003 03:00 PM

I figured it out, thanks guys, I didn't have the kernel source installed... nor did I know I had to. I'm all set for the moment.

-Dave


All times are GMT -5. The time now is 04:36 PM.