Yosemiteにあげたあととか、gccのアップデートがからんでjuliaのHEADのインストールが死ぬ時があります。
brew reinstall julia --HEAD
(...snip...)
==> make -C contrib -f repackage_system_suitesparse4.make prefix=/usr/local/Cellar/julia/HEAD USE_BLAS64=0 FC=/usr/local/bin/gfortran LLVM_CONFIG=llvm-config-3.3 USECLANG=1 LIBBLAS=-lopenblas LIBBLASNAME=libopenblas LIBLAPACK=-lopen
clang++ -stdlib=libc++ -mmacosx-version-min=10.7 -m64 -shared -Xlinker -all_load /usr/local/opt/suite-sparse-julia/lib/libsuitesparseconfig.a /usr/local/opt/suite-sparse-julia/lib/libspqr.a -o /private/tmp/julia-FrXHX4/usr/lib/libspqr.dylib -L/private/tmp/julia-FrXHX4/usr/lib -L/usr/local/opt/suite-sparse-julia/lib -L/usr/local/opt/arpack-julia/lib -L/usr/local/opt/openblas-julia/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/llvm33-julia/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/cloog018-julia/lib -L/usr/local/opt/isl011-julia/lib -L/usr/local/opt/gmp4-julia/lib -L/usr/local/lib -F/usr/local/Frameworks -Wl,-headerpad_max_install_names -headerpad_max_install_names -lcholmod -lcolamd -lamd -lopenblas -Wl,-rpath,'@loader_path/' && \
install_name_tool -id @rpath/libspqr.dylib /private/tmp/julia-FrXHX4/usr/lib/libspqr.dylib
ld: file not found: /usr/local/lib/gcc/x86_64-apple-darwin13.4.0/4.9.1/libgfortran.3.dylib for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [default] Error 1
こういうときは、慌てず騒がずarpackとopenblasをsourceからインストールし直しましょう。
brew rm arpack-julia openblas-julia
brew install --build-from-source arpack-julia openblas-julia
brew reinstall julia --HEAD --with-accelerate
よくわからなくて、make distclean && makeしてたのに、これだけで十分とは...。
source: https://github.com/staticfloat/homebrew-julia/issues/123