Octave and warning “ARPACK library found, but does not seem to work properly; disabling eigs function”
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'
I created a .conf file for it, and the problem has been fixed.
Try to set PKG_CONFIG_PATH to the directory where arpack.pc is.