I'm trying to install Bash on a FreeBSD 8.3 (pfSense 2.1.2) system as follows:

pkg_add -r http://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/amd64/8.3-RELEASE/packages/Latest/bash.tbz

which is failing with throwing warnings that

pkg_add: warning: package 'bash-4.2.20' requires 'libiconv-1.13.1_2', but 'libiconv-1.14_1' is installed
pkg_add: warning: package 'bash-4.2.20' requires 'gettext-', but 'gettext-' is installed

I mentioned that it's a pfSense box but there's no Bash package available via the web frontend; is there an easy way forward or should I be looking into use a ports system?

Edit: it turns out that this was a non-fatal warning, and bash successfully installed after all.

(Not tagged with as it's not a routing/firewall issue, but feel free to retag if this turns out to be pfsense-specific.)


This is a bit of a nasty one. Basically, pfSense 2.1.2 ships with newer versions of libiconv and gettext than those defined as dependencies for the FreeBSD 8.3-RELEASE bash package. As I see it, you have a few options (in order of effort):

  1. Install the FreeBSD static bash package (bash-static) - that should not have any dependencies on shared libraries so should install fine.
  2. Use a third party package source. The pfSense site suggests this site as an option. Of course, this is a third party site, so you'll need to trust them. I see that their packages use libiconv 1.14.1 and gettext so their bash package should Just Work.
  3. Compile your own bash package on a FreeBSD 8.3 system, after updating its libiconv and gettext packages to match those on pfSense 2.1.2.
  • Turns out bash did install, but I'd also thought about using the statically linked version (so long as no vulnerabilities turn up in iconv or gettext before the box gets replaced I'll be fine). – Andrew Jul 6 '15 at 5:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.