Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux 'Build' folder does not exist

Status
Not open for further replies.

mydogbites

IS-IT--Management
Jul 3, 2006
23
GB
HI There

I have recently installed fedora core 7 (kernel version 2.6.21) and have been trying to install drivers for a fiber channel card and a network card.

Only when I attempt to run the shell scripts it tells me that it cannot find the 'build' folder under:

/lib/modules/2.6.21-1.3194.fc7/

I have attached a full example of what came on screen below.
Both drivers give me roughly the same error

I have browsed to this folder and the build folder is not there.

Have I forgotten to do something?

Im new to linux after being with windows for quite sometime so be gentle as im still getting used to the layout ;-)

Any suggestions would be great.

Thanks alot
James

Terminal screen dump.

make -C /lib/modules/2.6.21-1.3194.fc7/build M=/myri10ge-linux.1.3.1/linux clean
make: *** /lib/modules/2.6.21-1.3194.fc7/build: No such file or directory. Stop.
make: *** [clean] Error 2
 
For you to compile a kernel-module (driver) like you are trying to do,
you need the Kernel headers installed.
Think you just need to install them with:
Code:
yum install kernel-devel

 
Thank you,

That did something I am now getting compaints about my gcc version. I have tried different versions but with the same results.

Any suggestions on this one?

Thanks again

James

Here is a dump of whats happening now:

make -C /lib/modules/2.6.23.1-10.fc7/build M=/root/Download/myri10ge-linux.1.3.1/linux clean
/usr/src/kernels/2.6.23.1-10.fc7-i686/scripts/gcc-version.sh: line 16: gcc: command not found
/usr/src/kernels/2.6.23.1-10.fc7-i686/scripts/gcc-version.sh: line 17: gcc: command not found
make[1]: gcc: Command not found
make[1]: Entering directory `/usr/src/kernels/2.6.23.1-10.fc7-i686'
CLEAN /root/Download/myri10ge-linux.1.3.1/linux/.tmp_versions
make[1]: Leaving directory `/usr/src/kernels/2.6.23.1-10.fc7-i686'
rm -f myri10ge_version.h myri10ge_checks.h
 
Well since it says:
gcc: Command not found
The first thing I'd try would be:
Code:
yum install gcc

gcc The Gnu C Compiler is needed to compile
source-code into binary files.

HTH :)

BTW are these drivers not available in precompiled .rpm form?
so you would'nt need to compile them yourself?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top