reeze/php-leveldb

configure failed

jasonhe88 opened this issue · 4 comments

CentOS: 7
PHP: 7.0.12
leveldb: 1.19

run following command:

$ ./configure --with-leveldb=/path/to/leveldb

get following error:

checking for leveldb support... yes, shared
checking for leveldb location... leveldb headers found in /home/jasonhe/pkgs/leveldb-1.19
find --/home/jasonhe/pkgs/leveldb-1.19/lib/x86_64-linux-gnu
find --/home/jasonhe/pkgs/leveldb-1.19/lib/x86_64-linux-gnu
find --/usr/local/lib/x86_64-linux-gnu
find --/usr/local/lib/x86_64-linux-gnu
find --/usr/lib/x86_64-linux-gnu
find --/usr/lib/x86_64-linux-gnu
leveldb not found
configure: error: Please reinstall the leveldb distribution
$
$

reeze commented

Did you compile leveldb before configure?

thank you for your reply :-)

yes, I compiled leveldb by running make command, then tried to install php-leveldb.

I found what's the problem.

leveldb 1.19 changed the location of compiled library.

leveldb.so libraries are not in the leveldb home directory any more. instead, there are two new directories named out-static and out-shared which hold those library.

jason

52fhy commented

I found what's the problem.

leveldb 1.19 changed the location of compiled library.

leveldb.so libraries are not in the leveldb home directory any more. instead, there are two new directories named out-static and out-shared which hold those library.

jason

cp -r /opt/leveldb-1.20/include/leveldb /usr/include/
./configure --with-leveldb=/opt/leveldb-1.20/out-shared/