|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2018-05-27 11:08 UTC] mail at surjitsidhu dot com
Description: ------------ /home/php-7.2.6/ext/pdo_odbc/pdo_odbc.c:28:25: fatal error: pdo/php_pdo.h: No such file or directory compilation terminated. Makefile:1749: recipe for target 'ext/pdo_odbc/pdo_odbc.lo' failed make: *** [ext/pdo_odbc/pdo_odbc.lo] Error 1 Current 28 and 29 lines #include "pdo/php_pdo.h" #include "pdo/php_pdo_driver.h" After below changes it works #include "ext/pdo/php_pdo.h" #include "ext/pdo/php_pdo_driver.h" PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 05:00:01 2025 UTC |
1.) There are some options that aren't used in PHP 7.2 anymore: configure: WARNING: unrecognized options: --disable-dependency-tracking, --enable-gd-native-ttf, --with-system-tzdata, --with-mcrypt 2.) There are two --libdir options (one is not needed) 3.) Imap and recode extensions can't work together. They can be built together with a bit of a patch of php source code but it's best to avoid the imap extension in such cases. 4.) Add --with-libzip (because the bundled libzip library has been removed in PHP 7.3 version) - for the future installations... So the prerequisites for the Ubuntu 16.04: apt-get update && apt-get install -y \ apt-utils \ wget \ xz-utils \ build-essential \ bison \ re2c \ libxml2-dev \ libssl-dev \ libpcre++-dev \ libsqlite3-dev \ libbz2-dev \ libcurl4-openssl-dev \ libdb5.3++-dev \ libdb-dev \ libsslcommon2-dev \ pkg-config \ libtokyocabinet-dev \ libenchant-dev \ libwebp-dev \ libjpeg-dev \ libpng-dev \ libxpm-dev \ libfreetype6-dev \ libgmp-dev \ libc-client-dev \ libkrb5-dev \ libldap2-dev \ libsasl2-dev \ libodbc1 \ unixodbc-dev \ libpq-dev \ libpspell-dev \ libedit-dev \ librecode-dev \ libsnmp-dev \ libtidy-dev \ libxslt-dev \ libgdbm-dev \ freetds-dev \ libzip-dev And the adjusted configure options: ./configure --program-prefix= \ --prefix=/opt/pop/pop-php72/root/usr \ --exec-prefix=/opt/pop/pop-php72/root/usr \ --bindir=/opt/pop/pop-php72/root/usr/bin \ --sbindir=/opt/pop/pop-php72/root/usr/sbin \ --sysconfdir=/opt/pop/pop-php72/root/etc \ --datadir=/opt/pop/pop-php72/root/usr/share \ --includedir=/opt/pop/pop-php72/root/usr/include \ --libdir=/opt/pop/pop-php72/root/usr/lib64 \ --libexecdir=/opt/pop/pop-php72/root/usr/libexec \ --localstatedir=/opt/pop/pop-php72/root/usr/var \ --sharedstatedir=/opt/pop/pop-php72/root/usr/com \ --mandir=/opt/pop/pop-php72/root/usr/share/man \ --infodir=/opt/pop/pop-php72/root/usr/share/info \ --cache-file=../config.cache \ --with-config-file-path=/opt/pop/pop-php72/root/etc \ --with-config-file-scan-dir=/opt/pop/pop-php72/root/etc/php.d \ --disable-debug \ --with-pic \ --without-pear \ --with-bz2 \ --with-freetype-dir=/usr \ --with-png-dir=/usr \ --with-xpm-dir=/usr \ --with-gettext \ --with-iconv \ --with-jpeg-dir=/usr \ --with-openssl \ --with-pcre-regex \ --with-zlib \ --with-layout=GNU \ --enable-exif \ --enable-ftp \ --enable-sockets \ --with-kerberos \ --enable-shmop \ --with-libxml-dir=/usr \ --with-mhash \ --enable-pcntl \ --enable-opcache \ --disable-opcache-file \ --enable-phpdbg \ --enable-mbstring=shared \ --enable-mbregex \ --with-webp-dir=/usr \ --with-gd=shared \ --with-gmp=shared \ --enable-calendar=shared \ --enable-bcmath=shared \ --with-bz2=shared \ --enable-ctype=shared \ --enable-dba=shared \ --without-gdbm \ --with-db4 \ --with-tcadb=/usr \ --enable-exif=shared \ --enable-ftp=shared \ --with-gettext=shared \ --with-iconv=shared \ --enable-sockets=shared \ --enable-tokenizer=shared \ --with-xmlrpc=shared \ --with-ldap=shared \ --with-ldap-sasl \ --enable-mysqlnd=shared \ --with-mysqli=shared,mysqlnd \ --with-mysql-sock=/var/run/mysqld/mysqld.sock \ --enable-dom=shared \ --with-pgsql=shared \ --enable-simplexml=shared \ --enable-xml=shared \ --enable-wddx=shared \ --with-snmp=shared,/usr \ --enable-soap=shared \ --with-xsl=shared,/usr \ --enable-xmlreader=shared \ --enable-xmlwriter=shared \ --with-curl=shared \ --enable-pdo=shared \ --with-pdo-odbc=shared,unixODBC,/usr \ --with-pdo-mysql=shared,mysqlnd \ --with-pdo-pgsql=shared,/usr \ --with-pdo-sqlite=shared,/usr \ --with-pdo-dblib=shared \ --with-sqlite3=shared,/usr \ --enable-json=shared \ --enable-zip=shared \ --with-libzip=/usr \ --without-readline \ --with-libedit \ --with-pspell=shared \ --enable-phar=shared \ --with-tidy=shared \ --enable-sysvmsg=shared \ --enable-sysvshm=shared \ --enable-sysvsem=shared \ --enable-shmop=shared \ --enable-posix=shared \ --with-unixODBC=shared,/usr \ --enable-intl=shared \ --with-icu-dir=/usr \ --with-enchant=shared,/usr \ --with-recode=shared,/usr \ --enable-fileinfo=shared \ --with-libdir=/lib/x86_64-linux-gnu And this should go through with make then...