Compile af PHP5 --with-mysql
Har installeret Fedora Core4 64bit.Installeret Apache2 til /srv/apache
Installetet MySQL 4.1 via yum.
Compiler PHP5 med:
./configure \
--with-apxs2=/srv/apache/bin/apxs \
--disable-debug \
--enable-ftp \
--enable-inline-optimization \
--enable-magic-quotes \
--enable-mbstring \
--enable-mm=shared \
--enable-safe-mode \
--enable-track-vars \
--enable-trans-sid \
--enable-wddx=shared \
--enable-xml \
--with-dom \
--with-gd \
--with-gettext \
--with-mysql=/usr/lib64/mysql \
--with-regex=system \
--with-xml \
--with-zlib-dir=/usr/lib
Får følgende fejl:
configure: error: mysql/usr/lib64/mysql: invalid package name
Compiler jeg med :
--with-mysql=/usr/lib/mysql \
Får jeg følgende fejl:
configure: error: Cannot find MySQL header files under /usr/lib/mysql.
Note that the MySQL client library is not bundled anymore.
På http://www.lamphowto.com/ står der godt nok jeg skal compile med:
--with-mysql=/usr/local/mysql \
men har ikke mappen /usr/local/mysql
Hvor kan headers så ligge?
Starter jeg MySQL >
Service mysqld start
mysql
virker det fint...
