Trying to ./configure php, getting ldap library error
I'm trying to ./configure PHP 5.6.11 on Debian 8.1. It gets to this line and stops:
Code:
checking for LDAP Cyrus SASL support... no Code:
dpkg -l *ldap* Code:
./configure |
Reinstall libopenldap-dev and/or libldap-dev, probably
|
I tried this:
Code:
xyz@comp:/usr# apt-get install libopenldap-dev Code:
xyz@comp:/usr# apt-get install libldap-dev Code:
xyz@comp:/usr# apt-get install libldap2-dev |
do you want to compile php from source?
why? why not just install it from the repos? Code:
$ sudo -i |
Because we need several compile options that I don't think come with the repository version - ldap, pdo, gd, zip.
Are those in the repository version? |
aren't those modules, that have to be installed seperately?
they are rather common requirements for e.g. various cms's, and i always solved it by installing the according php5-* module and restarting apache2. i still don't see any reason to compile php from scratch. what sort of server os are you running, and what are you trying to achieve with your server? fwiw, on a simple debian stable home server (lists installed php packages): Code:
$ dpkg-query -l 'php5*' Code:
<?php phpinfo(); |
When you configure it checks that the correct version of the library is there. And in your case, its not.
Since you are compiling your own version of PHP, its pretty safe to say that your distro probably did not compile the correct version of the library and that your PHP version most likely need a newer version. What system are you running? 64bit or 32bit? And is the software 64bit? If you are on 64bit and running 32bit software, you need to install the 32bit libs. You should probably just compile and build the library yourself and not using the package manager. Perhaps you need to symlink the correct lib file to the name of the file which your configure script is looking for. Other than that, I am not sure. I have not used debian that much, but I can also remember having had some similar issues before, but a long time ago now. Not sure about PHP package exactly, but if its the opposite way and you need the older ldap lib, then it could be you can just symlink the "name" of the lib to the newer version. |
Quote:
on my debian stable it's: Code:
$ php --version but, i'm still sticking to my conservative views: - there's a reason why debian stable is at 5.6.9 atm, and you will have a hard time getting a higher version. there's some backporting for jessie, but you might be easier off just changing to debian testing (but losing stability). - again, why do you think you need this higher version? maybe there's an easier approach. |
Quote:
ldap pdo gd zip and as far as I know, they can only be added at compile. Is it possible to add them after compiling? Do they come with the apt-get version? |
Quote:
as i wrote before, this looks very much like system requirements for some CMS. i am not good with those things, but i recently tried literally dozens of them, and not once have i come across one that would not run on debian stable with aforementioned php version. i did have to install some extra modules (as i also mentioned before). Have you tried that instead? |
They are for our intranet site that I created. It uses LDAP for authentication, gd for images, PDO for communication with MySQL, and zip for PHPExcel. So I know what the site needs.
|
I tried the apt-get version of PHP5 (5.6.9). Turns out it does include those features, so it should be good, even though it's a few revisions behind.
|
All times are GMT -5. The time now is 11:21 PM. |