curlwrappers' failed with exit code '256' !!
Hello,
I have a script working with PHP 5.2.17 only. I installed PHP 5.2.17 last year with a method and now it is available in exhausting options when I check.
I want to enable Suphp but when I try to rebuild my apache by choosing PHP 5.6 at first step (Because I want to select GD and TTF that are enable in my current 5.2.17 version) and choosing Suphp and choosing PHP 5.2.17 at exhausting options (It disables other PHP versions). after I submit that for building when the process reaches to build PHP 5.2.17 after a few minutes I get this error:
"checking for alloca... (cached) yes
checking for 8-bit clean memcmp... yes
checking for mcrypt support... yes
configure: error: mcrypt.h not found. Please reinstall libmcrypt.
!! './configure --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-gd-native-ttf --enable-libxml --enable-magic-quotes --enable-mbstring --enable-pdo=shared --enable-soap --enable-sockets --enable-wddx --enable-zip --prefix=/usr/local --with-apxs2=/usr/local/apache/bin/apxs --with-curl --with-freetype-dir=/usr/lib --with-gd --with-gettext --with-imap=/opt/php_with_imap_client/ --with-jpeg-dir=/usr/lib64/ --with-kerberos --with-libdir=lib64 --with-libxml-dir=/opt/xml2/ --with-mcrypt=/opt/libmcrypt/ --with-mcrypt --with-mhash=/opt/mhash/ --with-mime-magic --with-mysql=/usr --with-mysql-sock=/var/lib/mysql/mysql.sock --with-mysqli=/usr/bin/mysql_config --with-openssl=/usr --with-pcre-regex=/opt/pcre --with-pdo-mysql=shared --with-pdo-sqlite=shared --with-pic --with-png-dir=/usr/lib64/ --with-pspell --with-sqlite=shared --with-ttf --with-xmlrpc --with-xpm-dir=/usr/lib64/ --with-xsl=/opt/xslt/ --with-zlib --with-zlib-dir=/usr/lib64/ --with-zlib-dir=/usr/lib -with-curlwrappers' failed with exit code '256' !!
!! Restoring original working apache !!"
Does anyone know what should I do?
I need Suphp to use NxTree PHP Selector to install different versions of PHP
Please help me to pass this issue.
-
Hello :) Ideally, you should modify the script so that it supports newer versions of PHP. The manual workarounds required to support this legacy version of PHP will only get more intensive as time goes on. That said, the error message suggests missing libmcrypt packages on your system. You can try installing them through YUM and running EasyApache again. EX: yum install libmcrypt libmcrypt-devel
Note that you will need to add the EPEL repo to your YUM repo configuration if it does not already exist. Thank you.0 -
Hello, My Centos is 6.7 I tried to install with provided comment and got this error: Loaded plugins: fastestmirror, priorities, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.nl.leaseweb.net * extras: mirror.1000mbps.com * updates: mirror.nl.webzilla.com base | 3.7 kB 00:00 extras | 3.4 kB 00:00 updates | 3.4 kB 00:00 updates/primary_db | 4.7 MB 00:00 No package libmcrypt available. No package libmcrypt-devel available. Error: Nothing to do Now what to do? I used a command and gpt this message: yum list installed | grep mcrypt cpanel-libmcrypt.x86_64 2.5.8-2.cp1136 installed --------- I found a place to download rpm: Index of /libmcrypt Should I download this: libmcrypt-devel-2.5.7-1.2.el6.rf.x86_64.rpm and next run your provided command ? 0 -
Update: I used the method here: RHEL6 and CentOS 6: missing libmcrypt and libmhash in default repository and also used an update limcrypt package (libmcrypt-2.5.8-9.el6.x86_64.rpm CentOS 6 Download) and got same error: root@myserver58 [~]# rpm -ivh warning: /var/tmp/rpm-tmp.IIKtM6: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ########################################### [100%] 1:libmcrypt ########################################### [100%] root@myserver58 [~]# yum install libmcrypt-devel Loaded plugins: fastestmirror, priorities, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.nl.leaseweb.net * extras: mirror.1000mbps.com * updates: mirror.denit.net No package libmcrypt-devel available. Error: Nothing to do root@myserver58 [~]# yum install libmcrypt libmcrypt-devel Loaded plugins: fastestmirror, priorities, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.nl.leaseweb.net * extras: mirror.1000mbps.com * updates: mirror.denit.net No package libmcrypt-devel available. Nothing to do root@myserver58 [~]# yum list installed | grep mcrypt cpanel-libmcrypt.x86_64 2.5.8-2.cp1136 installed libmcrypt.x86_64 2.5.8-9.el6 installed root@myserver58 [~]# ldconfig -p | grep libmcrypt.so.4 libmcrypt.so.4 (libc6,x86-64) => /usr/lib64/libmcrypt.so.4 root@myserver58 [~]# find / -name libmcrypt.so.4 /usr/local/cpanel/3rdparty/lib64/libmcrypt.so.4 /usr/lib64/libmcrypt.so.4 ls -la /usr/lib64/libmcrypt.so.4 /home/virtfs/tanta/usr/local/cpanel/3rdparty/lib64/libmcrypt.so.4 /home/virtfs/tanta/usr/lib64/libmcrypt.so.4 /home/virtfs/tanta/opt/libmcrypt/lib/libmcrypt.so.4 /opt/libmcrypt/lib/libmcrypt.so.4 root@myserver58 [~]# ls -la /usr/lib64/libmcrypt.so.4 lrwxrwxrwx 1 root root 18 Apr 23 05:35 /usr/lib64/libmcrypt.so.4 -> libmcrypt.so.4.4.8* root@myserver58 [~]# yum install libmcrypt-devel Loaded plugins: fastestmirror, priorities, security Setting up Install Process Loading mirror speeds from cached hostfile * base: mirror.nl.leaseweb.net * extras: mirror.1000mbps.com * updates: mirror.denit.net No package libmcrypt-devel available. Error: Nothing to do root@myserver58 [~]# 0 -
Update: I installed it after visiting these 2 links that where pre need to install libmcrypt (Because I am newbie and can not get a quick guid and should get full advice, I searched about EPEL that you mentioned) : CentOS 6.2: mcrypt and libmcrypt not found in yum repolist Install EPEL and additional repositories on CentOS and Red Hat Going to rebuild apache but am worrying about this error which I got before : curlwrappers' failed with exit code '256' !! Why I got this error? 0 -
Update: I have not that error anymore. Now I get this error and really don't know how to fix that: !! 'make -j2' failed with exit code '512' !! 0 -
Update: I just solved these issues and successfully PCRE also. But now I give this error and didn't find any solution for that: Build complete. Don't forget to run 'make test'. -- End step 'make php for apache and cli' -- -- Begin step 'make install php for apache and cli' -- Installing PHP SAPI module: apache2handler /usr/local/apache/build/instdso.sh SH_LIBTOOL='/usr/local/apache/build/libtool' libphp5.la /usr/local/apache/modules /usr/local/apache/build/libtool --mode=install cp libphp5.la /usr/local/apache/modules/ libtool: install: error: cannot install `libphp5.la' to a directory not ending in /home/cpeasyapache/src/php-5.2.17/libs apxs:Error: Command failed with rc=65536 . make: *** [install-sapi] Error 1 !! 'make install' failed with exit code '512' !! !! Restoring original working apache !! Now please help me. 0 -
Please keep in mind that PHP 5.2 is unsupported so these types of issues are to be expected. Feel free to open a support ticket using the link in my signature so we can take a quick look to determine if there are any obvious issues, but note that ideally you should consider upgrading any scripts that rely on PHP 5.2, as that's likely the path where you will encounter less difficulties. You can post the ticket number here so we can update this thread with the outcome. Thank you. 0
Please sign in to leave a comment.
Comments
7 comments