Find the answer to your Linux question:
Results 1 to 9 of 9
Hello everyone! I have a little problem with the nvidia driver. I have opensuse 11.1 with gnome and i have been compiled the last kernel source 2.6.28.2. Everything works fine ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167

    install nvidia driver from source


    Hello everyone! I have a little problem with the nvidia driver. I have opensuse 11.1 with gnome and i have been compiled the last kernel source 2.6.28.2. Everything works fine without the nvidia driver. I downloaded the driver from nvidia site NVIDIA-Linux-x86-173.14.12.pkg1.run and tried to install but no luck

    I tried in two different modes to install it. The first one to enter: init 3 then run

    Code:
    sh NVIDIA-Linux-x86-180.22-pkg1.run -q
    with no luck. It tells me:

    Code:
    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
    and the second way:

    Code:
    sh ./NVIDIA-Linux-x86-173.14.12-pkg1.run --extract-only
    then go to NVIDIA-Linux-x86-173.14.12-pkg1/usr/src/nv and

    Code:
    make module
    and i get the same thing then i try

    Code:
    make SYSSRC=/usr/src/linux-2.6.28.2/ module
    and the same thing again. Can anybody please help me to install the nvidia driver from source?

    Calin
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  2. #2
    Linux Engineer LondoJowo's Avatar
    Join Date
    May 2005
    Location
    Richmond, TX
    Posts
    804
    Why not use YAST to add the nVidia repository and install the driver from there?
    Dell Precision T7400 Workstation
    Dual 3.33Ghz Xeon "Harpertown" Core
    16GB PC5300 DDR2 ECC CL5
    BFG GeForce GTX 285 OC 2GB
    X-Fi Platinum
    HP w2408 24" Monitor
    Dual Boot:openSUSE 11.2/Win 7 Ultimate

  3. #3
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    If i use Yast the only driver is for the kernel 2.6.27.7-9 I want to make it work for the new kernel that i am using 2.6.28.2

    Cheers!
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Enthusiast deltaflyer's Avatar
    Join Date
    May 2005
    Posts
    577
    Just a thought,Have you installed the kernel sources ?
    SLOMO: acer extensa 5235 2.2ghz,2gb ram 160gb hdd wireless
    SPEEDY: homebrew desktop,Amd x2 dualcore,2gb ram,500gb +1tb( 2x500gb) hdd suse 11.3,32mb fibreline
    registered linux user #401845

  6. #5
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    yes i have installed the kernel source. I have compiled by my self.

    Any ideas how to install the nvidia driver with this kernel?
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  7. #6
    Linux Guru techieMoe's Avatar
    Join Date
    Aug 2004
    Location
    Texas
    Posts
    9,496
    Have you considered using the beta version of the driver?

    Linux Display Driver - x86

    That's just one version. There are several in the pipe on the Nvidia site. The betas usually work with the latest and greatest kernel, but may not be as stable as the official releases.
    Registered Linux user #270181
    TechieMoe's Tech Rants

  8. #7
    Just Joined!
    Join Date
    Dec 2007
    Posts
    3
    Generally, i go into yast and install gcc, make and kernel-source.
    Download the latest drivers, put them in my root (/) then log into root via console mode. From there i just type sh ./NVIDIA.... etc etc hit enter a bunch of times then im good to go. I had to make a custom xorg though because i run dual 8800GTS's and three 22's.

    Here are the latest drivers from nvidia's site which run all their cards:

    64-bit: http://us.download.nvidia.com/XFree8...80.22-pkg2.run

    32-bit: http://us.download.nvidia.com/XFree8...80.22-pkg1.run

  9. #8
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    where is the kernel source located for your running kernel?
    My guess is the nvidia installer is looking for it in expected locations without finding it.
    If you haven't done this, create a symbolic link from the kernel source directory to /usr/src/linux.

  10. #9
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    thank you guys for replying! I finally made it. I have reinstalled the OS (because i have too - not for the nvidia) and i installed the driver that techieMoe said and work now.

    Well there is a note on the nvidia site

    Code:
    NOTE: The nvidia installer does not work as long as a Xserver is still
          running and the nvidia kernel module is still loaded. Therefore
          please boot into runlevel 3 by specifying "3" as kernel boot
          option or switch to runlevel 3 ("init 3") and unload the kernel
          module ("rmmod nvidia") before running the nvidia installer.
    and i think that was the problem...i forgot to remove the nvidia module that i had installed from Yast on 2.6.27.7-9

    Anyway now i have an nvidia card working on kernel 2.6.28.2-9

    Cheers!
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •