LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-05-2003, 04:36 AM   #1
Quinner
LQ Newbie
 
Registered: Nov 2003
Distribution: NLD 10.1 Beta10
Posts: 3

Rep: Reputation: 0
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)
 
Old 11-05-2003, 05:04 AM   #2
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
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.
 
Old 11-05-2003, 05:57 AM   #3
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
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.
 
Old 11-05-2003, 12:46 PM   #4
Quinner
LQ Newbie
 
Registered: Nov 2003
Distribution: NLD 10.1 Beta10
Posts: 3

Original Poster
Rep: Reputation: 0
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
 
Old 11-05-2003, 12:55 PM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

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

 
  


Reply



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
Help-A-n00b fesago90 Linux - Newbie 3 11-09-2004 10:44 PM
n00b needs help Kerpele Linux - Networking 3 09-21-2004 12:13 AM
To n00b? Grisnak Slackware 27 11-27-2003 02:18 AM
Another n00b Q O_o Linux - Newbie 3 11-04-2003 08:14 PM
n00b help. rhadamanthys Slackware 1 02-06-2003 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:31 PM.

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