Configure Error Cannot Find Imap Library
Contents |
and Objects Namespaces Errors Exceptions Generators References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Context options and parameters Supported Protocols and Wrappers Security Introduction General cannot find imap library (libc-client.a) centos considerations Installed as CGI binary Installed as an Apache module Session Security configure error cannot find openssl's libraries Filesystem Security Database Security Error Reporting Using Register Globals User Submitted Data Magic Quotes Hiding PHP Keeping configure error cannot find ssl libraries Current Features HTTP authentication with PHP Cookies Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database Connections Safe Mode Command line usage Garbage php configure error cannot find openssl's libraries Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Credit Card Processing Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output
Configure Error Cannot Find Ldap Libraries In Usr Lib
Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation Keyboard Shortcuts? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search(current page) / Focus search box Installation » « Installing/Configuring PHP Manual Function Reference Mail Related Extensions IMAP Installing/Configuring Change language: English Brazilian Portuguese Chinese (Simplified) French German Japanese Korean Romanian Russian Spanish Turkish Other Edit Report a Bug Requirements This extension requires the c-client library to be installed. Grab the latest version from »ftp://ftp.cac.washington.edu/imap/ and compile it. It's important that you do not copy the IMAP source files directly into the system include directory as there may be conflicts. Instead, create a new directory inside the system include directory, such as /usr/local/imap-2000b/ (location and name depend on your setup
Use Multiple PHP Versions (PHP-FPM & FastCGI) With ISPConfig 3 (Ubuntu 12.04 LTS) - Page 3
Configure Error Cannot Find Openssl's Libraries Ubuntu
Apply to multiple top tech companies with 1 application on Indeed configure error cannot find libtidy Prime On this page 4 Building PHP 5.4.12 (PHP-FPM) 4 Building PHP 5.4.12 (PHP-FPM) Download and extract configure error cannot find imap library (libc-client.a) centos PHP 5.4.12: mkdir /opt/php-5.4.12 mkdir /usr/local/src/php5-build cd /usr/local/src/php5-build wget http://de.php.net/get/php-5.4.12.tar.bz2/from/this/mirror -O php-5.4.12.tar.bz2 tar jxf php-5.4.12.tar.bz2 cd php-5.4.12/ Install the prerequisites for building PHP5: apt-get install build-essential apt-get build-dep http://php.net/manual/en/imap.requirements.php php5 apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libc-client2007e libc-client2007e-dev ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a (The last command is needed if you build PHP with --with-imap, because otherwise ./configure will stop with the following error: checking for crypt in -lcrypt... yes configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation. [emailprotected]:/usr/local/src/php5-build/php-5.4.12# ) Configure https://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-ubuntu-12.04-lts-p3 and build PHP 5.4.12 as follows (you can adjust the ./configure command to your needs, take a look at ./configure --help to see all available options; if you use a different ./configure command, it is possible that additional libraries are required, or the build process will fail): ./configure \ --prefix=/opt/php-5.4.12 \ --with-pdo-pgsql \ --with-zlib-dir \ --with-freetype-dir \ --enable-mbstring \ --with-libxml-dir=/usr \ --enable-soap \ --enable-calendar \ --with-curl \ --with-mcrypt \ --with-zlib \ --with-gd \ --with-pgsql \ --disable-rpath \ --enable-inline-optimization \ --with-bz2 \ --with-zlib \ --enable-sockets \ --enable-sysvsem \ --enable-sysvshm \ --enable-pcntl \ --enable-mbregex \ --with-mhash \ --enable-zip \ --with-pcre-regex \ --with-mysql \ --with-pdo-mysql \ --with-mysqli \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --enable-gd-native-ttf \ --with-openssl \ --with-fpm-user=www-data \ --with-fpm-group=www-data \ --with-libdir=/lib/x86_64-linux-gnu \ --enable-ftp \ --with-imap \ --with-imap-ssl \ --with-kerberos \ --with-gettext \ --enable-fpm The last switch (--enable-fpm) makes sure this PHP version will work with PHP-FPM. make make install Copy php.ini and php-fpm.conf to the correct locations: cp /usr/local/src/php5-build/php-5.4.12/php.ini-production /opt/php-5.4.12/lib/php.ini cp /opt/php-5.4.12/etc/php-fpm.conf.default /opt/php-5.4.12/etc/php-fpm.conf Open /opt/php-5.4.12/etc/php-fpm.conf and adjust the
I have seen from people with similar problems, still unsolved, I figured https://forum.directadmin.com/archive/index.php/t-18341.html a small post on this here might be appreciated. The two typical errors: 1. configure: error: Cannot find imap library (libc-client.a). Please check your IMAP installation. 2. Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr ) The problem seems to be caused by cannot find mixture of 32bit and 64bit static code, with which the linker has trouble relocating. So, how can you fix this? Use PIC-code: 1. Make sure kereberos is installed: yum install krb5 krb5-devel 2. Install the libc-client. This must be the one from DA, as it contains small modifications for virtual accounts (as configure error cannot I read on this forum). cd /usr/local/directadmin/customapache wget http://files.directadmin.com/services/da_imap-2004g.tar.gz tar -zxvf da_imap-2004g.tar.gz cd imap-2004g Modify the Makefile for the libc-client to use PIC-code: Find these lines: #EXTRACFLAGS= DA CHANGED EXTRACFLAGS=-I/usr/kerberos/include -L/usr/kerberos/lib And change them to (only added option -fPIC): #EXTRACFLAGS= DA CHANGED EXTRACFLAGS=-I/usr/kerberos/include -L/usr/kerberos/lib -fPIC ./buildit cd c-client mkdir /usr/local/imap-2004g/ mkdir /usr/local/imap-2004g/lib mkdir /usr/local/imap-2004g/include cp *.h /usr/local/imap-2004g/include cp *.c /usr/local/imap-2004g/lib cp c-client.a /usr/local/imap-2004g/lib mv /usr/local/imap-2004g/lib/c-client.a /usr/local/imap-2004g/lib/libc-client.a 3. Modify the configure.php (or configure.php_ap2 for Apache2) file: cd /usr/local/directadmin/customapache vi configure.php Remove option: --with-kerberos Add options: --enable-pic \ --with-libdir=lib64 \ --with-imap=/usr/local/imap-2000e 4. Compile PHP: ./build clean ./build php_ap2 n (for Apache2, for Apache1 use: ./build php n) Now you should end up with a working PHP+IMAP. Just need to restart Apache to load the new version: /sbin/service httpd restart (or restart from DA) cpisuisse10-02-2007, 02:33 AMFrans, with this info i succeeded with PHP 4.4.7, but now upgrading to php 5.2.4 following the instructions on DA