PHP, SCA_SDO, Ubuntu 14.04 unable to install - php

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

Related

Unable to install libmcrypt-2.5.8.tar.gz and mycrypt-1.0.4.gz on RHEL 8

I am trying to install mycrypt-1.0.4 on RHEL 8 and it says mycrypt.h error Reinstall libmcrypt.
So, I am trying to install libmcrypt and I copied libmcrypt-2.5.8.tar.gz into tmp folder. Now when I ran this command
sudo dnf install /tmp/libmcrypt-2.5.8.tar.gz
it throws error. What I am doing wrong here? Please correct me.
Error: Unable to find a match: /tmp/libmcrypt-2.5.8
mcrypt-1.0.4 is a "php" module, to be installed with pecl.
Ref. https://pecl.php.net/package/mcrypt
0 # dnf install epel-release
1 # dnf install php-devel libmcrypt-devel php-pear
2. # pecl install mcrypt
... which will build "mcrypt-1.0.4" against php-devel and libmcrypt-devel-2.5.8
to : /usr/lib64/php/modules/mcrypt.so

Error 1 ERROR: `make' failed when installing sqlsrv

I'm trying to install sqlsrv by using the commands from this page. However, when running
pecl install sqlsrv-4.2.0preview
I get the error: Error 1 ERROR: 'make' failed.
I tried :
apt-get update
apt-get install build-essential
apt-get install libpcre3-dev
apt-get install make
All of these are installed on the latest version.
I'm running a container using the php:7.0-apache image. Running apachectl -V returns Apache/2.4.10 (Debian).
Here is the full log output from the command I ran: https://pastebin.com/MYDY3xwU
I had this exact error.
/tmp/pear/temp/sqlsrv/shared/xplat.h:30:17: fatal error: sql.h: No such file or directory
#include <sql.h>
Apparently the header file its looking for is only in the package unixODBC-devel.
I installed that package and was able to successfully complete the build. yum install unixODBC-devel.
Possibly, a better explanation is here.
stackoverflow Question # 15447386
I had the following error on Ubuntu 18.04 when installing
/tmp/pear/temp/sqlsrv/shared/xplat.h:30:10: fatal error: sql.h: No such file or directory #include <sql.h>
Installing the package unixodbc-dev as Matthew Goheen proposed solved the issue
sudo apt-get install unixodbc-dev
try
sudo apt-get install unixodbc-dev

PECL install pdo_sqlsrv - cannot find config.m4

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

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 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