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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-11-2009, 02:57 AM
|
#1
|
|
LQ Newbie
Registered: Sep 2009
Posts: 5
Rep:
|
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!
|
|
|
|
09-11-2009, 03:09 AM
|
#2
|
|
Member
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456
Rep:
|
Most likely you don't have the kernel source files installed.
|
|
|
|
09-11-2009, 03:38 AM
|
#3
|
|
LQ Newbie
Registered: Sep 2009
Posts: 5
Original Poster
Rep:
|
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!
|
|
|
|
09-11-2009, 04:18 AM
|
#4
|
|
Member
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456
Rep:
|
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
|
|
|
|
09-14-2009, 10:04 AM
|
#5
|
|
LQ Newbie
Registered: Sep 2009
Posts: 5
Original Poster
Rep:
|
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?
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:09 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|