error while installing nvidia drivers

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?
 
# 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.
 
There is no package for the nvidia-driver.

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