ScottPJones / Mongo.jl

Mongo bindings for the Julia programming language
Other
43 stars 21 forks source link

Building error with Julia 0.4.5 on Mac #17

Closed specter119 closed 8 years ago

specter119 commented 8 years ago

I install Julia 0.4.5 on OSX 10.11.4 by Homebrew. when I use Pkg.update() and then Pkg.add("Mongo"), the install informations were as follows:

INFO: Installing BinDeps v0.3.21
INFO: Installing Compat v0.7.14
INFO: Installing Homebrew v0.2.0
INFO: Installing JSON v0.5.0
INFO: Installing LibBSON v0.2.1
INFO: Installing Mongo v0.2.0
INFO: Installing SHA v0.1.2
INFO: Installing URIParser v0.1.3
INFO: Building Homebrew
INFO: Recompiling stale cache file /Users/Home/.julia/lib/v0.4/Compat.ji for module Compat.
INFO: Recompiling stale cache file /Users/Home/.julia/lib/v0.4/JSON.ji for module JSON.
INFO: Recompiling stale cache file /Users/Home/.julia/lib/v0.4/SHA.ji for module SHA.
INFO: Recompiling stale cache file /Users/Home/.julia/lib/v0.4/BinDeps.ji for module BinDeps.
HEAD is now at 53c5089 CoreTap#install: fix clone target setting
HEAD is now at d45fe22 Merge pull request #91 from staticfloat/staging
INFO: Building LibBSON

WARNING: deprecated syntax "{a=>b, ...}" at /Users/Home/.julia/v0.4/LibBSON/deps/build.jl:12.
Use "Dict{Any,Any}(a=>b, ...)" instead.

WARNING: deprecated syntax "{a=>b, ...}" at /Users/Home/.julia/v0.4/LibBSON/deps/build.jl:23.
Use "Dict{Any,Any}(a=>b, ...)" instead.

WARNING: deprecated syntax "[a=>b, ...]" at /Users/Home/.julia/v0.4/LibBSON/deps/build.jl:26.
Use "Dict(a=>b, ...)" instead.
INFO: Building Mongo

WARNING: deprecated syntax "{a=>b, ...}" at /Users/Home/.julia/v0.4/Mongo/deps/build.jl:12.
Use "Dict{Any,Any}(a=>b, ...)" instead.

WARNING: deprecated syntax "{a=>b, ...}" at /Users/Home/.julia/v0.4/Mongo/deps/build.jl:23.
Use "Dict{Any,Any}(a=>b, ...)" instead.

WARNING: deprecated syntax "[a=>b, ...]" at /Users/Home/.julia/v0.4/Mongo/deps/build.jl:26.
Use "Dict(a=>b, ...)" instead.
Error: Cannot install mongo-c because conflicting formulae are installed.

  libbson: because mongo-c installs the libbson headers

Please `brew unlink libbson` before continuing.

Unlinking removes a formula's symlinks from /Users/Home/.julia/v0.4/Homebrew/deps/usr. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side-effects in the
resulting software.
================================[ ERROR: Mongo ]================================

LoadError: failed process: Process(`/Users/Home/.julia/v0.4/Homebrew/deps/usr/bin/brew install --force-bottle mongo-c`, ProcessExited(1)) [1]
while loading /Users/Home/.julia/v0.4/Mongo/deps/build.jl, in expression starting on line 26

================================================================================

================================[ BUILD ERRORS ]================================

WARNING: Mongo had build errors.

 - packages with build errors remain installed in /Users/Home/.julia/v0.4
 - build the package(s) and all dependencies with `Pkg.build("Mongo")`
 - build a single package by running its `deps/build.jl` script

================================================================================
INFO: Package database updated
specter119 commented 8 years ago

Solved, brew install mongo-c first.