Lytol / Mongo.jl

Mongo bindings for the Julia programming language
MIT License
30 stars 37 forks source link

ERROR: error compiling call while executing MongoClient() #31

Open Dawny33 opened 9 years ago

Dawny33 commented 9 years ago

I get this error while executing the line client = MongoClient() # Defaults to MongoClient("localhost", 27017)

julia> client = MongoClient()
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near no file:0
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
  likely near no file:0
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
  likely near no file:0
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
  likely near no file:0
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
  likely near no file:0
WARNING: Base.Uint8 is deprecated, use UInt8 instead.
  likely near no file:0
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near no file:0
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near no file:0
ERROR: error compiling call: error compiling call: could not load library "libmongoc"
dlopen(libmongoc.dylib, 1): image not found

The mongod and mongo shells are already running.

In addition, when I run the using Mongo line, I get the following error:

julia> using Mongo

WARNING: deprecated syntax "{}" at /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:186.
Use "[]" instead.
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:48
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:48
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:57
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:111
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:119
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:211
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in require at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
while loading /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl, in expression starting on line 211
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:213
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:215
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:217
WARNING: Union(args...) is deprecated, use Union{args...} instead.
 in depwarn at deprecated.jl:73
 in call at deprecated.jl:50
 in include at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
 in require at /Applications/Julia-0.4.0.app/Contents/Resources/julia/lib/julia/sys.dylib
while loading /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl, in expression starting on line 217
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:219
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:221
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:223
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:228
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/BSON.jl:235
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/mongo_client.jl:3
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/mongo_client.jl:3
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/mongo_cursor.jl:4
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/mongo_cursor.jl:4
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/mongo_cursor.jl:36
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:21
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:24
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:25
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:26
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:28
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:34
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:35
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:37
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:46
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:48
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:55
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:57
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:65
WARNING: Base.String is deprecated, use AbstractString instead.
  likely near /Users/jalemrajrohit/.julia/v0.4/Mongo/src/Mongo.jl:73