4 Einträge, 1 Seite |
./configure --with-mysql --with-xml --enable-track-vars --with-apxs=/usr/local/apache/bin/apxs
1
2
3
4
5
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
find /usr -name apxs
1
2
3
whereis httpd
httpd: /usr/sbin/httpd /usr/sbin/httpd.worker /etc/httpd /usr/lib/httpd /usr/share/man/man8/httpd.8.gz
./configure --with-mysql --with-xml --enable-track-vars --with-apxs=/usr/lib/httpd/modules
Quote./configure --enable-so
make
make install
Quote./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
1
2
3
checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock
configure: error: Cannot find MySQL header files under yes.
Note that the MySQL client library is not bundled anymore.
yum search mysql
./configure --with-apxs2=/usr/local/apache2/bin/apxs
Quotemain/internal_functions_cli.lo(.text+0xe): In function `php_startup_internal_extensions':
main/internal_functions_cli.c:68: undefined reference to `php_startup_extensions'
main/internal_functions_cli.lo(.data+0x0): undefined reference to `xml_module_entry'
main/internal_functions_cli.lo(.data+0x4): undefined reference to `tokenizer_module_entry'
main/internal_functions_cli.lo(.data+0x8): undefined reference to `basic_functions_module'
main/internal_functions_cli.lo(.data+0xc): undefined reference to `sqlite_module_entry'
main/internal_functions_cli.lo(.data+0x10): undefined reference to `spl_module_entry'
main/internal_functions_cli.lo(.data+0x14): undefined reference to `simplexml_module_entry'
main/internal_functions_cli.lo(.data+0x18): undefined reference to `session_module_entry'
main/internal_functions_cli.lo(.data+0x1c): undefined reference to `posix_module_entry'
main/internal_functions_cli.lo(.data+0x20): undefined reference to `pcre_module_entry'
main/internal_functions_cli.lo(.data+0x24): undefined reference to `iconv_module_entry'
main/internal_functions_cli.lo(.data+0x28): undefined reference to `dom_module_entry'
main/internal_functions_cli.lo(.data+0x2c): undefined reference to `ctype_module_entry'
main/internal_functions_cli.lo(.data+0x30): undefined reference to `libxml_module_entry'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
make clean
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
yum install mysql-devel
4 Einträge, 1 Seite |