Travis testing for Julia's C API

209 views
Skip to first unread message

Jake Bolewski

unread,
Mar 21, 2014, 3:15:55 PM3/21/14
to juli...@googlegroups.com
I'm trying to set up an example Travis environment for testing python -> julia bindings.  When julia installs it seems like the built libjulia is not symlinked to /usr/lib/julia/ (but this could be an Arch / Ubuntu policy distinction).  Specifying the correct path allows ctypes to find the library but now it complains that it cannot find the system image file sys.jl.  I could play around with this some more but I'm hoping that someone can provide some clues about how to set this up correctly.

Best,
Jake

Felipe Cruz

unread,
Mar 21, 2014, 8:07:23 PM3/21/14
to juli...@googlegroups.com
Hi Jake!

There are 2 problemas: jl_init() appends "../lib/julia" to the path parameter if you specify it, and for some reason, ubuntu installs julia under /usr/lib/x86_64-linux-gnu. The solution I found on my ubuntu was to use "/usr/bin" as path parameter to jl_init() and create a symbolic link from /usr/lib/julia to /usr/lib/x86_64-linux-gnu/julia.

I think the jl_init() should be fixed because it's just weird to append "../lib/julia" to the path.

regards,

Patrick O'Leary

unread,
Mar 21, 2014, 9:23:18 PM3/21/14
to juli...@googlegroups.com
On Friday, March 21, 2014 7:07:23 PM UTC-5, Felipe Cruz wrote:
Hi Jake!

There are 2 problemas: jl_init() appends "../lib/julia" to the path parameter if you specify it, and for some reason, ubuntu installs julia under /usr/lib/x86_64-linux-gnu.

That reason is multiarch. https://wiki.debian.org/Multiarch

Felipe Cruz

unread,
Mar 24, 2014, 4:00:37 PM3/24/14
to juli...@googlegroups.com
Hi Patrick!

I didn't knew that. For that reason, we need get rid of this extra path append (../lib/julia), on jl_init(), because on ubuntu we'll have the binary and the .so in paths with different prefix.

regards,
Reply all
Reply to author
Forward
0 new messages