[SOLVED] Failure building nvidia-kernel Slackbuild from SBo
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Failure building nvidia-kernel Slackbuild from SBo
I have a brand new installation of 13.37 but I can't seem to get the nvidia-kernel (64 bit only) Slackbuild from slackbuilds.org to build. I have the nvidia driver installed and working on 13.1 so I am not desperate yet: although I thought that it could just be something with the older Nvidia driver so I waited for the updated release but it fails in the same way.
I have uninstalled xf86-video-nouveau and installed xf86-video-nouveau-blacklist-noarch-1.txz from /extra.
I have also installed libvdpau from SBo. The nvidia-driver Slackbuild builds fine.
I am using the stock 188.8.131.52 huge kernel but have also tried the 184.108.40.206 kernel from /extra and the 220.127.116.11 kernel from Slackware-current.
Here is the error message I am seeing:
root@DarkStar:/home/server/Utils/Packages/Slackware/13.37/64/nvidia-kernel# SRCSUFFIX="-no-compat32" ./nvidia-kernel.SlackBuild
Creating directory NVIDIA-Linux-x86_64-270.41.19-no-compat32
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 270.41.19.............................................................................................................................
If you are using a Linux 2.4 kernel, please make sure
you either have configured kernel sources matching your
kernel or the correct set of kernel headers installed
on your system.
If you are using a Linux 2.6 kernel, please make sure
you have configured kernel sources matching your kernel
installed on your system. If you specified a separate
output directory using either the "KBUILD_OUTPUT" or
the "O" KBUILD parameter, make sure to specify this
directory with the SYSOUT environment variable or with
the equivalent nvidia-installer command line option.
Depending on where and how the kernel sources (or the
kernel headers) were installed, you may need to specify
their location with the SYSSRC environment variable or
the equivalent nvidia-installer command line option.
*** Unable to determine the target kernel version. ***
make: *** [select_makefile] Error 1
What am I doing wrong? What should I try next?
I would like to avoid just running the NVIDIA binary installer as the Slackbuild makes it easier to upgrade kernels.
Be careful about which driver you install for which card. If unsure, take a look at the driver search interface on the NVidia site (www.nvidia.com). Basically, you have the actual driver for modern cards (GeForce 6000 and above), the 173 driver for slightly older cards (like the GeForce 5000 family), the 96 for much older cards (GeForce 4000 and the likes)... and if you have a pathologically old card like a Riva TNT, you're better off using either the nouveau or the good old 'nv' driver.
Well, I installed it today and it seemed to work fine (including KDE desktop effects).
Originally Posted by kikinovak
Be careful about which driver you install for which card. If unsure, take a look at the driver search interface on the NVidia site (www.nvidia.com).
Well, the card I have is a GTS450. The driver I have installed is 270.41.19 from SBo but the Nvidia site is recommending 275.09.07 (which I am assuming is the latest driver). Should I be trying to modify the Slackbuild to accommodate the latest driver (what differences in behaviour should I be looking for?) or should the 270 series driver be OK?
Hold on using the SBo slackbuild scripts for any of the newer Nvidia versions. I had a bit of a brain fart and they are not quite optimal. I hopefully fixed the issues but need to do some more testing before I submit the update. You should be fine with 270.41.19 until I get it all done. Nvidia-275.09.07 adds newer GPUs and has a few KDE fixes. I'll post on LQ when the update is ready. In the meantime, if you have issues, you can email me (see nvidia-*.info).
Ok, thanks a lot. I wasn't really relishing the thought of trying to figure out the Nvidia driver installation: your work is much appreciated! I'll keep an eye out for the update, but for now it seems to be working well (much improved over the 260 version I had going in 13.1).