tyd01 Posté(e) le 31 octobre 2014 Partager Posté(e) le 31 octobre 2014 Bonjour, après avoir passé des jours à mettre au point un script en PHP, je m'aperçoit au moment de la mise en prod qu'il me manque l'extension php_pdo_odbc sur la version de PHP d'origine de mon synology. Je n'ai pas trouvé de solution pour installer une version de PHP avec toutes les extensions à partir d'ipkg, j'ai donc décider de la compiler moi-même (en tout cas l'extension qui m'interesse). J'ai installer unixodbc à l'aide d'ipkg mais quand je veux pré-build l'extension qui m'interesse (./configure --prefix=/opt --with-pdo-odbc=unixODBC,/opt), j'ai une erreur qui m'indique que la librairie ODBC n'existe pas : SYNOLOGY> ipkg list_installed apache - 2.2.20-1 - The most popular web server on the internet apr - 1.4.6-1 - Apache Portable Runtime library apr-util - 1.4.1-1 - Apache Portable Runtime utilities library autoconf - 2.69-1 - Creating scripts to configure source code packages using templates binutils - 2.19.1-1 - The GNU assembler and linker and related tools bzip2 - 1.0.6-1 - Very high-quality data compression program cyrus-sasl-libs - 2.1.23-2 - Provides client or server side authentication (see RFC 2222). e2fslibs - 1.40.3-5 - Ext2 Filesystem Libraries e2fsprogs - 1.40.3-5 - Ext2 Filesystem Utilities expat - 2.0.1-1 - XML Parser library gcc - 4.2.1-5 - The GNU Compiler Collection. gdbm - 1.8.3-4 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines. libc-dev - 2.3.6-5 - libc development files. libdb - 4.2.52-3 - Berkeley DB Libraries libnsl - 2.3.6-4 - Network Services Library libstdc++ - 6.0.9-6 - Standard C++ library, needed for dynamically linked C++ programs libtool - 1.5.26-1 - Library tools. libxml2 - 2.7.8-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project. libxslt - 1.1.26-2 - An XML Stylesheet processor based on libxml2 m4 - 1.4.16-1 - gnu macro processor and compiler front end make - 3.82-1 - examines files and runs commands necessary for compilation ncurses - 5.7-3 - NCurses libraries openldap-libs - 2.3.43-2 - Open Lightweight Directory Access Protocol openssl - 0.9.8v-2 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari pcre - 8.31-1 - Perl-compatible regular expression library perl - 5.10.0-6 - Practical Extraction and Report Language. php - 5.2.17-2 - The php scripting language php-apache - 5.2.17-1 - The php scripting language, built as an apache module php-dev - 5.2.17-2 - php native development environment php-odbc - 5.2.17-2 - odbc extension for php psmisc - 22.17-1 - A set of some small useful utilities that use the proc filesystem. unixodbc - 2.2.14-1 - ODBC is an open specification for providing application developers with a predictable API with which to access Data Sources. zlib - 1.2.5-1 - zlib is a library implementing the 'deflate' compression system. Successfully terminated. SYNOLOGY> cd /volume1/homes/admin/php-5.5.18/ext/pdo_odbc/ SYNOLOGY> phpize Configuring for: PHP Api Version: 20041225 Zend Module Api No: 20060613 Zend Extension Api No: 220060519 configure.in:3: warning: prefer named diversions config.m4:44: 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:2741: PHP_CHECK_PDO_INCLUDES is expanded from... config.m4:44: the top level configure.in:3: warning: prefer named diversions config.m4:44: 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:2741: PHP_CHECK_PDO_INCLUDES is expanded from... config.m4:44: the top level SYNOLOGY> ./configure --prefix=/opt --with-pdo-odbc=unixODBC,/opt checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed expr: syntax error ash: 0: unknown operand expr: syntax error ash: 0: unknown operand expr: syntax error ash: 0: unknown operand expr: syntax error ash: 0: unknown operand expr: syntax error ash: 0: unknown operand checking for cc... no checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for icc... no checking for suncc... no checking whether gcc and cc understand -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /opt checking for PHP includes... -I/opt/include/php -I/opt/include/php/main -I/opt/include/php/TSRM -I/opt/include/php/Zend -I/opt/include/php/ext -I/opt/include/php/ext/date/lib checking for PHP extension directory... /opt/lib/php/extensions checking for PHP installed headers prefix... /opt/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... no checking for awk... awk checking if awk is broken... no checking for ODBC v3 support for PDO... yes, shared checking for PDO includes... checking for PDO includes... /opt/include/php/ext checking for selected PDO ODBC flavour... unixODBC libs /opt/lib, headers /opt/include checking for odbc.h in /opt/include... no checking for odbcsdk.h in /opt/include... no checking for iodbc.h in /opt/include... no checking for sqlunix.h in /opt/include... no checking for sqltypes.h in /opt/include... yes checking for sqlucode.h in /opt/include... yes checking for sql.h in /opt/include... yes checking for isql.h in /opt/include... no checking for sqlext.h in /opt/include... yes checking for isqlext.h in /opt/include... no checking for udbcext.h in /opt/include... no checking for sqlcli1.h in /opt/include... no checking for LibraryManager.h in /opt/include... no checking for cli0core.h in /opt/include... no checking for cli0ext.h in /opt/include... no checking for cli0cli.h in /opt/include... no checking for cli0defs.h in /opt/include... no checking for cli0env.h in /opt/include... no checking for SQLBindCol in -lodbc... no configure: error: Your ODBC library does not exist or there was an error. Check config.log for more information Que dois-je faire de plus pour pouvoir compiler correctement mon fichier ? 0 Citer Lien vers le commentaire Partager sur d’autres sites More sharing options...
Messages recommandés
Rejoindre la conversation
Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.