Linux Mint + Xampp Error + ' grep:/opt/lampp/include/php/main/php.h:no Such File Or Directory 'February 8, by khayrattee Wasseem7 COMMENTS
Wanted to install the extension on XAMPP. You execute phpize by running something like:/opt/lampp/bin/phpize. and boooom! You start getting some XAMPP error messages as shown below:
grep:/opt/lampp/include/php/main/php.h:no such file or directory
grep:/opt/lampp/include/php/zend/zend_modules.h:no such file or directory
grep:/opt/lampp/include/php/zend/zend_extensions.h:no such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP _autoconf environment variable. Then, rerun the this script.
Solution to this Grep Error
You is getting this phpize grep error simply because you has installed the default commonLAMP package For XAMPP, which is the normal final user version. This version is not a equipped, with the source files and libraries, to build, compile and install extensions.
So, what would you do?
ANSWER = Install the Xampp Develpackage, aka the Xampp developmentpackage.
Where to Get the XAMPP development package
You can download the XAMPP Development package (Xampp Devel) on the same download page as the normal one, here! Just "DevelopmentPackage" and click to download! Bingo you have it!
How to Install the XAMPP devel/xampp development package?
simple!
I assume you are already downloaded your package, mine at the time of this writing, is named as xampp-linux-de Vel-1.7.4.tar.gz.
To install, simply execute the following shell Command:sudo tar xvfz xampp-linux-devel-1.7.4.tar.gz-c/opt
–note:this extraction would extract and place those needed development libraries and source file inside your existing Lam pp folder in /opt/lampp/
voila!
(Happy Mint-xampp-ing)
Xampp Install red Extension error resolved