trouble with pecl installations

Dytech

Verified User
Joined
Jul 10, 2008
Messages
8
Hey Everyone,

I got some trouble getting my pecl installations to work.

I'm trying to install pdo_mysql

Here's my pecl config :

Code:
Configuration (channel pecl.php.net):
=====================================
Auto-discover new Channels     auto_discover    <not set>
Default Channel                default_channel  pecl.php.net
HTTP Proxy Server Address      http_proxy       <not set>
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pecl.php.net
Remote Configuration File      remote_config    <not set>
PEAR executables directory     bin_dir          /usr/local/bin
PEAR documentation directory   doc_dir          /usr/local/lib/php/doc
PHP extension directory        ext_dir          ./
PEAR directory                 php_dir          /usr/local/lib/php
PEAR Installer cache directory cache_dir        /root/tmp/pear/cache
PEAR configuration file        cfg_dir          /usr/local/lib/php/cfg
directory
PEAR data directory            data_dir         /usr/local/lib/php/data
PEAR Installer download        download_dir     /root/tmp/pear/cache
directory
PHP CLI/CGI binary             php_bin          /usr/local/bin/php
php.ini location               php_ini          <not set>
PEAR Installer temp directory  temp_dir         /var/tmp/pear/temp
PEAR test directory            test_dir         /usr/local/lib/php/test
PEAR www files directory       www_dir          /usr/local/lib/php/www
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            22
Debug Log Level                verbose          1
PEAR password (for             password         <not set>
maintainers)
Signature Handling Program     sig_bin          /usr/bin/gpg
Signature Key Directory        sig_keydir       /usr/local/etc/pearkeys
Signature Key Id               sig_keyid        <not set>
Package Signature Type         sig_type         gpg
PEAR username (for             username         <not set>
maintainers)
User Configuration File        Filename         /root/.pearrc
System Configuration File      Filename         /usr/local/etc/pear.conf

and when i want to run the command pecl install pdo_mysql i get :

Code:
downloading PDO_MYSQL-1.0.2.tgz ...
Starting to download PDO_MYSQL-1.0.2.tgz (14,778 bytes)
.....done: 14,778 bytes
downloading PDO-1.0.3.tgz ...
Starting to download PDO-1.0.3.tgz (52,613 bytes)
...done: 52,613 bytes
12 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

ERROR: `phpize' failed
7 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF
environment variable is set correctly and then rerun this script.

ERROR: `phpize' failed
i also tried apt-get install autoconf but the same error remains

Any ideas?

Thanks
 
I've solved that problem by doing :

cd /usr/local/directadmin/custombuild
./build autoconf

on to the next problem :)

now pecl starts configuring but that gives an error :

Code:
checking for MySQL support for PDO... yes, shared
checking for mysql_config... not found
configure: error: Cannot find MySQL header files under
ERROR: `/root/tmp/pear/temp/PDO_MYSQL/configure' failed

Anyone?
 
Find mysql_config:
Code:
locate mysql_config

and then make a symlink to /usr/local/bin/mysql_config
 
I'm having the same problem as this, running Debian 4.0 Etch, DirectAdmin CustomBuild 2.2
 
I also had to create the symlink. But now I get the following error

Code:
checking for mysql_config... /usr/local/bin/mysql_config
checking for mysql_query in -lmysqlclient... no
configure: error: mysql_query missing!?
ERROR: `/tmp/pear/temp/PDO_MYSQL/configure' failed

Does anyone know what to do?
 
I found a solution: I installed libmysqlclient15-dev through apt-get

However I'm experiencing another problem right now. I'm getting the following message:

Code:
running: make
/bin/sh /var/tmp/pear-build-root/PDO_MYSQL-1.0.2/libtool --mode=compile gcc -I/usr/local/include/php/ext -I/usr/local/include -mcpu=pentiumpro -I. -I/tmp/pear/temp/PDO_MYSQL -DPHP_ATOM_INC -I/var/tmp/pear-build-root/PDO_MYSQL-1.0.2/include -I/var/tmp/pear-build-root/PDO_MYSQL-1.0.2/main -I/tmp/pear/temp/PDO_MYSQL -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c -o pdo_mysql.lo
mkdir .libs
 gcc -I/usr/local/include/php/ext -I/usr/local/include -mcpu=pentiumpro -I. -I/tmp/pear/temp/PDO_MYSQL -DPHP_ATOM_INC -I/var/tmp/pear-build-root/PDO_MYSQL-1.0.2/include -I/var/tmp/pear-build-root/PDO_MYSQL-1.0.2/main -I/tmp/pear/temp/PDO_MYSQL -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c  -fPIC -DPIC -o .libs/pdo_mysql.o
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
In file included from /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c:31:
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:25:19: error: mysql.h: No such file or directory
In file included from /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c:31:
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:36: error: expected specifier-qualifier-list before 'MYSQL'
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:48: error: expected specifier-qualifier-list before 'MYSQL_FIELD'
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:53: error: expected specifier-qualifier-list before 'MYSQL_RES'
make: *** [pdo_mysql.lo] Error 1
ERROR: `make' failed
 
I'm getting the exact same error:
Code:
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:36: error: expected specifier-qualifier-list before ‘MYSQL’
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:48: error: expected specifier-qualifier-list before ‘MYSQL_FIELD’
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:53: error: expected specifier-qualifier-list before ‘MYSQL_RES’
make: *** [pdo_mysql.lo] Error 1
 
Back
Top