6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

homebrewでjuliaのHEADのインストールに失敗した時にするといいこと

Last updated at Posted at 2014-11-17

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

6
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?