关闭

freebsd8.0安装nvidia驱动出现"/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"错误,解决办法

1954人阅读 评论(0) 收藏 举报

[root@wowoto ~]# cd /root/Desktop/NVIDIA-FreeBSD-x86-195.36.15
[root@wowoto ~/Desktop/NVIDIA-FreeBSD-x86-195.36.15]# make
===> src (all)
"/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"
*** Error code 1

Stop in /root/Desktop/NVIDIA-FreeBSD-x86-195.36.15.

-----------

原因: /usr/src/sys 是空的。
-----------

解决:
-----------

   Note: If there is not a /usr/src/sys directory on your system, then the kernel source has not been installed. The easiest way to do this is by running sysinstall as root, choosing Configure, then Distributions, then src, then base and sys. If you have an aversion to sysinstall and you have access to an “official” FreeBSD CDROM, then you can also install the source from the command line:

    # mount /cdrom
    # mkdir -p /usr/src/sys
    # ln -s /usr/src/sys /sys
    # cat /cdrom/src/ssys.[a-d]* | tar -xzvf -
    # cat /cdrom/src/sbase.[a-d]* | tar -xzvf -

-------------
cd
 make
 make install



0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:160265次
    • 积分:2349
    • 等级:
    • 排名:第16464名
    • 原创:62篇
    • 转载:26篇
    • 译文:1篇
    • 评论:4条
    最新评论