Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

"could not load library" problem from inside Juno

$
0
0

@nshaviv wrote:

I am an enthusiastic julia newbie. I was trying to run ArrayFire (i.e., use the GPU with Julia). After downloading and installing ArrayFire and ArrayFire.jl, it worked in Julia running from the command line, but not through Atom/Juno.

From the command line it worked because I added setenv LD_LIBRARY_PATH /opt/arrayfire/lib to my .tcshrc (yes, people still use it).

For juno, I added

ENV["LD_LIBRARY_PATH"] = "/opt/arrayfire/lib"
ENV["DYLD_LIBRARY_PATH"] = "/opt/arrayfire/lib"

to .julia/config/startup.jl

When running Julia through Juno ENV does show that the above were set, however, the commands:

using ArrayFire 
a = rand(AFArray{Float64},100,100)

produce the error

ERROR: error compiling rand: could not load library "libaf.3"
dlopen(libaf.3.dylib, 1): image not found

I’m a bit clueless… how do I force Juno to be aware of the library?
Any suggestions will be appreciated (especially if they will resolve the problem :wink: )

More about the system
Mac Book Pro running OS X 10.15.3
Julia Version 1.3.1
Atom version 1.45.0
julia-client 0.12.3

Thanks!
– Nir

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles