Thx Jameson,

By the way on OSX gcc default to this now:

Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)

Target: x86_64-apple-darwin13.4.0
So I was able to make some progress: 
first I got:

./embedd 

System image file 
"/Applications/Julia-0.3.5.app/Contents/Resources/julia/../lib/julia/sys.ji" 
not found
Which make sense as  the path should be julia/lib/julia/sys.ji
So I simply created a dir  lib/julia/ under Resources/
Then copied all the files in lib/julia into the new dir. 

I ran ./embedd again and got a long list of grievances and the expected 
output of embedding.c! 
All the unfounded libxxxx are in the same directories as libjulia.dylib. 
Clearly something is not quite right with the compiler settings I am 
using... 


>.embedd

Warning: error initializing module LinAlg:

ErrorException("error compiling __init__: error compiling check_blas: error 
compiling openblas_get_config: could not load module libopenblas: 
dlopen(libopenblas.dylib, 1): image not found")

Entropy pool not available to seed RNG; using ad-hoc entropy sources.

Warning: error initializing module Random:

ErrorException("could not load module libdSFMT: dlopen(libdSFMT.dylib, 1): 
image not found")

Warning: error initializing module GMP:

ErrorException("error compiling __init__: could not load module libgmp: 
dlopen(libgmp.dylib, 1): image not found")

Warning: error initializing module PCRE:

ErrorException("ccall: could not find function pcre_jit_stack_alloc in 
library libpcre")

sqrt(2.0) in C: 1.414214e+00

sqrt(2.0) in C: 1.414214e+00

x = [9.000000e+00 8.000000e+00 7.000000e+00 6.000000e+00 5.000000e+00 
4.000000e+00 3.000000e+00 2.000000e+00 1.000000e+00 0.000000e+00 ]

my_func(5.0) = 10.000000

UndefVarError(:this_function_does_not_exist)




On Saturday, January 31, 2015 at 4:18:59 PM UTC-8, Jameson wrote:
>
>  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`
>
>
>
>>

Reply via email to