UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
mahmood@lcoalhost:sample$ sudo make install
test -d /lib/modules/2.6.32-25-generic/kernel/drivers/hwmon || mkdir /lib/modules/2.6.32-25-generic/kernel/drivers/hwmon
cp k10temp.ko /lib/modules/2.6.32-25-generic/kernel/drivers/hwmon
depmod -a -F /lib/modules/2.6.32-25-generic/build/System.map 2.6.32-25-generic
FATAL: Could not open '/lib/modules/2.6.32-25-generic/build/System.map': No such file or directory
make: *** [modules_install] Error 1
I have install linux headers
Code:
mahmood@localhost:k10temp$ sudo apt-get install linux-headers-2.6.32-25-generic
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-headers-2.6.32-25-generic is already the newest version.
The following packages were automatically installed and are no longer required:
linux-headers-2.6.32-24-generic lib32nss-mdns linux-headers-2.6.32-24
ttf-symbol-replacement wine1.2-gecko cabextract ttf-mscorefonts-installer
winbind
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
The problem is you are missing a file in the path it expects to find it:
Quote:
FATAL: Could not open '/lib/modules/2.6.32-25-generic/build/System.map
What happens if you type?:
Code:
ls -l /lib/modules/2.6.32-25-generic/build/System.map
If it says "not found" it means you don't have that file in that directory. Either you need to find where System.map or you need to install a separate package that includes System.map. If the file DOES exist on your system but is in a another directory you can create a symbolic link in /lib/modules/2.6.32-25-generic/build to where it really exists OR you could modify the makefile to point to the correct path.
There is no System.map in the required folder or anywhere else:
Code:
mahmood@localhost:k10temp$ ls -l /lib/modules/2.6.32-25-generic/build/System.map
ls: cannot access /lib/modules/2.6.32-25-generic/build/System.map: No such file or directory
mahmood@localhost:k10temp$ sudo find / -name "System.map"
mahmood@localhost:k10temp$
Personally I have no idea... I think it is a file that must come with linux headers. I installed linux headers but there is no such file
After building the Linux kernel, System.map is located in the root of the source directory. However, some further software installation steps expect to locate the file elsewhere:
* as /boot/System.map-$(uname -r)
* Building SVGALib expects to find /lib/modules/$(uname -r)/build/System.map
Do an "ls -l /boot/System.map*" and see if you have any files appended with the System.map. If so do a symbolic link of that to the location your make is looking for it in. e.g.
"ln -s /boot/System.map-2.6.32-25-generic /lib/modules/2.6.32-25-generic/build/System.map"
Also based on above it may be you need to install the kernel source package to be able to do your make. You don't mention what it is you're trying to make.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.