arpack-ng icon indicating copy to clipboard operation
arpack-ng copied to clipboard

Octave and warning “ARPACK library found, but does not seem to work properly; disabling eigs function”

Open humbert0u0 opened this issue 5 years ago • 2 comments

Situation

I am building GNU Octave 5.1.0. And I have made and installed ARPACK-NG.

I built ARPACK by this way $ sh bootstrap $ ./configure $ make $ make check $ make install

I configure the build of Octave with $ mkdir .build $ cd .build $ ./../configure

Issue

The compilation is successful but the undesired warning shows up configure: WARNING: ARPACK library found, but does not seem to work properly; disabling eigs function

Question

It seems that I need to add a path for it? I am not sure what should I do, can you give me some advice? Thanks a lot.

Error message

configure:71123: $PKG_CONFIG --exists --print-errors "arpack" Package arpack was not found in the pkg-config search path. Perhaps you should add the directory containing `arpack.pc' Package 'arpack', required by 'virtual:world', not found configure:71155: checking for dseupd in -larpack configure:71165: gfortran -o conftest -g -O2 -std=legacy conftest.f -larpack -lopenblas -L/usr/lib/gcc/aarch64-linux-gnu/7.3.0 -L/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../.. -lgfortran -lm -lutil -lm >&5 configure:71179: checking whether the arpack library works configure:71385: g++ -o conftest -g -O2 -pthread -fopenmp conftest.cpp -larpack -lopenblas -L/usr/lib/gcc/aarch64-linux-gnu/7.3.0 -L/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/aarch64-linux-gnu/7.3.0/../../.. -lgfortran -lm -lutil -lm >&5 ./conftest: error while loading shared libraries: libarpack.so.2: cannot open shared object file: No such file or directory configure:71598: WARNING: ARPACK library found, but does not seem to work properly; disabling eigs function ARPACK CPPFLAGS:
ARPACK LDFLAGS:
ARPACK libraries: -larpack configure:76835: WARNING: ARPACK library found, but does not seem to work properly; disabling eigs function octave_cv_lib_arpack=yes octave_cv_lib_arpack_ok_1=no ARPACK_CPPFLAGS='' ARPACK_LDFLAGS='' ARPACK_LIBS='-larpack'

humbert0u0 avatar Sep 01 '20 13:09 humbert0u0

I created a .conf file for it, and the problem has been fixed.

humbert0u0 avatar Sep 02 '20 04:09 humbert0u0

Try to set PKG_CONFIG_PATH to the directory where arpack.pc is.

fghoussen avatar Sep 02 '20 05:09 fghoussen