Shared library not found



I’m working on writing a julia interface to SuperLU ( is outdated). So I download and install SuperLU, and check that the shared library is properly installed:

~: ls /usr/local/lib/* -l
lrwxrwxrwx 1 root root     15 May  2 10:06 /usr/local/lib/ ->
lrwxrwxrwx 1 root root     19 May  2 10:06 /usr/local/lib/ ->
-rwxr-xr-x 1 root root 724818 May  2 10:06 /usr/local/lib/

However, julia doesn’t find it:

julia> ptr = ccall(("intMalloc",:libsuperlu), Ptr{Cint},(Cint,),4)
ERROR: error compiling anonymous: could not load library "libsuperlu" cannot open shared object file: No such file or directory

julia> Base.Libdl.find_library("libsuperlu",String[])

Any idea what I’m doing wrong?


Found the issue, and it had nothing do with julia. Running ldconfig as suggested here solved the problem.