reeze / php-leveldb

The PHP Binding for LevelDB
Other
240 stars 44 forks source link

Configure: error: Please reinstall the leveldb distribution #16

Closed rjonesx closed 9 years ago

rjonesx commented 9 years ago

I executed the following commands

cd /usr/local git clone https://github.com/google/leveldb.git cd leveldb make pecl install leveldb channel://pecl.php.net/leveldb-0.1.4

And I get the following error: checking for leveldb location... search leveldb in yes search leveldb in /usr/local search leveldb in /usr leveldb not found configure: error: Please reinstall the leveldb distribution ERROR: `/var/tmp/leveldb/configure' failed

I am using CentOS and I havent successfully been able to get leveldb to install because of this.

2072 commented 9 years ago

I am having the same problem on Debian 8 (Jessie) just because leveldblib is located in /usr/lib/x86_64-linux-gnu/ instead of /usr/lib/

reeze commented 9 years ago

Now you guys should be able to install it now.

pecl install leveldb channel://pecl.php.net/leveldb-0.1.5

52fhy commented 5 years ago
cd /opt/leveldb-1.20/
make 

cp -r /opt/leveldb-1.20/include/leveldb /usr/include/

./configure --with-leveldb=/opt/leveldb-1.20/out-shared/