LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-11-2009, 02:57 AM   #1
reallynewbie2009
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Rep: Reputation: 0
Problem in compile library file command "make"


I have encountered the following problem when trying to compile the static library murtc.o


Error message when I run the "make" command in the directory of where Makefile located.

"
make -C /lib/modules/2.6.26-2-686/build M=/opt/EFCS/MURTC/module KBUILD_VERBOSE=1 modules
make: *** /lib/modules/2.6.26-2-686/build: No such file or directory. Stop.
make: *** [murtc.o] Error 2
"

The directory ...686/build does not existed, however, when i manually created one and run the make command again. still get the same message.


Thanks for any help and nice day!
 
Old 09-11-2009, 03:09 AM   #2
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
Most likely you don't have the kernel source files installed.
 
Old 09-11-2009, 03:38 AM   #3
reallynewbie2009
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks very much, Ongte! Where does the kernel source file supposed to be located? There are files like "modules.usbmap, modules.symbols, etc" in the /lib/module/2.6.26-2-686/kernel folder. Actually, I did try to change the path of Kernel source pointing in the Makefile source code:

"KERNEL_SRC ?= /lib/modules/$(KERNEL_VERSION)/build" from "build" to "kernel"

However, I still got similar error message as bellow:

"
make -C /lib/modules/2.6.26-2-686/kernel M=/opt/EFCS/MURTC/module KBUILD_VERBOSE=1 modules
make[1]: Entering directory `/lib/modules/2.6.26-2-686/kernel'
make[1]: *** No rule to make target `modules'. Stop.
make[1]: Leaving directory `/lib/modules/2.6.26-2-686/kernel'
make: *** [murtc.o] Error 2
"

the only difference is it entering the directory.

Thanks!
 
Old 09-11-2009, 04:18 AM   #4
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
You don't need to change it, /lib/modules/$(KERNEL_VERSION)/build should be there. It's not there probably cuz you don't have the package installed.

Depending on your distro, you can normally install the kernel source & headers by looking in the package manager for: kernel-source and kernel-headers
 
Old 09-14-2009, 10:04 AM   #5
reallynewbie2009
LQ Newbie
 
Registered: Sep 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for the response, Ongte! Hope you had a nice weekend!. So should I download kernel package and looking in the manager for the kernel source and headers?
 
  


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
Command "mail" returns "panic: temporary file seek" kenneho Linux - Software 5 12-23-2008 03:27 AM
Make "ls" command show colors without "--color=always" switch SharpyWarpy Linux - General 4 07-16-2007 11:00 PM
Debian can't find the "make" command when I try to compile my onboard NIC driver JSR_tuxbox Linux - Newbie 30 06-29-2007 06:30 PM
in linux fortran: problem with the command "make" terrence Programming 2 08-27-2005 04:02 AM


All times are GMT -5. The time now is 05:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration