"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? |
Have you gcc ang glib's installed?
(hint: type " gcc -v") |
Quote:
|
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 - Code:
[root@tinwhistle root]# cd /usr/src 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 Next, did I install the compiler? Code:
[root@tinwhistle src]# gcc -v 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. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study: # 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 |
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? |
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 |
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:confused: EDIT: does the commands you added for updating the source code? |
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. |
Thanks for the info. Going to install now.
|
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? |
Check the two boxes labled Development Tools and Kernel Development. I believe that is what they are labled
|
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 |
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? |
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. |
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 :newbie: |
All times are GMT -5. The time now is 04:04 AM. |