LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Such a n00b (https://www.linuxquestions.org/questions/linux-newbie-8/such-a-n00b-112576/)

Quinner 11-05-2003 04:36 AM

Such a n00b
 
Right, any help greatly appreciated.

I am having trouble with this whole - compile, make thingy going on.

I am trying to install the D211 Nokia drivers for my laptop. Its a wireless and GSM card. But this is by the by. I ahave followed the instructions but they seem to require a lot of foreknowledge.
Its to do with the 'make' routine - it asks you to edit the config.mk and change the settings to match you flavour and version of linux.

Here is the link for the bits i am using. There is a PDF here that gives instructions.
I have unpacked the base code, and chosen the one for redhat 8 and above as i am running 9.

nokia.com/NokiaHome/0,5184,3136,00.html

File is as follows (although you probobly know what it looks like)

LINUX=/usr/src/linux - This is the location of the Linux Source code
OS_RELEASE=2.4.2 - Kernel Version - i changed this bit :)
ROOTDIR=/ - Root dir for Kernel Module and Tool installation

SMAC2=d211fw.bin - Firmware for the radio card.

I then run the 'make all' command from the current dir (where the config.mk is) as the instructions say but i get some error messages.
I am logged in as root when I do this.


set -e; for d in src ui control; do make -c $d ; done
make[1]: Entering directory '/usr/src/d211/src'
gcc -02 -Wall -Wstrict-prototypes -fomit-frame-pointer -pipe -D__kernel__ -DMODULE -I../include iI/usr/src/linux/include -c dllc.c
make[1]: gcc : Command not Found
make[1]: ***[dllc.0] Error 127
make[1]: Leaving directory /usr/src/d211/src
make: *** [all] Error 2


The bits I dont know about are the LINUX and ROOTDIR parameters.
1) Do I change these ?
2) Does the LINUX line ask for RedHat source files or the radio card source files
3) where are my Linux source files ?
4) Do I have the gcc program ?
5) what do these errors mean ?

Just give me an NLM any day.

Many thanks in advance.

Quinner

CNE3, CNE4, CNE5, CNE6, MCP (nt 3.51 - heh, heh)

vasudevadas 11-05-2003 05:04 AM

There is only one error that I can see, and it is that you don't have gcc, the c compiler, installed. You should obtain this from your linux install disks.

The ROOT and LINUX variables look about right to me, but you should check the target that LINUX is pointing to: /usr/src/linux. Does that folder (link) actually exist? If not, you will also need to install the kernel source - this should also be on your install disks.

Both of these things will be available in .rpm files somewhere in your install disks - if you can find them then installing them that way (rpm -i <filename>) will be easiest by far. I don't know which rpms you will find these in, although the one containing gcc will definitely have "gcc" in its name somewhere, and the kernel source will probably have "kernel-source" in its name. I use Mandrake which provides a utility for installing your rpms and makes things much easier, but I don't know whether Red Hat do something similar.

qwijibow 11-05-2003 05:57 AM

im not 100% sure... but does the linux source code have a dependency on a compiler ?

if gcc is not installed, maybe the kernel source is not installed too.

Quinner 11-05-2003 12:46 PM

N00b
 
Cheers guys,

This should point me in the right direction.

I pretty sure I did not install any of the Kernel or compiler stuff as I chose the Laptop/Workstation install. I did notice that this install misses out most of the developement tools, would have thought it would copy over the basic requirements to install a driver though.

Quinner

qwijibow 11-05-2003 12:55 PM

quote "would have thought it would copy over the basic requirements to install a driver though."

yes, it did.. but you are not installing a driver.... you are compiling one !

if you had the correct driver for your kernel it would be a simple install.
but your driver is compiling itself to better match your system...

:)


All times are GMT -5. The time now is 06:01 AM.