LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-17-2003, 10:50 PM   #1
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Rep: Reputation: 15
how do i compile?


hey, i'm almost done getting my ethernet card up and running, all i need now is to build a complier environment and compile the code into binary.
oh by the way...how do i do that?!?!

Last edited by Derek-kun; 09-17-2003 at 11:06 PM.
 
Old 09-18-2003, 12:02 AM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 389

Rep: Reputation: 52
Which Ethernet card is it? By this I mean manufacturer and model number. With any luck you could just load the proper module for it without compiling anything.

Look for the gcc packages that came with your distribution to install a compiler environment.

Lyle
 
Old 09-18-2003, 05:52 PM   #3
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
my ethernet card is:

32-bit PCI-Bus 10/100Mbps network adapter

and i'm not sure if this is a manufacturer but all i could find was ADM.
 
Old 09-18-2003, 06:38 PM   #4
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
where exactly would i find the gcc packages?
 
Old 09-18-2003, 07:26 PM   #5
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
hello? anyone? where can i find gcc packages?
 
Old 09-18-2003, 07:48 PM   #6
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 389

Rep: Reputation: 52
Please post the output of the command:

/sbin/lspci -v

That way we can see which card it is. Once we know that, we can figure out which kernel module to load to get the card working. While you're at it, post the output of:

/sbin/lsmod

Which distribution (e.x. Red Hat, Mandrake, ) are you using?

The gcc packages should be on the CD that you installed Linux with. Try running:

gcc --version

at the command line; if you get version and copyright information, you already have gcc installed.

Lyle
 
Old 09-18-2003, 08:56 PM   #7
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
Please post the output of the command:

/sbin/lspci -v

/sbin/ : is a directory
psci: command not found

While you're at it, post the output of:

/sbin/lsmod

/sbin/ : is a directory
smd: command not found

gcc --version

gcc: command not found

This is a bad thing right?

 
Old 09-18-2003, 09:21 PM   #8
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
i took the liberty of taking out my ethernet card to check it out, and i came up with..

ADMtek
AN983B
 
Old 09-18-2003, 09:24 PM   #9
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Rep: Reputation: 15
derek, sorry for the Q, but it's gotta be asked : Are you issuing commands as root?

As lyle asked, Which distro are you using?
 
Old 09-18-2003, 09:32 PM   #10
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
yes i am isuing them as root. i'm using mandrake 7.1
 
Old 09-18-2003, 10:00 PM   #11
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Rep: Reputation: 15
As a result, I don't think gcc is installed. Did you find it on the installation CD?

Unfortunately, I don't use Mandy, but in RH's case, gcc is found amongst development/programming packages.
 
Old 09-18-2003, 10:23 PM   #12
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
i've looked for gcc on the installation disc, but there is more than one file that begin with gcc, which one would it be?
 
Old 09-18-2003, 11:30 PM   #13
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
does anybody know where i can just download a driver for my card?
 
Old 09-18-2003, 11:39 PM   #14
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 389

Rep: Reputation: 52
I don't have a Mandrake system, but I googled around and I think the gcc package will look something like gcc-2.95.2-7mdk.rpm.

You'll likely need the Linux kernel headers installed to compile the module.

I also found that the ADMtek AN983B is tulip compatible. As root, try running:

modprobe tulip

at the command line. It's free to try, and it might save you some work.

Lyle
 
Old 09-22-2003, 10:13 PM   #15
Derek-kun
Member
 
Registered: Sep 2003
Posts: 65

Original Poster
Rep: Reputation: 15
i installed gcc the version is 2.95.3

now how do i build a complier environment?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Compiling narcussist Fedora 6 01-18-2006 01:50 PM
compiling z9_87 Linux - Software 4 12-23-2004 06:29 PM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 08:56 PM
Kernel compiling and module compiling tarballed Linux - General 1 12-22-2002 06:31 PM


All times are GMT -5. The time now is 11:14 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration