Skip to content

Instantly share code, notes, and snippets.

@lamont-granquist
Created September 7, 2014 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lamont-granquist/a6c231eb2e0b2d45641d to your computer and use it in GitHub Desktop.
Save lamont-granquist/a6c231eb2e0b2d45641d to your computer and use it in GitHub Desktop.
installing libiconv
% brew install libiconv
==> Downloading http://ftpmirror.gnu.org/libiconv/libiconv-1.14.tar.gz
Already downloaded: /Library/Caches/Homebrew/libiconv-1.14.tar.gz
==> Downloading https://trac.macports.org/export/89276/trunk/dports/textproc/libiconv/files/patch-Makefile.devel
Already downloaded: /Library/Caches/Homebrew/libiconv--patch-44b0cd68279dafc584faa24c9b301186330542ae.devel
==> Downloading https://trac.macports.org/export/89276/trunk/dports/textproc/libiconv/files/patch-utf8mac.diff
Already downloaded: /Library/Caches/Homebrew/libiconv--patch-b47d62b5e516291fd87fd758181eeda4c786c8de.diff
==> Patching
patching file Makefile.devel
Hunk #1 succeeded at 106 (offset 1 line).
patching file lib/converters.h
patching file lib/encodings.def
patching file lib/utf8mac.h
patching file lib/flags.h
==> ./configure --prefix=/usr/local/Cellar/libiconv/1.14 --enable-extra-encodings
==> make -f Makefile.devel CFLAGS= CC=clang
==> make install
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libiconv/lib
    CPPFLAGS: -I/usr/local/opt/libiconv/include

==> Summary
🍺  /usr/local/Cellar/libiconv/1.14: 26 files, 1.4M, built in 53 seconds
% brew link libiconv
Warning: libiconv is keg-only and must be linked with --force
Note that doing so can interfere with building software.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment