system source tree --SOLVED--

Questions about the installation of FreeBSD
Post Reply
A-dog
Posts: 17
Joined: Fri Dec 13, 2013 12:09 am

system source tree --SOLVED--

Post by A-dog »

I've just installed GhostBSD and now I want to install the nvidia drivers but it tells me that I need the system source tree. I've tried using sysinstall to no avail and there was something on sourceforge about using subversion but nothing is working. Please help, I only have vesa working now.
Last edited by A-dog on Sat Dec 14, 2013 3:08 pm, edited 1 time in total.
User avatar
adripillo12
Posts: 52
Joined: Wed Sep 25, 2013 7:04 am

Re: system source tree

Post by adripillo12 »

A-dog wrote:I've just installed GhostBSD and now I want to install the nvidia drivers but it tells me that I need the system source tree. I've tried using sysinstall to no avail and there was something on sourceforge about using subversion but nothing is working. Please help, I only have vesa working now.
It usually starts with nvidia cards but you can open a console and make:

Code: Select all

# portsnap fetch update
# cd /usr/ports/x11/nvidia-driver
# make install clean
Then you need to download and install Xorg.
A-dog
Posts: 17
Joined: Fri Dec 13, 2013 12:09 am

Re: system source tree

Post by A-dog »

adripillo12 wrote:
A-dog wrote:I've just installed GhostBSD and now I want to install the nvidia drivers but it tells me that I need the system source tree. I've tried using sysinstall to no avail and there was something on sourceforge about using subversion but nothing is working. Please help, I only have vesa working now.
It usually starts with nvidia cards but you can open a console and make:

Code: Select all

# portsnap fetch update
# cd /usr/ports/x11/nvidia-driver
# make install clean
Then you need to download and install Xorg.

I tried that already
this is what I'm looking

Code: Select all

root@Russ-BSD /u/p/x/nvidia-driver# make MAKE_JOBS_UNSAFE=yes install clean
===>  Building for nvidia-driver-319.32
===> src (all)
"/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"
*** [all] Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-319.32.
*** [do-build] Error code 1

Stop in /usr/ports/x11/nvidia-driver.
*** [install] Error code 1

Stop in /usr/ports/x11/nvidia-driver.

I've tried using sysinstall, Configure, Distribution, [src], [sys] - and then from CD/DVD with no luck

It looks like I need source code to build the nvidia driver

What to do now?
User avatar
adripillo12
Posts: 52
Joined: Wed Sep 25, 2013 7:04 am

Re: system source tree

Post by adripillo12 »

A-dog wrote:
adripillo12 wrote:
A-dog wrote:I've just installed GhostBSD and now I want to install the nvidia drivers but it tells me that I need the system source tree. I've tried using sysinstall to no avail and there was something on sourceforge about using subversion but nothing is working. Please help, I only have vesa working now.
It usually starts with nvidia cards but you can open a console and make:

Code: Select all

# portsnap fetch update
# cd /usr/ports/x11/nvidia-driver
# make install clean
Then you need to download and install Xorg.

I tried that already
this is what I'm looking

Code: Select all

root@Russ-BSD /u/p/x/nvidia-driver# make MAKE_JOBS_UNSAFE=yes install clean
===>  Building for nvidia-driver-319.32
===> src (all)
"/usr/share/mk/bsd.kmod.mk", line 12: "can't find kernel source tree"
*** [all] Error code 1

Stop in /usr/ports/x11/nvidia-driver/work/NVIDIA-FreeBSD-x86_64-319.32.
*** [do-build] Error code 1

Stop in /usr/ports/x11/nvidia-driver.
*** [install] Error code 1

Stop in /usr/ports/x11/nvidia-driver.

I've tried using sysinstall, Configure, Distribution, [src], [sys] - and then from CD/DVD with no luck

It looks like I need source code to build the nvidia driver

What to do now?
Its is weird, since I have it running on a computer with nvidia card. But take a look at this

http://www.freebsd.org/doc/en_US.ISO885 ... lding.html
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: system source tree

Post by ericbsd »

To install nvidia-drivers from ports you need src.
Do

Code: Select all

pkg_add -rf nvidia-drivers
A-dog
Posts: 17
Joined: Fri Dec 13, 2013 12:09 am

Re: system source tree

Post by A-dog »

ericbsd wrote:To install nvidia-drivers from ports you need src.
Do

Code: Select all

pkg_add -rf nvidia-drivers
/usr/src may be the problem. I seem to have [sys] directories inside each other in /usr/src/sys/sys/sys .... and they go on forever. Should I reinstall GhostBSD and try again or is there a way to fix the directory corruption.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: system source tree

Post by ericbsd »

This might be a bug.
A-dog
Posts: 17
Joined: Fri Dec 13, 2013 12:09 am

Re: system source tree

Post by A-dog »

I've reinstalled it and it's not doing it this time. I'm following http://sourceforge.net/p/ghostbsdprojec ... ee/3.5-RC/ instructions this time. Should this work better?

May not be a bug in the os, it may be a bug in my motherboard. I switched to BSD from debian linux because of a conflict with the linux kernel and the MB bios. I bought a Z77 MSI MPOWER uefi MB and it doesn't play well.

this code seems to be working

Code: Select all

 svn checkout svn://svn.freebsd.org/base/releng/9.2/ /usr/src
I should get a source code tree. Maybe?
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: system source tree

Post by ericbsd »

A-dog
Posts: 17
Joined: Fri Dec 13, 2013 12:09 am

Re: system source tree --SOLVED--

Post by A-dog »

The svn

Code: Select all

 svn checkout svn://svn.freebsd.org/base/releng/9.2/ /usr/src
doesn't populate the /usr/src/sys directory.
The tar file ftp://ftp.freebsd.org/pub/FreeBSD/relea ... SE/src.txz does.
I needed the kernel source code before anything would work.
After compiling the nvidia-driver, nvidia-xconfig, and nvidia-settings I need to create a /boot/loader.conf file. One doesn't exist now.
Once all of that happened it ran beautifully.
Thank you for your help
Post Reply