1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

error while installing nvidia drivers

Discussion in 'Installation and Maintenance of Ports or Packages' started by lorenzo, Jul 4, 2011.

  1. lorenzo

    lorenzo New Member

    Messages:
    7
    Thanks Received:
    0
    Hi,
    I tried to install the latest nvidia driver in this way:
    Code:
    # portsnap fetch update
    # cd /usr/ports/x11/nvidia-drivers
    # make config
    # make install clean
    

    But I received this output (after make install):
    Code:
    ===> Building for nvidia-driver-256.53
    ===> src (all)
    "/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"
    *** Error code 1
    
    Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-256.53
    *** Error code 1
    
    Stop in /usr/ports/x11/nvidia-driver
    *** Error code 1
    
    Stop in /usr/ports/x11/nvidia-driver
    

    How can I solve this issue?
     
  2. thuglife

    thuglife New Member

    Messages:
    160
    Thanks Received:
    40
    # pkg_add -r nvidia-driver

    Or install the source from your installation media using sysinstall, type:
    # sysinstall

    and then select src -> All from Configure | Distributions.
     
  3. lorenzo

    lorenzo New Member

    Messages:
    7
    Thanks Received:
    0
    Code:
    pkg_add: unable to fetch [filename] by url.

    Strange.
     
  4. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,628
    Thanks Received:
    2,386
    There is no package for the nvidia-driver.

    To be able to build the port the FreeBSD sources must be available in /usr/src/.
     
  5. thuglife

    thuglife New Member

    Messages:
    160
    Thanks Received:
    40
  6. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,628
    Thanks Received:
    2,386