*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Portupgrade is failing to upgrade a few packages on my FreeBSD v10-RELEASE server and I am trying to figure out how to fix this.
Here is where libiconv fails:
Code:
===> Building package for libiconv-1.14_3
Creating package /usr/ports/converters/libiconv/work/pkg/libiconv-1.14_3.tbz
Registering depends:.
Creating bzip'd tar ball in '/usr/ports/converters/libiconv/work/pkg/libiconv-1.14_3.tbz'
tar: lib/libcharset.so: Cannot stat: No such file or directory
tar: lib/libcharset.so.1: Cannot stat: No such file or directory
tar: lib/libiconv.so: Cannot stat: No such file or directory
tar: lib/libiconv.so.3: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1
In the past, when I encountered something like this, I had the habit of uninstalling a port and then reinstalling it. But if this fails then all kinds of stuff stops working.
What is the smart approach for solving this problem?
Ouch, and this is why you don't ever change root's shell. The bash shell is not part of any *BSD system, it's built from ports, which is why you should never change root's shell to it. Use the bourne shell (sh) and if you want to do bash stuff just enter 'bash' and proceed from there.
To get a working shell you will need to boot in single user mode (at boot loader menu "Welcome to FreeBSD" option 4)
===> Building package for libiconv-1.14_3
Creating package /usr/ports/converters/libiconv/work/pkg/libiconv-1.14_3.tbz
Registering depends:.
Creating bzip'd tar ball in '/usr/ports/converters/libiconv/work/pkg/libiconv-1.14_3.tbz'
tar: lib/libcharset.so: Cannot stat: No such file or directory
tar: lib/libcharset.so.1: Cannot stat: No such file or directory
tar: lib/libiconv.so: Cannot stat: No such file or directory
tar: lib/libiconv.so.3: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors.
pkg_create: make_dist: tar command failed with code 256
*** [do-package] Error code 1
The build seems to go ok?
It looks like the package build which fails as it can't find the binaries which were built, so perhaps the paths are incorrect.
What happens if you "make clean" the port and rebuild it from a root login shell?
If it still fails I would next try moving your ports tree to a backup and fetch a new ports tree snapshot.
Also if possible switch to portmaster instead of portupgrade
It looks like the package build which fails as it can't find the binaries which were built, so perhaps the paths are incorrect.
What happens if you "make clean" the port and rebuild it from a root login shell?
If it still fails I would next try moving your ports tree to a backup and fetch a new ports tree snapshot.
Also if possible switch to portmaster instead of portupgrade
I would echo your comments on portmaster, Since I started using it, updating ports became a whole lot easier. It is a shell script and doesn't rely on anything else from the ports tree. Occasionally it will fall over when building a port but it gives you clues where to look. Another important point to be aware of is when updating the ports tree, ALWAYS read /usr/ports/UPDATING.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.