Lytol / Mongo.jl

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

Error Building Mongo Package on Windows 10 #37

Open ciko92 opened 6 years ago

ciko92 commented 6 years ago

OS: Windows 10. Julia is installed in the default location. julia version: 0.6.2 I already tried to remove the package and try to add again without success.

`INFO: Building LibBSON ===============================[ ERROR: LibBSON ]===============================

LoadError: None of the selected providers can install dependency libbson. Use BinDeps.debug(package_name) to see available providers

while loading C:\Users\"user".julia\v0.6\LibBSON\deps\build.jl, in expression starting on line 27

================================================================================ INFO: Building Mongo ================================[ ERROR: Mongo ]================================

LoadError: None of the selected providers can install dependency libmongoc. Use BinDeps.debug(package_name) to see available providers

while loading C:\Users\ciko9.julia\v0.6\Mongo\deps\build.jl, in expression starting on line 26

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

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

WARNING: LibBSON and Mongo had build errors.

================================================================================ `

magno6058 commented 6 years ago

I'm having this problem too, did you find a solution? @ciko92

ciko92 commented 6 years ago

Hi @magno6058, yes I managed to fixed it. It's not so easy.

I installed the mongoc driver by myself: http://mongoc.org/libmongoc/1.1.5/installing.html#building-windows

Then I added the two drivers folder in .julia path: LibBSON driver in: .julia\v0.6\LibBSON Mongo driver in: .julia\v0.6\Mongo

Finally I modified the drivers path in deps.jl in .julia\v0.6\LibBSON\deps and .julia\v0.6\Mongo\deps