Error Cannot Find Imap Library Libc-client.a
Use Multiple PHP Versions (PHP-FPM & FastCGI) With ISPConfig 3 (Ubuntu 12.04 LTS) - Page 3 Coders gonna code. Start a free trial of Bitbucket Server and get your shirt. On this page 4 Building PHP 5.4.12 (PHP-FPM) 4 Building PHP 5.4.12 (PHP-FPM) Download and extract 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 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 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 \ -
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a https://www.howtoforge.com/how-to-use-multiple-php-versions-php-fpm-and-fastcgi-with-ispconfig-3-ubuntu-12.04-lts-p3 question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error Installing PHP 5.3.21 on Ubuntu 12.04 up vote http://askubuntu.com/questions/258394/error-installing-php-5-3-21-on-ubuntu-12-04 3 down vote favorite I'm trying to install PHP 5.3.21 on a Rackspace Cloud Server running Ubuntu 12.04 but I keep running into errors during configure. It keeps giving me the following error: configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation. Here is my PHP configuration script: ./configure --enable-fpm --enable-cli --with-fpm-user=phpfpm --with-fpm-group=phpfpm --prefix=/usr/local/php --exec-prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/etc/conf.d --with-libdir=/lib/x86_64-linux-gnu --enable-bcmath --enable-ctype --with-curl --with-curlwrappers --with-pear --enable-dba --with-cdb --enable-exif --enable-ftp --disable-fileinfo --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --with-t1lib --enable-gd-native-ttf --with-gettext --with-gmp --with-imap=/usr/local/c-client-2007f --with-imap-ssl --with-ldap --with-ldap-sasl --enable-mbstring=all --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-pdo-mysql --enable-sqlite-utf8 --with-openssl --with-kerberos --with-pspell --enable-shmop --enable-simplexml --with-snmp --enable-soap --enable-sockets --with-tidy --enable-wddx --enable-xmlreader --with-xmlrpc --with-xsl --enable-zip --with-zlib --enable-sysvsem --enable-sysvshm And here are the packages I installed prior: apt-get -y install php5-dev php-pear php5-imap apt-get -y install libxml2-dev libevent-dev zlib1g-dev libbz2-dev libgmp3-dev libssl-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libgd2-xpm-dev libmcrypt-dev memcached libmemcached-dev libpcre3-dev libc-client-dev libkrb5-dev libsasl2-dev libmysqlclient-dev libpspell-dev libsnmp-dev libtidy-dev libxslt-dev l
your first visit, be sure to check out the FAQ by clicking the link above. You may have to register http://forum.directadmin.com/showthread.php?t=18341 before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Results 1 to http://billing.instantdedicated.com/knowledgebase/147/How-do-I-enable-PHP-Imap-support-on-Directadmin.html 8 of 8 Thread: PHP + IMAP on 64Bit machines Thread Tools Show Printable Version Email this Page… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode error cannot 04-16-2007,01:46 PM #1 FransVanNispen View Profile View Forum Posts Visit Homepage Verified User Join Date Oct 2005 Posts 21 PHP + IMAP on 64Bit machines Given the time I have spend solving this problem and all posts I have seen from people with similar problems, still unsolved, I figured a small post on this here might be appreciated. The two error cannot find 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 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 I read on this forum). Code: 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 Code: ./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 op
Svenska Türkçe Українська Login Remember Me • Forgot Password? View Cart (0) Toggle navigation Home Announcements Knowledgebase Network Status Affiliates Contact Us Account Login ----- Forgot Password? Knowledgebase Portal Home Knowledgebase Linux Directadmin How do I enable PHP Imap support on Directadmin? Categories FAQ 21 FreeBSD 2 Linux 20 Windows 2 Zimbra 1 Categories FAQ (21) FreeBSD (2) Linux (20) Windows (2) Zimbra (1) How do I enable PHP Imap support on Directadmin? We'll show you how to enable PHP-imap support for PHP 5 in Directadmin:1) Make sure you have pam-devel and rpm-build installed: # yum -y install pam-devel rpm-build 2) Get the imap-file to rebuild # cd /root# wget http://dl.atrpms.net/src/el6-i386/atrpms/stable/uw-imap-2007e-8.src.rpm 3) Build the packages # rpmbuild --rebuild uw-imap-2007e-8.src.rpm 4) Enter the directory to install the files # cd/root/rpmbuild/RPMS/x86_64/ # rpm -ivh uw-imap-static-2007e-8.el6.x86_64.rpm uw-imap-devel-2007e-8.el6.x86_64.rpm libc-client-2007e-8.el6.x86_64.rpm 5) Edit the directadmin custombuild config file # nano -w/usr/local/directadmin/custombuild/configure/ap2/configure.php5 add these entries: --with-imap \--with-imap-ssl \ 6) Recompile PHP via Directadmin custombuild # cd /usr/local/directadmin/custombuild# ./build php n 6a) If you get an error message: "configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation."Create a symbolic link to fix it: # ln -s /usr/lib64/libc-client.a /usr/lib/libc-client.a Then recompile PHP again: # ./build php n That's it, PHP is now compiled with IMAP support! You can verify it via: # php -m Was this answer helpful? Yes No Print this Article Also Read How do I compile wget for my server? Sometimes the precompiled wget binaries refuse to work with your ssl linked libraries. The simple... What ports do I need to open in my firewall for Directadmin? If you install a firewall in Directadmin it is recommended on opening the following default... How to change username in Directadmin? You can change the username of your directadmin clients at any time.This can be done via the... Support My Support Tickets Announcements Knowledgebase Downloads Network Status Open Ticket Copyright © 2016 Instant Dedicated BV. All Rights Reserved. × Close Title Loading... Loading... Close Submit