I am trying to install Fish shell using homebrew using command:
brew install fish
But the installation fails with the following error:
==> ./configure --prefix=/usr/local/Cellar/fish/2.1.1 SED=/usr/bin/sed
checking for library containing setupterm... -lncurses
checking for library containing nan... none required
checking for library containing iconv_open... no
checking for library containing libiconv_open... no
configure: error: Could not find an iconv implementation, needed to build fish
I tried searching around but no clear solution was found. System configuration:
$ brew --config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: f03104755df8cbfb720254bd88ac7594a3837d36
Last commit: 11 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.10.1-x86_64
CLT: 6.1.0.0.1.1413057044
Clang: 6.0 build 600
X11: N/A
System Ruby: 2.0.0-481
Perl: /usr/bin/perl
Python: /usr/bin/python
Ruby: /usr/bin/ruby
Could you please help to fix this? Thanks!
brew doctor
is? This is usually a great first step to fixing build problems. – Mikey T.K. Nov 19 '14 at 18:35brew --config
showsXcode: 6.1
where yours does not), and i've got a newer version of Brew installed (commit ends in37d36
, and I saw that thefish
package got an update). Try doing abrew update
, and if that fails, installing Xcode from the appstore. Oddly enough, if I try to do abrew install libiconv
', I get a message back sayingApple distributes libiconv with OS X
. Smells like a pathing problem of some kind. – Mikey T.K. Nov 20 '14 at 18:09/opt
folder. Have you installed MacPorts? – Alistair McMillan Nov 30 '14 at 0:29