error while installing nvidia drivers

Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

error while installing nvidia drivers

Postby lorenzo » 04 Jul 2011, 17:46

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

But I received this output (after make install):
Code: Select all
===> 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?
lorenzo
Junior Member
 
Posts: 7
Joined: 03 Jul 2011, 13:51

Postby thuglife » 04 Jul 2011, 18:04

[CMD="#"]pkg_add -r nvidia-driver[/CMD]

Or install the source from your installation media using sysinstall, type:
[CMD="#"]sysinstall[/CMD]

and then select src -> All from Configure | Distributions.
User avatar
thuglife
Member
 
Posts: 160
Joined: 02 Jul 2009, 16:37
Location: Athens, Greece

Postby lorenzo » 04 Jul 2011, 18:31

Code: Select all
pkg_add: unable to fetch [filename] by url.

Strange.
lorenzo
Junior Member
 
Posts: 7
Joined: 03 Jul 2011, 13:51

Postby SirDice » 05 Jul 2011, 06:19

There is no package for the nvidia-driver.

To be able to build the port the FreeBSD sources must be available in [file]/usr/src/[/file].
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16196
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby thuglife » 05 Jul 2011, 07:36

SirDice wrote:There is no package for the nvidia-driver.


There is, http://pointyhat.freebsd.org/errorlogs/amd64-8-packages-latest/x11/nvidia-driver-270.41.19.tbz, maybe he is on release?
User avatar
thuglife
Member
 
Posts: 160
Joined: 02 Jul 2009, 16:37
Location: Athens, Greece

Postby SirDice » 05 Jul 2011, 08:30

I see it changed recently:
- Remove NO_PACKAGE; along with previous change, this enables us to build nvidia-driver packages

http://www.freebsd.org/cgi/cvsweb.cgi/ports/x11/nvidia-driver/Makefile
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
User avatar
SirDice
Old Fart
 
Posts: 16196
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands


Return to Installation and Maintenance of FreeBSD Ports or Packages

Who is online

Users browsing this forum: No registered users and 2 guests