LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 05-09-2014, 03:35 AM   #1
sanjay2004
Member
 
Registered: Dec 2004
Location: BIJAPUR
Posts: 86

Rep: Reputation: 15
Error for installing NVIDIA driver


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
 
Old 05-09-2014, 05:06 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,969
Blog Entries: 52

Rep: Reputation: Disabled
This might help:
http://wiki.centos.org/HowTos/I_need_the_Kernel_Source
 
Old 05-09-2014, 08:19 AM   #3
sanjay2004
Member
 
Registered: Dec 2004
Location: BIJAPUR
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks,

Here I am getting struck

[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
 
Old 05-09-2014, 08:36 AM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,969
Blog Entries: 52

Rep: Reputation: Disabled
I'm just guessing, never used Centos, but try that rpm -i command as root without the URL included. Looks like you're trying to install a web page.
 
Old 05-09-2014, 09:19 AM   #5
sanjay2004
Member
 
Registered: Dec 2004
Location: BIJAPUR
Posts: 86

Original Poster
Rep: Reputation: 15
rpm -i /home/build/kernel-2.6.32-431.el6.x86_64.rpm 2>&1 | grep -v mock
package kernel-2.6.32-431.el6.x86_64 is already installed

It is already installed & getting the error

[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
 
Old 05-09-2014, 10:17 AM   #6
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,969
Blog Entries: 52

Rep: Reputation: Disabled
That's the kernel itself you're trying to install now. You wanted the kernel source. Download it using the URL in post #3, then install it.
 
Old 05-09-2014, 10:24 AM   #7
sanjay2004
Member
 
Registered: Dec 2004
Location: BIJAPUR
Posts: 86

Original Poster
Rep: Reputation: 15
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
 
Old 05-09-2014, 10:39 AM   #8
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,969
Blog Entries: 52

Rep: Reputation: Disabled
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.
 
Old 05-09-2014, 10:50 AM   #9
John VV
Guru
 
Registered: Aug 2005
Posts: 12,845

Rep: Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711Reputation: 1711
on centos 6.5 you DO have to rebuild the boot image without the Nouveau driver BEFORE you can install the nvidia.run

but there is a MUCH bigger broblem

the op is trying to mix cent6 and the HISTORICAL ARCHIVE " the vault" for Cent 5

that will NOT WORK

you can not just mix and match different operating systems

also WHY!!!! download something from some random web site ????????
use "yum" !!!!!
Code:
su -
yum install kernel-devel
and the source is installed
 
Old 05-09-2014, 10:55 AM   #10
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,969
Blog Entries: 52

Rep: Reputation: Disabled
Thanks, John. I'm glad someone who knows about Centos has joined in. I only tried it very briefly during my distrohopping days.
 
Old 05-12-2014, 12:44 AM   #11
sanjay2004
Member
 
Registered: Dec 2004
Location: BIJAPUR
Posts: 86

Original Poster
Rep: Reputation: 15
Thanks John,

Did the same with yum, it is working now.
 
Old 05-12-2014, 02:51 AM   #12
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,969
Blog Entries: 52

Rep: Reputation: Disabled
Glad you got it sorted out. Mark it as solved, from the Thread Tools drop-down menu.
 
  


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
Error running an application after installing Nvidia Driver ze1 Linux - Software 11 06-04-2011 05:07 AM
Error installing nVidia-driver-missing kernel-source? anemic Debian 6 12-17-2004 11:52 AM
Error when installing nvidia driver. sdat1333 Suse/Novell 2 12-12-2004 02:52 PM
error installing nvidia driver paulmedic555 Fedora 8 10-15-2004 11:32 AM
Error installing NVIDIA kernal driver Pablo32 Linux - Software 4 02-27-2003 09:00 AM


All times are GMT -5. The time now is 07:15 PM.

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