LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-15-2010, 12:45 PM   #1
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Rep: Reputation: 38
nvidia-drivers


I am trying to install the nvidia-drivers from Slackbuilds.org. When I try to run the SlackBuild, I get the following error:
Code:
install: cannot stat `cuda.h': No such file or directory
What am I missing?

The nvidia-kernel SlackBuild ran fine and created the kernel package.

Last edited by interndan; 12-15-2010 at 01:10 PM.
 
Old 12-15-2010, 01:32 PM   #2
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
Probably the kernel-headers package.
 
Old 12-15-2010, 01:44 PM   #3
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by rg3 View Post
Probably the kernel-headers package.
Yeah, you're probably right. I'm running a custom kernel. Now to see if I can sort this out.

Thanks
 
Old 12-15-2010, 02:07 PM   #4
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
No I have kernel headers in /usr/include/linux and cuda.h is there.
 
Old 12-15-2010, 02:24 PM   #5
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
I usually just get my Nvidia from the Nvidia website.
 
Old 12-15-2010, 02:28 PM   #6
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Well, this is nuts. I just re-ran the SlackBuild to see if I saw any other errors and it seems to have worked perfectly. If the package installs and works I will return and mark this thread solved.
 
Old 12-15-2010, 03:24 PM   #7
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Well it seem I was wrong earlier, nvidia-kernel did not build correctly.
 
Old 12-15-2010, 04:05 PM   #8
Cultist
Member
 
Registered: Feb 2010
Location: Georgia
Distribution: Slackware64 14.2
Posts: 779

Rep: Reputation: 107Reputation: 107
did you try running the installer from the nvidia website? that goes perfectly on the stock kernel without having to change any packages at all. Its actually slightly quicker than using a slackbuild, in this case
 
Old 12-15-2010, 04:12 PM   #9
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
I followed 2handband's advice and downloaded directly from Nvidia. That works. This is the first time I haven't been able to get a SlackBuild dot org SlackBuild to work. I don't care for this option, I prefer installing Slackware packages with pkgtools. The upside is I have more current drivers.

I'm marking this solved even though I didn't get the SlackBuild to work.

Thanks for the help.
 
Old 12-15-2010, 04:44 PM   #10
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
The SlackBuilds are tested to work with exactly the versions that are listed in the info file. If you update the version yourself you enter the philosophical area of "it might work, it might not work".
In this case it does not because the contents of the upstream run-file changed, which is a change that needs to be reflected in the SlackBuild (work in progress).
 
Old 12-15-2010, 05:24 PM   #11
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
NVidia has stopped shipping OpenGL, OpenCL, CUDA and VDPAU headers. I believe the change happened since version 260.19.12.

Check out this link, explains in detail.

http://www.nvidia.com/object/linux-d...12-driver.html

I've not upgraded to latest nvidia drivers on my mythbox because of this reason. I haven't had time to update the SBo script to 260 version.
 
Old 12-16-2010, 08:46 AM   #12
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
I tried installing the version as shipped first. They would not compile correctly on my system. I then tried editing the build scripts for the latest version as downloaded from Nvidia. That also failed. I'm thinking it may have as much to do with my custom kernel??
I have successfully edited SlackBuilds in the past where I wanted a new version of software. I will admit to being weak when it comes to scripting language, so possibly the error was mine.
 
Old 12-16-2010, 09:46 AM   #13
ppr:kut
Slackware Contributor
 
Registered: Aug 2006
Location: Netherlands
Distribution: Slackware
Posts: 631

Rep: Reputation: 463Reputation: 463Reputation: 463Reputation: 463Reputation: 463
There are a couple of reasons why SlackBuilds would fail, however that list is rather short for the nvidia SlackBuilds.
nvidia-driver only fails if you try to update it to a newer version and mess up in the process or forget something.
nvidia-kernel only fails if your kernel is misconfigured, it does not find the kernel you tell it to compile for or you try to compile for a too new (or possibly also too old) kernel version.

The version on SBo does not work with anything higher than 2.6.35. If you have a custom 2.6.36 kernel this was most likely the cause of your error.
 
Old 12-16-2010, 09:55 AM   #14
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
Yeah... I forgot to ask if you were running 13.1 or -current. The older Nvidia drivers used in the SlackBuild stopped working on -current after the big upgrade to x a few weeks ago.

Anyway, if you're running -current just having the Nvidia binary file on hand will make your life easier. If you do an upgrade that requires a driver reinstall (kernel, qt, xserver, etc) you just log into a console. re-run the Nvidia installer with a single command, and voila! you're back in business.
 
Old 12-16-2010, 10:10 AM   #15
interndan
Member
 
Registered: Aug 2004
Location: near Marion, Ill
Distribution: Slackware 15 64bit on Desktop Slackwarearm on Raspberry PI v1b
Posts: 381

Original Poster
Rep: Reputation: 38
Ok that's it. I'm running 2.6.36 kernel. I just like installing Slack Packages for easier (for me) removal if needed.

Thanks again for all the help.
 
  


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
Nvidia GeForce worked once, Nvidia linux drivers killed it, and now i can't fix it. conway.federico Linux - Hardware 8 10-16-2008 10:28 PM
Restricted Nvidia drivers not listed in Hardware Drivers (8.04 Hardy Heron, liveCD) shroomy_bee Ubuntu 4 07-06-2008 10:16 AM
Nvidia 9746 Drivers - startx freezes machine when using nvidia module Astro Slackware 17 01-21-2007 07:36 PM
UNinstalling proprietry mandriva nVidia drivers and installing new nVidia drivers deathman Linux - Hardware 3 11-18-2006 05:10 AM
Proprietary nvidia drivers vs. generic intel sound and ethernet drivers vharishankar Linux - Hardware 2 02-22-2005 05:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:28 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration