fommil / matrix-toolkits-java

:rocket: High Performance Linear Algebra OOP
GNU Lesser General Public License v3.0
362 stars 104 forks source link

Failed to load native library #55

Closed geezerrrr closed 9 years ago

geezerrrr commented 9 years ago

Hi,

I tried using MTJ to compute a large matrix, but the netlib-java can't load LAPACK native library.

Sep 05, 2014 1:43:11 PM com.github.fommil.netlib.LAPACK WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeSystemLAPACK Sep 05, 2014 1:43:11 PM com.github.fommil.netlib.LAPACK WARNING: Failed to load implementation from: com.github.fommil.netlib.NativeRefLAPACK

The following is my environment: ldconfig -p|egrep "blas|lapack|arpack" libptf77blas.so.3 (libc6,x86-64) => /usr/lib64/atlas/libptf77blas.so.3 libptcblas.so.3 (libc6,x86-64) => /usr/lib64/atlas/libptcblas.so.3 liblapack.so.3 (libc6,x86-64) => /usr/lib64/atlas/liblapack.so.3 liblapack.so.3 (libc6,x86-64) => /usr/lib/liblapack.so.3 liblapack.so.3 (libc6,x86-64) => /usr/lib64/liblapack.so.3 liblapack.so (libc6,x86-64) => /usr/lib64/liblapack.so libf77blas.so.3 (libc6,x86-64) => /usr/lib64/atlas/libf77blas.so.3 libclapack.so.3 (libc6,x86-64) => /usr/lib64/atlas/libclapack.so.3 libcblas.so.3 (libc6,x86-64) => /usr/lib64/atlas/libcblas.so.3 libblas.so.3 (libc6,x86-64) => /usr/lib/libblas.so.3 libblas.so.3 (libc6,x86-64) => /usr/lib64/libblas.so.3 libblas.so (libc6,x86-64) => /usr/lib64/libblas.so libarpack.so.2 (libc6,x86-64) => /usr/lib/libarpack.so.2 libarpack.so.2 (libc6,x86-64) => /usr/lib64/libarpack.so.2 libRlapack.so (libc6,x86-64) => /usr/lib64/R/lib/libRlapack.so libRblas.so (libc6,x86-64) => /usr/lib64/R/lib/libRblas.so

echo $LD_LIBRARY_PATH /usr/lib64

How to resolve this issue, thanks!

fommil commented 9 years ago

Read the netlib java docs