PECL install pdo_sqlsrv - cannot find config.m4 - php

Im trying to install pdo_sqlsrv on Ubuntu 10.04.4 LTS with PHP version PHP 5.4.39-1+deb.sury.org~lucid+2
Im running:
pecl install pdo_sqlsrv
Got this error message:
downloading pdo_sqlsrv-3.0.1.tgz ...
Starting to download pdo_sqlsrv-3.0.1.tgz (123,911 bytes)
.....................done: 123,911 bytes
17 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the
top level source directory of the module
If the command failed with 'phpize: not found' then you
need to install php5-dev packageYou can do it
by running 'apt-get install php5-dev' as a root
userERROR: `phpize' failed
I Have installed php5-dev package. I seems that the downloaded pdo_sqlsrv package does not contain any config.m4 file or is missing
pdo_sqlsrv-3.0.1 package files list:
config.w32
core_conn.cpp
core_init.cpp
core_results.cpp
core_sqlsrv.h
core_stmt.cpp
core_stream.cpp
CREDITS
pdo_dbh.cpp
pdo_init.cpp
pdo_parser.cpp
pdo_sqlsrv.h
pdo_stmt.cpp
pdo_util.cpp
README.TXT
sqlncli.h
template.rc
version.h

Related

Unable to install php solr extension

Using pecl install -n solr gives
No releases available for package "pecl.php.net/solr"
install failed
Also tried pear install pecl/solr which gives the same output :
No releases available for package "pecl.php.net/solr"
install failed
I'm using a Mac and php56.
Output of pecl -V
PEAR Version: 1.9.4
PHP Version: 5.6.25
Zend Engine Version: 2.6.0
Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016;
root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
Another important piece of information is that, pear and pecl were not available in my system, so I installed them using
sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
Update
Tried sudo pecl install -n solr and now it seems to go one step further
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: phpize failed
Luckily stumbled upon
PEAR package install fails
which led to execute
pear list-upgrades which showed some kind of permission issue with cache directory, manually created the directory using sudo at the specified location (/private/tmp/pear/cache)
And then used sudo to install the solr extension as sudo pecl install -n solr which threw the following error :
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
brew install autoconf followed by sudo pecl install solr worked.

Ubuntu installing id3 php

I'm having issues installing php-id3 I'm using the following and getting this response:
sudo pecl install --force id3
WARNING: failed to download pecl.php.net/id3 within preferred state "stable", will instead download version 0.2, stability "alpha"
downloading id3-0.2.tgz ...
Starting to download id3-0.2.tgz (20,693 bytes)
........done: 20,693 bytes
4 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed
Ahhh easy fix I hear you scream you need the php dev packages!! Well I alread have them:
sudo apt-get install php5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-dev is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 246 not to upgrade.
so what am I missing to get this module installed?

Error while installing mongo driver for PHP on amazon linux

I tried to install the mongodb driver for PHP on Amazon Linux.
While running sudo pecl install mongo, I get the error message:
fatal error: openssl/evp.h: No such file or directory
#include <openssl/evp.h>
^
compilation terminated.
make: *** [io_stream.lo] Error 1
ERROR: `make' failed
PEAR Version: 1.9.5
PHP Version: 5.3.29
I installed gcc which helped me progress further with the install till this error.
The best Guide I was able to find was here:
http://jonathanhui.com/install-mongodb-amazon-linux
PHP's guide: http://php.net/manual/en/mongo.installation.php
evp is high-level cryptographic functions.
Try to install development libraries:
Ubuntu:
sudo apt-get install libssl-dev
CentOS:
yum install openssl-devel
The right package to install is not libssl-dev but
sudo apt-get install pkg-config
and now you can execute
sudo pecl install mongodb
Don't forget to add extension=mongodb.so to your php.ini file.
To know which php.ini file is loaded you can create and simple php file on vps
<?php
php_info()
?>
Example directory php.ini in phpinfo()

PHP, SCA_SDO, Ubuntu 14.04 unable to install

How i can install SDO on ubuntu 14.04?
Like described here: http://php.net/manual/en/sdo.installation.php
i try pecl install SCA_SDO:
sudo pecl install SCA_SDO
....
194 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed
m4 installed, php5-dev installed.
I try make phpize in folder with source and then ./configure make, but get error:
SCA_SDO-1.2.4/sdo.cpp:569:5: note: in expansion of macro 'INIT_CLASS_ENTRY'
INIT_CLASS_ENTRY(ce, "SDO_CPPException", sdo_cppexception_methods);
^
make: *** [sdo.lo] Error 1

PHP extension install - phpize error - on NGINX/PHP-FPM

I want to install imagick extension for PHP. But i get error 'phpize' error when installing
> pecl install imagick-3.1.2
downloading imagick-3.1.2.tgz ...
Starting to download imagick-3.1.2.tgz (94,657 bytes)
.....................done: 94,657 bytes
15 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed
I know php-devel package contains phpize for compiling/creating modules/extensions. I don't want to install apache. I am running a LEMP on CentOS 6.4
How do i proceed? or install phpize without apache and reinstalling/configuring php
as root, execute the following command
yum install php-devel
Then try installing the imageMagick extension again
Install the php-devel package, it's included in there

Categories