# Brew install julia linker command failed

**URL:** <https://discourse.julialang.org/t/brew-install-julia-linker-command-failed/1843>\
**Category:** General Usage\
**Tags:** package\
**Created:** [February 2, 2017, 2:51pm UTC](https://discourse.julialang.org/t/brew-install-julia-linker-command-failed/1843 "2017-02-02T14:51:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![smores](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@smores](https://discourse.julialang.org/u/smores)\
**Post date:** [February 2, 2017, 2:51pm UTC](https://discourse.julialang.org/t/brew-install-julia-linker-command-failed/1843/1 "2017-02-02T14:51:17Z")

</div>

brew install --HEAD julia

generates an error as follows

Downloading [https://gist.githubusercontent.com/timxzl/c6f474fa387382267723/raw/2ecb0270d83f0a167358ff2a396cd6004e1b02a](https://gist.githubusercontent.com/timxzl/c6f474fa387382267723/raw/2ecb0270d83f0a167358ff2a396cd6004e1b02a)  
######################################################################## 100.0%  
==\> Downloading [https://gist.githubusercontent.com/staticfloat/cfad1fe4f69e88ec5731e5f3fd91b946/raw/22a164a7cf7c7cf2a64a08](https://gist.githubusercontent.com/staticfloat/cfad1fe4f69e88ec5731e5f3fd91b946/raw/22a164a7cf7c7cf2a64a08)  
######################################################################## 100.0%  
==\> Patching  
==\> Applying Makefile.diff  
patching file Makefile  
patch unexpectedly ends in middle of line  
Hunk #1 succeeded at 286 with fuzz 1 (offset 14 lines).  
==\> Applying suitesparse.mk.diff  
patching file deps/suitesparse.mk  
Hunk #1 succeeded at 101 (offset 10 lines).  
==\> make -C contrib -f repackage\_system\_suitesparse4.make prefix=/usr/local/Cellar/julia/HEAD-8e52f59 USE\_BLAS64=0 TAGGED\_  
==\> make prefix=/usr/local/Cellar/julia/HEAD-8e52f59 USE\_BLAS64=0 TAGGED\_RELEASE\_BANNER=“homebrew-julia release” FC=/usr/l  
Last 15 lines from /Users/studio/Library/Logs/Homebrew/julia/02.make:  
CC src/timing.o  
CC src/subtype.o  
CC src/codegen.o  
CC src/jitlayers.o  
CC src/disasm.o  
CC src/debuginfo.o  
CC src/llvm-simdloop.o  
CC src/llvm-ptls.o  
CC src/llvm-gcroot.o  
CC src/cgmemmgr.o  
LINK usr/lib/libjulia.0.6.0.dylib  
ld: library not found for -lLLVM  
clang: error: linker command failed with exit code 1 (use -v to see invocation)  
make[1]: \*\*\* [/private/tmp/julia-20170202-45572-l2v6y4/usr/lib/libjulia.0.6.0.dylib] Error 1  
make: \*\*\* [julia-src-release] Error 2

---

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [February 2, 2017, 3:06pm UTC](https://discourse.julialang.org/t/brew-install-julia-linker-command-failed/1843/2 "2017-02-02T15:06:15Z")

</div>

[https://github.com/staticfloat/homebrew-julia/issues/232](https://github.com/staticfloat/homebrew-julia/issues/232)

In the meantime you can try building Julia not via Homebrew.

---

<div class="post-metadata">

**Author:** ![smores](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@smores](https://discourse.julialang.org/u/smores)\
**Post date:** [February 2, 2017, 3:14pm UTC](https://discourse.julialang.org/t/brew-install-julia-linker-command-failed/1843/3 "2017-02-02T15:14:33Z")

</div>

snap \>\> I posted that in issue queue on homebrew-julia  
and  
Ive also issues on buidling against source

> [@Building julia on MacOS 10.12.2](https://discourse.julialang.org/t/building-julia-on-macos-10-12-2/1065/5):
>
> Im running into the same issue of building from source what are the minimun versions of compilers and cmake required Ive tried using latest gcc 6.3 and gcc that come as default on the system for example export CC=/usr/bin/clang export CXX=/usr/bin/clang++ export CPP=/usr/bin/cpp export LD=/usr/bin/ld alias c++=/usr/bin/c++ alias g++=/usr/bin/g++ alias gcc=/usr/bin/clang alias cpp=/usr/bin/clang++ alias cc=/usr/bin/gcc alias ld=/usr/bin/ld I smylink gcc to usr/local/bin for the lat…

any other insights  
tks  
M
