[MacPorts] #19523: Mac OS X 10.5.6 libiconv, openssl errors when trying to build PHP 5.2.9

MacPorts noreply at macports.org
Tue Aug 4 18:03:09 PDT 2009


#19523: Mac OS X 10.5.6 libiconv, openssl errors when trying to build PHP 5.2.9
---------------------------------+------------------------------------------
 Reporter:  z3r0_f4ct0r@…        |       Owner:  macports-tickets@…                   
     Type:  defect               |      Status:  new                                  
 Priority:  Normal               |   Milestone:                                       
Component:  ports                |     Version:  1.7.1                                
 Keywords:  libiconv, openssl    |        Port:  libiconv, openssl                    
---------------------------------+------------------------------------------

Comment(by z3r0_f4ct0r@…):

 Turns out that PHP 5.3 uses mysqlnd vs mysqli
 http://dev.mysql.com/downloads/connector/php-mysqlnd/

 So I had to change the config options to include: --with-mysql=mysqlnd,
 --with-mysqli=mysqlnd and --with-pdo-mysql=mysqlnd to compile PHP with
 mysqlnd support.

 Now I'm having issues with sqlite3 with the following config:

 {{{
 './configure' \
 '--disable-all' \
 '--with-apxs2=/usr/sbin/apxs' \
 '--with-mysql=mysqlnd' \
 '--with-mysqli=mysqlnd' \
 '--prefix=/usr/local/php' \
 '--with-config-file-path=/usr/local/php' \
 '--with-zlib' \
 '--with-gettext=/opt/local' \
 '--with-gdbm=/opt/local' \
 '--with-mcrypt=/opt/local' \
 '--with-curl=/opt/local' \
 '--with-openssl' \
 '--with-sqlite' \
 '--enable-sqlite-utf8' \
 '--enable-libxml' \
 '--enable-simplexml' \
 '--enable-xml' \
 '--enable-xmlreader' \
 '--enable-xmlwriter' \
 '--enable-dom' \
 '--with-pcre-regex' \
 '--enable-session' \
 '--enable-spl' \
 '--with-gd' \
 '--with-jpeg-dir=/opt/local' \
 '--with-png-dir=/opt/local' \
 '--with-freetype-dir=/opt/local' \
 '--enable-ctype' \
 '--with-iconv=/opt/local' \
 '--with-xsl' \
 '--with-pear' \
 '--enable-hash' \
 '--enable-json' \
 '--enable-mbstring' \
 '--enable-pdo' \
 '--with-pdo-mysql=mysqlnd' \
 '--enable-ftp' \
 '--with-pdo-dblib=/opt/local' \
 '--enable-shmop' \
 '--enable-pcntl' \
 '--enable-posix'
 }}}

 I've tried with the above config and even:
 {{{
 --enable-pdo=shared \
 --with-sqlite=shared \
 --with-pdo-sqlite=shared
 }}}

 but I get this error:
 {{{
 checking for dnet_addr in -ldnet_stub... no
 checking for Firebird support for PDO... no
 checking for MySQL support for PDO... no
 checking Oracle OCI support for PDO... no
 checking for ODBC v3 support for PDO... no
 checking for PostgreSQL support for PDO... no
 checking for sqlite 3 support for PDO... yes
 checking for PDO includes... (cached) /usr/local/src/php-5.3.0/ext
 configure: error:
 You've configured extension pdo_sqlite, which depends on extension
 sqlite3,
 but you've either not enabled sqlite3, or have disabled it.
 }}}

 Ideas?

-- 
Ticket URL: <http://trac.macports.org/ticket/19523#comment:9>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list