LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-21-2004, 09:36 PM   #1
Ge|atinousFury
LQ Newbie
 
Registered: Jan 2004
Location: Auburn, AL
Distribution: Fedora
Posts: 14

Rep: Reputation: 0
"make" command won't work in Fedora...installing Nvidia Ethernet drv's help


I installed Fedora a couple of days ago (my very first linux distro), and I'm having trouble installing the Nforce2 drivers for my Abit NF7-S motherboard (onboard ethernet driver). I downloaded the tar file file from Nvidia's website. Here's what I've done so far:

% tar -xvzf NVIDIA_nforce-1.0-0261.tar.gz
% cd nforce
% make

Now,when I type make, I get the following error:

make-C nvnet
make[1]: Entering directory '/home/xxx/nforce/nvnet'
cc -c -Wall -DLINUX -DEXPORT_SYMTAB -D__KERNEL__-O -Wstrict-prototypes
-DCONFIG_PM -fno-strict-aliasing -mpreferred-stack-boundary=2 -march=i686 -malign -functions=4 -DMODULE -I/lib/modules/2.4.22-1.2115.nptl/build/include nvnet
.c
make[1]: cc: Command not found
make[1]: *** [nvnet.o] Error 127
make[1]: Leaving directory '/home/xxxx/nforce/nvnet'
make: *** [nvnet_make] Error 2



I'm following the instructions as per Nvidia's website...what am I doing wrong??

I have the book entitled "Official Fedora Companion: Your Guide to the Fedora Project" and I'm using the distro that was enclosed on 2 cd's that came with the book. Should I update my kernel?

Last edited by Ge|atinousFury; 01-21-2004 at 11:32 PM.
 
Old 01-22-2004, 01:03 AM   #2
camelrider
Member
 
Registered: Apr 2003
Location: Juneau, Alaska
Posts: 251

Rep: Reputation: 32
Have you gcc ang glib's installed?

(hint: type " gcc -v")
 
Old 01-22-2004, 01:12 AM   #3
Ge|atinousFury
LQ Newbie
 
Registered: Jan 2004
Location: Auburn, AL
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by camelrider
Have you gcc ang glib's installed?

(hint: type " gcc -v")
bash: gcc: command not found
 
Old 01-22-2004, 01:16 AM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You probably need to install the kernel-source and developental packages.

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel-source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.20-28.7
I am running kernel version 2.4.20-28.7. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.20-28.7 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need. I may as well make one now to save editing the files in the source code every time I need to compile anything concerning the kernel. So, I'll make that link just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.20-28.7 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.20-28.7
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.20-28.7
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.20-28.7
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages
Red Hat Linux 8.0 Package Management Tool
Red Hat 9.0 Package Management Tool
Manage users
redhat-config-users

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 01-22-2004 at 01:17 AM.
 
Old 01-22-2004, 01:35 AM   #5
Ge|atinousFury
LQ Newbie
 
Registered: Jan 2004
Location: Auburn, AL
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
Ok, I checked my version

% uname -r
-------------------------------------------------------------------------------------------------------------------
2.4.22-1.2115.nptl
-------------------------------------------------------------------------------------------------------------------


Now, I check to see if I have proper source code installed:


% cd /usr/src
% ls -alc

--------------------------------------------------------------------------------------------------------------------
total 12
drwxr-xr-x 3 root root 4096 Jan 21 22:27 .
drwxr-xr-x 15 root root 4096 Jan 20 18:38 . .
drwxr-xr-x 3 root root 4096 Jan 21 22:27 nvidia
--------------------------------------------------------------------------------------------------------------------

Does this mean I don't have the proper source code?

Last edited by Ge|atinousFury; 01-22-2004 at 01:40 AM.
 
Old 01-22-2004, 01:43 AM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
It sure does.

The linux source code when installed will appear in directory /usr/src/linux-2.4.22-1.2115.nptl

Then you will also need to make a symbolic link called linux. Then, assuming you are still in /usr/src:

ln -s linux-2.4.22-1.2115.nptl linux

Last edited by fancypiper; 01-22-2004 at 01:46 AM.
 
Old 01-22-2004, 01:45 AM   #7
Ge|atinousFury
LQ Newbie
 
Registered: Jan 2004
Location: Auburn, AL
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
So how would a linux newb, or anyone for that matter, go about updating the source code?

