php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65353 Not Finding LevelDB Even Though Installed
Submitted: 2013-07-29 18:05 UTC Modified: 2013-09-06 11:54 UTC
From: ron at roncemer dot com Assigned: reeze (profile)
Status: Closed Package: leveldb (PECL)
PHP Version: Irrelevant OS: Ubuntu 12.04 x64
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ron at roncemer dot com
New email:
PHP Version: OS:

 

 [2013-07-29 18:05 UTC] ron at roncemer dot com
Description:
------------
Your config.m4 is incorrect.  The following line:
    SEARCH_LIB="libleveldb.a"
should read:
    SEARCH_LIB="lib/libleveldb.a"

People don't put libraries into /usr or /usr/local, rather they put them into 
/usr/lib or /usr/local/lib.

SEARCH_FOR is correct; it's looking for /usr/include or /usr/local/include.  
SEARCH_LIB should be consistent and look for /usr/lib or /usr/local/lib.  By 
making the above change, it will be correct.

Please fix, and issue a new release so people can easily install your package.  
This will only help you.

Test script:
---------------
sudo pecl install channel://pecl.php.net/leveldb-0.1.3

Fails even though you have downloaded and built leveldb, and linked include/leveldb to /usr/include/leveldb and linked the static and shared libraries into /usr/lib.



Expected result:
----------------
Should build and install successfully.

Actual result:
--------------
Does not build, due to not finding leveldb libraries, even though they are 
installed in the correct location.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-07-31 03:14 UTC] reeze@php.net
-Assigned To: +Assigned To: reeze
 [2013-08-24 03:21 UTC] reeze@php.net
I almost forget, it has been fixed in master branch a long time ago.

I will issue a new release soon. thank you  for you feedback.
 [2013-09-06 11:54 UTC] reeze@php.net
-Status: Assigned +Status: Closed
 [2013-09-06 11:54 UTC] reeze@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.

Fixed in master
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC