FreeBSD, gettext, libintl and bash
Monday, 10. 25. 2010 – Category: sw
Login surprise!
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 8.0-RELEASE-p4 (GENERIC) #0: Mon Jul 12 20:22:27 UTC 2010 /libexec/ld-elf.so.1: Shared object "libintl.so.8" not found, required by "bash" $
What’s happened here is that
gettext
(which provides libintl.so
) has been upgraded without its dependencies noticing (read: I messed up some package maintenance). These dependencies are linked against a specific version of this library that’s now gone. One of these dependencies is bash
, my preferred shell.
Having your shell asplode like that is ungood. If bash
has been set as my default shell then I wouldn’t be able to log in at all! This is a risk of relying on software that isn’t part of FreeBSD’s core to absolutely always work across system maintenance. bash
is a third-party port, and it’s prudent to anticipate package management fail ((because all package management sucks at some point, yes?)).
To side-step this risk I tend to set my shell to something that is native to a FreeBSD release (plain ole’ /bin/sh
) and adding the following in my .profile
, to test if bash
is indeed working before running it:
/usr/local/bin/bash -c true && exec /usr/local/bin/bash
And to fix all the other ports that are now broken:
$ sudo portmaster -r -R devel/gettext
One Response to “FreeBSD, gettext, libintl and bash”
Recent articles
- Docker, SELinux, Consul, Registrator
(Wednesday, 04. 29. 2015 – No Comments) - ZFS performance on FreeBSD
(Tuesday, 09. 16. 2014 – No Comments) - Controlling Exim SMTP behaviour from Dovecot password data
(Wednesday, 09. 3. 2014 – No Comments) - Heartbleed OpenSSL vulnerability
(Tuesday, 04. 8. 2014 – No Comments)
Archives
- April 2015
- September 2014
- April 2014
- September 2013
- August 2013
- March 2013
- April 2012
- March 2012
- September 2011
- June 2011
- February 2011
- January 2011
- October 2010
- September 2010
- February 2010
- September 2009
- August 2009
- January 2009
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- February 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- December 2006
- November 2006
- August 2006
- June 2006
- May 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
December 9th, 2010 at 11:28 am
Really wish I had seen this before bricking my server.