you're executable seems to be compiled wrong and cannot be executed
(missing the @rpath attribute). try giving the
-Wl,-rpath,"$JULIA_DIR/lib" option
in your linker command where you passed `-ljulia`

On Sat Jan 31 2015 at 6:37:17 PM eric l <[email protected]> wrote:

>
> I am trying to compile and run embedding.c on a 10.9.5 OS X Mac.
> Compile without a glitch
> but when I run the executable I get:
>
> > ./embedd
>
> dyld: Library not loaded: @rpath/libjulia.dylib
>
>   Referenced from: /Users/doe/./embedd
>
>   Reason: image not found
>
> Trace/BPT trap: 5
>
> I have try with jl_init set to: NULL,  $JULIA_DIR/   $JULIA_DIR/bin
>  $JULIA_DIR/lib/julia
>
>  (with $JULIA_DIR fully extended ;)
>
> and get the same error over and over...
>
> So what path should I write in jl_init () or should I do something
> different?
>
> Thxs.
>
> PS:
>
> Julia Version 0.3.5
>
> Commit a05f87b* (2015-01-08 22:33 UTC)
>
> Platform Info:
>
>   System: Darwin (x86_64-apple-darwin13.4.0)
>
>   CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
>
>   WORD_SIZE: 64
>
>   BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
>
>   LAPACK: libopenblas
>
>   LIBM: libopenlibm
>
>   LLVM: libLLVM-3.3
>
>
>

Reply via email to