I read something about the linux cd, but I really don't know where to go from there

EDIT: does the commands you added for updating the source code?

Last edited by Ge|atinousFury; 01-22-2004 at 01:48 AM.
 
Old 01-22-2004, 01:48 AM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Run redhat-config-packages and install the kernel-source and kernel developmental pacakges from the CDs.

I think an even better software management tool is apt4rpm and for the gui version, after the two rpms for apt4rpm is installed, use these commands:

apt-get update
apt-get install synaptic

A new tool should show up on your menu called synaptic. Run that for more packages to be available for Fedora.

Last edited by fancypiper; 01-22-2004 at 01:52 AM.
 
Old 01-22-2004, 01:49 AM   #9
Ge|atinousFury
LQ Newbie
 
Registered: Jan 2004
Location: Auburn, AL
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
Thanks for the info. Going to install now.
 
Old 01-22-2004, 01:51 AM   #10
Ge|atinousFury
LQ Newbie
 
Registered: Jan 2004
Location: Auburn, AL
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
Crap....I found developmental tools but there is no source checkbox...

Could it be because this version of Fedora came with a Redhat book called "Fedora Official Companion" at the bookstore? It only comes with 2 cd's instead of the usual 3 that you download off the net.

What to do now...

EDIT: Just found it in the back of the book. You have to pay $10 extra to receive the source code on cd-rom from mail in offer....this sucks lol

Can I get it off the net anywhere?

Last edited by Ge|atinousFury; 01-22-2004 at 01:54 AM.
 
Old 01-22-2004, 02:05 AM   #11
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Check the two boxes labled Development Tools and Kernel Development. I believe that is what they are labled
 
Old 01-22-2004, 02:09 AM   #12
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You can download the other iso from one of the mirrors of Linuxiso or order some cheap CDs.

How To Check MD5sums On A Linux Iso Image
# Cheap CDs
AlmostFreeLinux
Discount Linux CDs
Linux Central
Cheapbytes
TuxCDs
ComputerHelperGuy
CheapISO
Os Heaven
 
Old 01-22-2004, 02:13 AM   #13
Ge|atinousFury
LQ Newbie
 
Registered: Jan 2004
Location: Auburn, AL
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
Installed developmental tools and kernel development about 2 minutes ago.

Now, here's what I'm getting..

%ls -alc
---------------------------------------------------------------------------------------------------------------------
total 16
drwxr-xr-x 4 root root 4096 Jan 22 01:53 .
drwxr-xr-x 15 root root 4096 Jan 20 18:38 . .
drwxr-xr-x 3 root root 4096 Jan 21 22:27 nvidia
drwxr-xr-x 7 root root 4096 Jan 22 01:53 redhat
----------------------------------------------------------------------------------------------------------------------

Still no source code, correct?

If the source code is indeed missing, could I download the the files to burn the 3 cd's for download at the Fedora website, then put in those discs and install the source from those?

Last edited by Ge|atinousFury; 01-22-2004 at 02:16 AM.
 
Old 01-22-2004, 02:35 AM   #14
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
If you have install CD1 and install CD2, you just need the 3rd iso.

Right, you don't have source code for your linux kernel yet.

You could go to a fedora mirror site such as ftp://jungle.metalab.unc.edu/pub/Lin....nptl.i386.rpm and download it install that.

Last edited by fancypiper; 01-22-2004 at 02:39 AM.
 
Old 01-22-2004, 11:48 AM   #15
Ge|atinousFury
LQ Newbie
 
Registered: Jan 2004
Location: Auburn, AL
Distribution: Fedora
Posts: 14

Original Poster
Rep: Reputation: 0
Just a thought.....I downloaded all 3 Fedora ISO's last night, and they are the latest version, right?

Well, won't I be installing the source code for a later version on my "not so late" version?

Will the new source and my old version be compatible, or does it not matter?

Just trying to think ahead
 
  


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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
"make" command doesn´t work Syntron Linux - General 2 10-19-2004 08:31 AM
compiling tar.bz2... "./configure make make install" doesn't work dodo1983 Linux - Newbie 7 08-17-2004 12:34 AM
"Make command doesn't work!!! suse7.1user Linux - Software 2 08-14-2003 03:37 PM
Installing a new kernel, "make" doesn't work ! EmpHatic Linux - Software 1 03-22-2001 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:46 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
Open Source Consulting | Domain Registration