dmlc / MXNet.jl

MXNet Julia Package - flexible and efficient deep learning in Julia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using the prebuild Julia v0.4 binaries with MXNet.jl

vchuravy opened this issue · comments

@colbec can you try to run:
Libdl.dlopen(joinpath(Pkg.dir("MXNet"), "deps", "usr", "lib", "libmxnet.so"))
after a Pkg.build("MXNet")? Using the prebuilt binaries for v0.4 fails for me because the libstdc++ shipped with them is to old.

If that is the case you can delete the shipped libstdc++.so

Also see #139 where I try to improve the buildscript situation generally.

@vchuravy Sorry for delay; sleep. Here is the result of trying to build MXNet in Julia 0.4.6 generic binary on openSUSE Leap 42.1 followed by your suggestion:

/home/colin/.julia/v0.4/MXNet/deps/src/mxnet/mshadow/mshadow/./base.h:136:23: fatal error: cblas.h: No such file or directory
     #include <cblas.h>
                       ^
compilation terminated.
Makefile:151: recipe for target 'build/src/resource.o' failed
make: *** [build/src/resource.o] Error 1
================================[ ERROR: MXNet ]================================

LoadError: failed process: Process(`make`, ProcessExited(2)) [2]
while loading /home/colin/.julia/v0.4/MXNet/deps/build.jl, in expression starting on line 20

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

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

WARNING: MXNet had build errors.

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

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

julia> Libdl.dlopen(joinpath(Pkg.dir("MXNet"), "deps", "usr", "lib", "libmxnet.so"))
ERROR: could not load library "/home/colin/.julia/v0.4/MXNet/deps/usr/lib/libmxnet.so"
/home/colin/.julia/v0.4/MXNet/deps/usr/lib/libmxnet.so: cannot open shared object file: No such file or directory
 in dlopen at libdl.jl:36 (repeats 2 times)

Pleas reopen if this is still an issue with the 0.5 binaries.