Php Configure Error Mcrypt.h Not Found
Contents |
Sign in Pricing Blog Support Search GitHub This repository Watch 33 Star 649 Fork 116 php-build/php-build Code centos configure error mcrypt.h not found. please reinstall libmcrypt Issues 19 Pull requests 2 Projects 0 Wiki Pulse Graphs New no package libmcrypt-devel available. issue Problem installing php-build (mcrypt.h not found) #291 Closed chrispadfield opened this Issue Jul 1, 2015 configure: error: xslt-config not found. please reinstall the libxslt >= 1.1.0 distribution · 5 comments Projects None yet Labels None yet Milestone No milestone Assignees No one assigned 3 participants chrispadfield commented Jul 1, 2015
Checking For Mcrypt Support... Yes Configure: Error: Mcrypt.h Not Found. Please Reinstall Libmcrypt
I'm installing php-build on a clean ubuntu Ubuntu 14.04 x64 VM and following instructions here https://php-build.github.io/ Running php-build -i development 5.5.9 ~/local/php/5.5.9 I get: /----------------------------------------- configure: WARNING: bison versions supported for regeneration of the Zend/PHP parsers: 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.3 2.6.4 2.6.5 2.7 (found: 3.0). configure: error: configure: error: cannot find pspell mcrypt.h not found. Please reinstall libmcrypt. /----------------------------------------- Running sudo apt-get install php5-mcrypt sudo php5enmod mcrypt Has not helped. Any suggestions? chrispadfield commented Jul 2, 2015 I fixed this (and another similar error) running apt-get install libmcrypt-dev libreadline-dev GrahamCampbell closed this Jul 2, 2015 php-build member GrahamCampbell commented Jul 2, 2015 Great you've got this fixed. Could you send a PR to our docs please? chrispadfield commented Jul 2, 2015 Done; hope ok. First PR for someone else's project :) php-build member GrahamCampbell commented Jul 2, 2015 Great. :) php-build member rogeriopradoj commented Jul 5, 2015 Hi, @chrispadfield , awesome! There is https://github.com/rogeriopradoj/phpenv-common-deps-install where it suggest some common dependencies. There is a list of some tools in the projects's wiki that can be useful: https://github.com/php-build/php-build/wiki/phpenv%20tools And again, congrats on your PR! Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment Contact GitHub API Training Shop Blog About © 20
Bulk Email PowerMTA Support Home › HowTos › Linux › Troubleshootings How to install mcrypt php extension on CentOS 6 by Syed Alam in HowTos, Linux, Troubleshootings Today a developer friend requested to trouble php mcrypt extension configure: error: cannot find libpq-fe.h. please specify correct postgresql installation path on his newly ordered VPS. Most of the time VPS by default comes
Libmcrypt Centos 7
up with very basic packages. For example, to build and add mcrypt php extension to existing php installation. You
Please Reinstall Libmcrypt Ubuntu
would required gcc, make, libtool, libmcrypt, libmcrypt-devel and may other packages. mcrypt php extension necessary configuration & compilation : View current php version php -v Output : PHP 5.3.3 (cli) (built: Jul https://github.com/php-build/php-build/issues/291 3 2012 16:53:21) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies with the ionCube PHP Loader v4.0.14, Copyright (c) 2002-2011, by ionCube Ltd. Downloading the same php version source code from php.net cd /tmp/
wget http://museum.php.net/php5/php-5.3.3.tar.gz
tar -zxf php-5.3.3.tar.gz
cd php-5.3.3/ext/mcrypt Prepare php extension to compile it. phpize Output : Configuring for: PHP Api Version: 20041225 Zend http://www.hackersgarage.com/how-to-install-mcrypt-php-extension-on-centos-6.html Module Api No: 20060613 Zend Extension Api No: 220060519 aclocal
./configure
make
make install You can can see mcrypt php extension is installed under php extensions directory: ls /usr/lib64/php/modules/mcrypt.so Enable mcrypt PHP extension in php.ini echo "extension=mcrypt.so" >> /etc/php.d/mcrypt.ini Verify mcrypt : php -i | grep -i "mcrypt support" Output: mcrypt support => enabled Known challenging and resolution : phpize: command not found yum install php-devel configure.in:8: warning: LT_AC_PROG_SED is m4_require'd but not m4_defun'd acinclude.m4:2636: PHP_CONFIG_NICE is expanded from… configure.in:8: the top level yum install libtool ………checking if debug is enabled… no checking if zts is enabled… no checking for re2c… no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk… gawk checking for mcrypt support… yes, shared configure: error: mcrypt.h not found. Please reinstall libmcrypt. yum install libmcrypt wget ftp://rpmfind.net/linux/epel/6/x86_64/libmcrypt-devel-2.5.8-9.el6.x86_64.rpm rpm -ivh libmcrypt-devel-2.5.8-9.el6.x86_64.rpm Tagged as: CPanel/WHM, php Tweet Related Posts: iconv php extension installation without recompiling PHP How to install Memcache on CPanel / WHM running CEntOS PHP Backdoor Hookworm Stealth tailwatchd is not running - A restart was attempted automagically Install Mod_Proxy Apac
better with PHP 5.2. Even though D6 core is compatible with PHP 5.3 for quite some time now, a lot of contributes modules still get nasty hiccup when asked to run on http://zgadzaj.com/how-to-install-php-53-and-52-together-on-ubuntu-1204 the newer version. Therefore developing for both D7 and D6 at the same time becomes much less painful when running both versions of PHP in parallel. One way of doing it is using mod_php5 Apache module to serve PHP 5.3 applications, while running PHP 5.2 applications using fastcgi module. Under Ubuntu 12.04 this can be achieved by installing PHP 5.3 from the repositories and manually not found compiling and installing PHP 5.2 afterwards. Installing PHP 5.3 from repositories is fairly easy process, which you most probably already have under your belt, so let's just say that it looks more or less like this: sudo apt-get install php5 php5-common php5-cli php5-dev php5-mysql phpmyadmin php5-pgsql phppgadmin php5-gd php5-mcrypt php5-curl php-pear libapache2-mod-php5 php5-xdebug php5-codesniffer What is much more interesting though, and what this post will mcrypt.h not found focus on, is how to add PHP 5.2 to the whole picture and make both those versions work nicely together. Please note that this tutorial is for Apache's name-based virtual hosts, and essentially leaves PHP 5.3 enabled globally while allowing to use PHP 5.2 on specific, selected virtual hosts only. Download PHP sources Let's then start with downloading PHP 5.2 sources from Unsupported Historical Releases list. I have originally started with version 5.2.10 (as it is the same version that we have on our production servers), but then was stopped short by OpenSSL error during configuration stage: /usr/include/openssl/conf.h:132:7: note: expected 'struct lhash_st_CONF_VALUE *' but argument is of type 'int *'
make: *** [ext/openssl/openssl.lo] Error 1 to which I was not able to find any good fix (relatively easy to apply anyway), so finally ended up with the most recent version from 5.2 branch - 5.2.17, where those errors haven't occured anymore. Let's then download and uncompress PHP sources into ~/Downloads/php-5.2.17 directory: mkdir -p ~/Downloads/php-5.2.17
cd ~/Downloads/php-5.2.17
wget http://museum.php.net/php5/php-5.2.17.tar.gz
tar zxf php-5.2.17.tar.gz Configure Time to configure the package. Example ./configure call could look as follows: sudo ./configure \
--prefix=/usr/share/php52 \
--datadir=/