Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2006, 10:27 PM
cc cc is offline
Junior Member
 
Join Date: Mar 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default /usr/src was not installed
hi

I have a fresh installation of freeBSD 6.0, but my /usr/src is empty:
Code:
# cd /usr/src
# ls -la
total 4
drwxr-xr-x   2 root  wheel  512 Nov  3 09:09 .
drwxr-xr-x  18 root  wheel  512 Mar 18 04:25 ..
I don't know why /usr/src was not installed.
Did I forget something during the installation ?

my system before update:
Code:
 uname -a
FreeBSD bsd.domain 6.0-RELEASE FreeBSD 6.0-RELEASE #0: Thu Nov  3 09:36:13 UTC 2005     root@x64.samsco.home:/usr/obj/usr/src/sys/GENERIC  i386
is it the correct way to install source tree on freeBSD 6.0 to get patched stable and not beta ?
Code:
# cat /etc/cvsup.base

*default host=cvsup6.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6_0
*default release=cvs delete use-rel-suffix compress
*default delete use-rel-suffix

*default compress

*src-all
do I need these following commands after source tree installation ?
Code:
# make -j 5 buildworld
# make buildkernel
# make installkernel
# make installworld
greetings
cc
Reply With Quote
  #2  
Old 03-20-2006, 10:48 PM
scottro scottro is offline
Senior Member
 
Join Date: May 2005
Location: NYC
Posts: 360
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Is this a FreeBSD install or a PCBSD install? I'm going to guess it's a FreeBSD one.

When you installed, it would have depended upon what you selected during installation--perhaps you didn't install the source tree. I forget the exact choices, but perhaps you just chose to install the binaries.)

So, a cvsup should fix that.

RELENG_6 will give you PRERELEASE. RELENG_6.0 will probably put you a bit behind, getting 6.0-psomething. See
http://home.nyc.rr.com/computertaijutsu/release.html for a good explanation.

Once you do the cvsup you should have your source tree.

For the actual steps for installation, you can look at

http://home.nyc.rr.com/computertaijutsu/FreeBSD5x.html

Avoid the -j flags, according to the latest UPDATING.

Doing it the way you have it, make buildkernel make isntallkernel will install the GENERIC kernel, not a custom kernel.

After installkernel, reboot, preferably in single user mode.

Then,

fsck -p
mount -u /
mount -a
mergemaster -p

(This might be important right now, as a new group, auditor, was added and installworld will fail otherwise.)

cd /usr/src
make installworld
mergemaster

Again, see the link I posted above for more detail
Reply With Quote
  #3  
Old 03-20-2006, 10:56 PM
molnarcs molnarcs is offline
Senior Member
 
Join Date: Jan 2006
Posts: 100
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Hmm... I noticed one difference, delete inyour supfile setting. Mine looks like this:
Code:
*default host=cvsup.hu.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6
*default delete use-rel-suffix
Basically, the single line you have to edit is *default host=CHANGE_THIS.FreeBSD.org and RELENG_6 to RELENG_6_0 to get the sources with the latest security patches for your particular release. The sample supfiles are in /usr/share/examples/cvsup (you need standard-supfile).

Then, when you run cvsup standard-supfile it will populate your /usr/src.

Quote:
# make -j 5 buildworld
# make buildkernel
# make installkernel
# make installworld
About -j 5 - do you have a multiple CPU machine? Because if you don't you don't need -j 5. The rest is correct, except that you need to reboot before make installworld into the new kernel, and in single user mode. If you installed FreeBSD, choose 4 from boot menu, if you installed PC-BSD, press any character during the 2 sec. countdown at boot, and enter "boot -s" to boot into single user mode. Than you have to mount your partitions (mount -a) and issue the make installworld command in /usr/src.

If you happen to upgrade this way from one release to another, you have to run mergemaster before make installworld, but for standard sec. updates for a particular release, that is not necessary (usually). Consult the FreeBSD handbook for more details.
Reply With Quote
  #4  
Old 03-20-2006, 11:05 PM
cc cc is offline
Junior Member
 
Join Date: Mar 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default
thanks a lot !
Reply With Quote
  #5  
Old 03-21-2006, 08:38 AM
antik's Avatar
antik antik is offline
Super Moderator
 
Join Date: Jul 2005
Location: Estonia
Posts: 3,610
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Originally Posted by molnarcs
Hmm... I noticed one difference, delete inyour supfile setting. Mine looks like this:
Code:
*default host=cvsup.hu.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_6
*default delete use-rel-suffix
I suggest do not edit any supfile at all- just put all your overrides to /etc/make.conf.
__________________
"All parts should go together without forcing. Therefore, if you can't get them together again, there must be a reason. By all means, do not use a hammer." -- IBM maintenance manual, 1975
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble getting WoW installed baders General Questions 1 01-06-2008 02:03 PM
No usr/src/sys gets installed from cd? pizzafoundry Installing PC-BSD 2 10-27-2007 06:31 PM
Installed but.. !? [PC-BSD 1.0rc2] Demoritus Installing PC-BSD 5 03-09-2006 07:12 PM
Just installed 0.8 lurch General Questions 0 09-16-2005 12:03 PM
Woo hoo! Just installed PC-BSD 0.7.8 californiajeff General Questions 10 07-20-2005 08:43 AM


All times are GMT. The time now is 06:09 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.