Discussion:
freebsd-update install question
Leslie Jensen
2012-06-14 09:45:55 UTC
Permalink
When I do

freebsd-update install

I get this error:

Installing updates...install: ///usr/src/lib/libc/gen/libc_dlopen.c: No
such file or directory

I think it's because I do not have all sources installed. So I just want
to confirm that it's the case.

Also, should I care and install the source needed?

Thanks

/Leslie
Matthew Seaman
2012-06-14 10:18:20 UTC
Permalink
Post by Leslie Jensen
When I do
freebsd-update install
Installing updates...install: ///usr/src/lib/libc/gen/libc_dlopen.c: No
such file or directory
I think it's because I do not have all sources installed. So I just want
to confirm that it's the case.
If you're using freebsd-update then you don't need the libc sources.
Does no harm to have them around.

Given you're using a custom kernel then you definitely do need the
kernel sources: that's everything under /usr/src/sys plus a few other
bits and pieces.
Post by Leslie Jensen
Also, should I care and install the source needed?
The default setting for freebsd-update is to install the system sources.
If you haven't changed /etc/freebsd-update.conf then something odd is
happening. Perhaps you manually deleted the contents of /usr/src ?

If you definitely don't want the system sources, then edit
/etc/freebsd-update.conf and change this section in the obvious way:

# Components of the base system which should be kept updated.
Components src world kernel

# Example for updating the userland and the kernel source code only:
# Components src/base src/sys world

ie. comment out the first 'Components' line and uncomment the second.

Cheers,

Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: ***@infracaninophile.co.uk Kent, CT11 9PW
Leslie Jensen
2012-06-14 10:30:21 UTC
Permalink
Post by Matthew Seaman
Post by Leslie Jensen
When I do
freebsd-update install
Installing updates...install: ///usr/src/lib/libc/gen/libc_dlopen.c: No
such file or directory
I think it's because I do not have all sources installed. So I just want
to confirm that it's the case.
If you're using freebsd-update then you don't need the libc sources.
Does no harm to have them around.
Given you're using a custom kernel then you definitely do need the
kernel sources: that's everything under /usr/src/sys plus a few other
bits and pieces.
Post by Leslie Jensen
Also, should I care and install the source needed?
The default setting for freebsd-update is to install the system sources.
If you haven't changed /etc/freebsd-update.conf then something odd is
happening. Perhaps you manually deleted the contents of /usr/src ?
If you definitely don't want the system sources, then edit
# Components of the base system which should be kept updated.
Components src world kernel
# Components src/base src/sys world
ie. comment out the first 'Components' line and uncomment the second.
Cheers,
Matthew
I use the default kernel, on changes whatsoever.

I haven't changed anything. I installed the sources because it was
needed for VirtualBox, I think. I didn't install all sources only what
was needed. I've not touched /etc/frebsd-update.conf at all.

Should I install the libc souces?

thanks

/Leslie
Dale Scott
2012-06-14 12:59:36 UTC
Permalink
Post by Leslie Jensen
Should I install the libc souces?
I had this error when upgrading 8.x (8.1 to 8.2?), and solved it by creating
the directory only (actual sources not required). I recall someone had
posted this solution to the list at the time.

Regards,
Dale
Leslie Jensen
2012-06-20 07:00:53 UTC
Permalink
Post by Dale Scott
Post by Leslie Jensen
Should I install the libc souces?
I had this error when upgrading 8.x (8.1 to 8.2?), and solved it by creating
the directory only (actual sources not required). I recall someone had
posted this solution to the list at the time.
Regards,
Dale
_______________________________________________
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
I followed your suggestion and created the directory.

I then installed the latest update with freebsd-update and it went well
without any warnings.

Thanks for the advice :-)

/Leslie

Loading...