homebrew will generally refuse to install libiconv, since forcing homebrew to install could cause significant issues with other compiles on your machine (like julia) if you've installed homebrew in their recommended location of /usr/local. I recommend uninstalling that and deleting the deps/libgit2 folder (to force it to reconfigure).
On Fri, Aug 21, 2015 at 10:36 AM vmarsi75-ggroups via julia-users < julia-users@googlegroups.com> wrote: > Hi Folks, > > I'm having trouble compiling the v0.4 git head: > > [ 0%] Linking C shared library libgit2.dylib > Undefined symbols for architecture x86_64: > "_libiconv", referenced from: > _git_path_iconv in path.c.o > "_libiconv_close", referenced from: > _git_path_direach in path.c.o > _git_path_iconv_clear in path.c.o > _git_path_diriter_free in path.c.o > _git_path_dirload in path.c.o > "_libiconv_open", referenced from: > _git_path_direach in path.c.o > _git_path_iconv_init_precompose in path.c.o > _git_path_diriter_init in path.c.o > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > make[4]: *** [libgit2.0.23.1.dylib] Error 1 > make[3]: *** [CMakeFiles/git2.dir/all] Error 2 > make[2]: *** [all] Error 2 > make[1]: *** [libgit2/build/libgit2.dylib] Error 2 > make: *** [julia-deps] Error 2 > > I'm on OS X Mountain Lion (10.8.5). I've tried to install and link the > homebrew libiconv: > > brew install libiconv > brew link libiconv --force > > but that doesn't work either. > > The compile goes just fine if I use the release-0.3 branch (without the > homebrew libiconv). Any pointers? > > Thanks, > Ravi >