make: *** /lib/modules//build: No such file or directory. Stop.
Hi everyone,
I am running in fc9.while doing make i have this issue make: *** /lib/modules//build: No such file or directory. Stop. please help me |
ummmm ... make to compile what??
|
i am excuting this program,
#include <linux/init.h> #include <linux/module.h> #include <linux/kernel.h> MODULE_LICENSE("Dual BSD/GPL"); static int hello_init(void) { printk("<1> Hello world!\n"); return 0; } static void hello_exit(void) { printk("<1> Bye, cruel world\n"); } module_init(hello_init); module_exit(hello_exit); make file for above code is Makefile obj-m := hello.o KVERSION = $(2.6.25-14.fc9.i686) all: make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules clean: make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean ~ after doing make i am getting make -C /lib/modules//build M=/home/DRAX modules make: *** /lib/modules//build: No such file or directory. Stop. make: *** [all] Error 2 but i checked in /lib/modules/2.6.25-14.fc9.i686/ path, build file is there, it is in red colour like this build -> ../../../usr/src/kernels/2.6.25-14.fc9.i686 what is that mean? |
Check how you are setting the KVERSION variable ;)
|
i am the beginer to linux,
i saw how to write a make file for module, in that he given KVERSION = $(username -r) |
sorry,
it is KVERSION = $(uname -r) |
anybody please help me
|
You are on the right track :)
The difference is that the following: Quote:
However, your copy in your Makefile says: Quote:
So either stick with the original call to 'uname' or simply assign the string, ie without $() around it. |
but still i am getting error like this
make -C /lib/modules/2.6.25-14.fc9.i686/build M=/home/DRAX modules make: *** /lib/modules/2.6.25-14.fc9.i686/build: No such file or directory. Stop. make: *** [all] Error 2 |
but still i am getting error like this
make -C /lib/modules/2.6.25-14.fc9.i686/build M=/home/DRAX modules make: *** /lib/modules/2.6.25-14.fc9.i686/build: No such file or directory. Stop. make: *** [all] Error 2 |
Post # 3
Quote:
I.e. a link pointing to a non existing file / directory. Please show the output of : 'ls -l /usr/src/kernels/' And from : rpm -qa | grep kernel . |
Please show the output of : 'ls -l /usr/src/kernels/'
And from : rpm -qa | grep kernel 1)kernels folder is not there in /usr/src 2) rpm -qa | grep kernel kerneloops-0.10-11.fc9.i386 kernel-2.6.25-14.fc9.i686 kernel-headers-2.6.25-14.fc9.i386 |
OK, then :
# yum install kernel-devel .. |
while doing yum install kernel-devel i am getting
Could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...ra-9&arch=i386 error was [Errno 4] IOError: <urlopen error (110, 'Connection timed out')> http://download.fedora.redhat.com/pu...ta/repomd.xml: [Errno 12] Timeout: <urlopen error timed out> Trying other mirror. Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again |
Why in the first place use an old obsolete Linux ?
Better install Fedora 13. Fedora 9 was moved to the old archive long time ago. http://download.fedora.redhat.com/pu...thing/i386/os/ Old updates http://download.fedora.redhat.com/pu...pdates/9/i386/ So you will have to use those two mirrors instead : /etc/yum.repos.d/"new.repo" http://forums.fedoraforum.org/showthread.php?t=221471 .. |
|
All times are GMT -5. The time now is 07:10 PM. |