Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
ERROR: Unable to find the kernel source tree for the currently running kernel. Please make sure you have installed the kernel source
files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, be sure you have the
'kernel-source' or 'kernel-devel' RPM installed. If you know the correct kernel source files are installed, you may specify the
kernel source path with the '--kernel-source-path' command line option.
OS: CentOD 6.5 64bit
[root@server17 opt]# uname -a
Linux server17 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[build@server17 root]$ rpm -i http://vault.centos.org/5.10/updates....1.el5.src.rpm 2>&1 | grep -v mock
error: open of <!DOCTYPE failed: Permission denied
error: open of html failed: Permission denied
error: open of PUBLIC failed: Permission denied
error: open of -//W3C//DTD HTML 4.01//EN> failed: Permission denied
error: open of <html><head><meta failed: Permission denied
error: open of http-equiv=Content-Type failed: Permission denied
error: open of content=text/html; charset=UTF-8><style failed: Permission denied
error: open of type=text/css>html,body{height:100%;padding:0;margin:0;}.oc{display:table;width:100%;height:100%;}.ic{display: table-cell;vertical-align:middle;height:100%;}div.msg{display:block;border:1px failed: Permission denied
error: open of solid failed: Permission denied
[build@server17 rpmbuild]$ rpmbuild -bp --target=$(uname -m) kernel.spec
Building target platforms: x86_64
Building for target x86_64
error: failed to stat /home/build/rpmbuild/kernel.spec: No such file or directory
yes U r, I downloaded it manually & trying to compile
[build@server17 rpmbuild]$ ls ~
@1 kernel-2.6.32-431.el6.x86_64.rpm rpmbuild
[build@server17 rpmbuild]$ pwd
/home/build/rpmbuild
[build@server17 rpmbuild]$ rpmbuild -bb --target=`uname -m` kernel.spec
Building target platforms: x86_64
Building for target x86_64
error: failed to stat /home/build/rpmbuild/kernel.spec: No such file or directory
[build@server17 rpmbuild]$
I am not getting here which rpm/package has to download the file, so that i can try it again
First you say you want to install the NVidia driver, and for that you need the kernel source. Now you're trying to build the kernel you're already running. You don't need to rebuild the kernel to install NVidia drivers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.