Версия php-extensions не соответствует версии PHP

Все о скриптах

Модераторы: Art.i, vasya

Версия php-extensions не соответствует версии PHP

Сообщение gg » Чт май 23, 2013 8:28 pm

На VDS установлен PHP 5.3.8, при этом расширения для установки через Расширения PHP предлагаются 5.4.6 версий и процесс их установки не заканчивается успехом.
Попытка установить нужные расширения через порты также заканчивается неудачей, жалуется на несовместимость версий. При этом порты самостоятельно не выкачивал.
Т.е. шаблон сейчас предлагает мне несовместимые расширения для PHP.... За лет 5 сталкиваюсь с такой ерундой впервые. Заниматься выставлением соответствий желания пока нет, так что вижу такие варианты:

1) Ждать когда кто-нибудь починит шаблонные поставки ПО.
2) Заказать новый VDS и перенстись на него в надежде, что на нём всё будет ок.....

Судя по отчёту VDS manager Предустановленное ПО — всё ПО у меня шаблонное.
gg
 
Сообщений: 9
Зарегистрирован: Чт июн 21, 2007 1:28 pm

Re: Версия php-extensions не соответствует версии PHP

Сообщение Captain » Чт май 23, 2013 9:40 pm

Кеш панели очистите:
# /usr/local/ispmgr/sbin/pkgctl cache
Captain
 
Сообщений: 108
Зарегистрирован: Вт авг 18, 2009 4:20 pm

Re: Версия php-extensions не соответствует версии PHP

Сообщение gg » Пт май 24, 2013 10:05 pm

спасибо, ничего не изменилось.

Код: выделить все
# php -v
PHP 5.3.8 with Suhosin-Patch (cli) (built: Oct 17 2011 23:20:14)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
    with XCache v2.0.1, Copyright (c) 2005-2012, by mOo



Код: выделить все
# portinstall php53-pdo_mysql
[Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 311 packages found (-1 +1) (...). done]
[Gathering depends for databases/php53-pdo_mysql ........................................................ done]
php53-pdo_mysql-5.3.16: "/usr/ports/devel/autoconf-wrapper" non-existent -- dependency list incomplete
php53-pdo_mysql-5.3.16: "/usr/ports/devel/automake-wrapper" non-existent -- dependency list incomplete
** Port marked as IGNORE: databases/php53-pdo_mysql:
        cannot install: doesn't work with PHP version : 5 (Doesn't support PHP 52 5)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        - databases/php53-pdo_mysql


Код: выделить все
# portinstall php5-pdo_mysql
[Gathering depends for databases/php5-pdo_mysql ........................................................ done]
php5-pdo_mysql-5.4.6: "/usr/ports/devel/autoconf-wrapper" non-existent -- dependency list incomplete
php5-pdo_mysql-5.4.6: "/usr/ports/devel/automake-wrapper" non-existent -- dependency list incomplete
--->  Installing 'php5-pdo_mysql-5.4.6' from a port (databases/php5-pdo_mysql)
--->  Building '/usr/ports/databases/php5-pdo_mysql'
===>  Cleaning for php5-pdo_mysql-5.4.6
===>  License PHP301 accepted by the user
===>  Found saved configuration for php5-pdo_mysql-5.4.6
===>  Extracting for php5-pdo_mysql-5.4.6
=> SHA256 Checksum OK for php-5.4.6.tar.bz2.
===>  Patching for php5-pdo_mysql-5.4.6
===>   php5-pdo_mysql-5.4.6 depends on file: /usr/local/include/php/main/php.h - found
===>   php5-pdo_mysql-5.4.6 depends on file: /usr/local/bin/phpize - found
===>   php5-pdo_mysql-5.4.6 depends on file: /usr/local/lib/php/20090626/pdo.so - found
===>   php5-pdo_mysql-5.4.6 depends on file: /usr/local/lib/php/20090626/mysql.so - found
===>   php5-pdo_mysql-5.4.6 depends on file: /usr/local/bin/autoconf-2.69 - found
===>  PHPizing for php5-pdo_mysql-5.4.6
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
configure.in:3: warning: prefer named diversions
config.m4:124: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:2736: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:124: the top level
configure.in:3: warning: prefer named diversions
config.m4:124: warning: AC_CACHE_VAL(pdo_inc_path, ...): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:2031: AC_CACHE_VAL is expanded from...
../../lib/autoconf/general.m4:2052: AC_CACHE_CHECK is expanded from...
aclocal.m4:2736: PHP_CHECK_PDO_INCLUDES is expanded from...
config.m4:124: the top level
===>  Configuring for php5-pdo_mysql-5.4.6
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cpp
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... yes
checking build system type... amd64-portbld-freebsd8.3
checking host system type... amd64-portbld-freebsd8.3
checking target system type... amd64-portbld-freebsd8.3
checking for PHP prefix... /usr/local
checking for PHP includes... -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
checking for PHP extension directory... /usr/local/lib/php/20090626
checking for PHP installed headers prefix... /usr/local/include/php
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... no
checking for nawk... nawk
checking if nawk is broken... no
checking for MySQL support for PDO... yes, shared
checking for the location of libz... no
checking for PDO includes... checking for PDO includes... /usr/local/include/php/ext
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking the maximum length of command line arguments... (cached) 262144
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC
checking if cc PIC flag -fPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking whether the cc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... freebsd8.3 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC...
checking if c++ static flag  works... yes
checking if c++ supports -c -o file.o... yes
checking whether the c++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... freebsd8.3 ld.so
(cached) (cached) checking how to hardcode library paths into programs... unsupported
configure: creating ./config.status
config.status: creating config.h
===>  Building for php5-pdo_mysql-5.4.6
/bin/sh /usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/libtool --mode=compile cc -I -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/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  -O2 -pipe -fno-strict-aliasing   -c /usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/pdo_mysql.c -o pdo_mysql.lo
mkdir .libs
 cc -I -I -I. -I/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql -DPHP_ATOM_INC -I/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/include -I/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/main -I/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/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 -O2 -pipe -fno-strict-aliasing -c /usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/pdo_mysql.c  -fPIC -DPIC -o .libs/pdo_mysql.o
/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/pdo_mysql.c:61:45: error: ext/mysqlnd/mysqlnd_reverse_api.h: No such file or directory
/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/pdo_mysql.c:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pdo_mysql_reverse_api'
/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/pdo_mysql.c: In function 'zm_startup_pdo_mysql':
/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/pdo_mysql.c:123: error: 'pdo_mysql_reverse_api' undeclared (first use in this function)
/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/pdo_mysql.c:123: error: (Each undeclared identifier is reported only once
/usr/ports/databases/php5-pdo_mysql/work/php-5.4.6/ext/pdo_mysql/pdo_mysql.c:123: error: for each function it appears in.)
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/databases/php5-pdo_mysql.
*** Error code 1

Stop in /usr/ports/databases/php5-pdo_mysql.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20130526-28832-11qk4m0-0 env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        ! databases/php5-pdo_mysql      (missing header)


Скрин установки расширений PHP:
9ce4e335aadcb7dd52001139f8cecab6.png
9ce4e335aadcb7dd52001139f8cecab6.png (5.34 KiB) Просмотров: 4841


везде разные версии О_о
gg
 
Сообщений: 9
Зарегистрирован: Чт июн 21, 2007 1:28 pm


Вернуться в CGI, Perl, PHP

Кто сейчас на форуме

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3