Помогите пожалуйста разобраться с проблемой.
Мне необходимо установить PHP 5.2 на FreeBSD 10. Во время установки у меня выдает следующую ошибку:
Код: Выделить всё
[trex@H417 ~/Install/php-5.2.12]$ sudo make install
Installing PHP SAPI module: apache2handler
/usr/local/apache2/build/instdso.sh SH_LIBTOOL='/usr/local/share/apr/build-1/libtool' libphp5.la /usr/local/apache2/modules
/usr/local/share/apr/build-1/libtool --mode=install cp libphp5.la /usr/local/apache2/modules/
libtool: install: cp .libs/libphp5.lai /usr/local/apache2/modules/libphp5.la
libtool: install: cp .libs/libphp5.a /usr/local/apache2/modules/libphp5.a
libtool: install: chmod 644 /usr/local/apache2/modules/libphp5.a
libtool: install: ranlib /usr/local/apache2/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish /home/trex/Install/php-5.2.12/libs'
Warning! dlname not found in /usr/local/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: /usr/local/apache2/modules/libphp5.so: No such file or directory
apxs:Error: Command failed with rc=65536
.
*** Error code 1
Код: Выделить всё
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --prefix=/usr/local/apache2/php --with-config-file-path=/usr/local/apache2/php --enable-force-cgi-redirect --disable-cgiКод: Выделить всё
./configure --prefix=/usr/local/apache2 --enable-cgi --enable-ssl --enable-so --enable-rewrite --enable-mime-magic --enable-suexec --enable-static-rotatelogs --enable-spelingКод: Выделить всё
sudo find / -name "libphp5.so"--with-apxs2=/usr/local/apache2/bin/apxs. И потому он не функционаировал с Apache.
Код: Выделить всё
/usr/local/apache2/
|-- bin
| |-- ab
| |-- apachectl
| |-- apxs
| |-- checkgid
| |-- dbmmanage
| |-- envvars
| |-- envvars-std
| |-- htcacheclean
| |-- htdbm
| |-- htdigest
| |-- htpasswd
| |-- httpd
| |-- httxt2dbm
| |-- logresolve
| |-- rotatelogs
| `-- suexec
|-- build
| |-- config.nice
| |-- config_vars.mk
| |-- instdso.sh
| |-- library.mk
| |-- ltlib.mk
| |-- mkdir.sh
| |-- program.mk
| |-- rules.mk
| `-- special.mk
|-- cgi-bin
| |-- printenv
| `-- test-cgi
|-- conf
| |-- extra
| | |-- httpd-autoindex.conf
| | |-- httpd-dav.conf
| | |-- httpd-default.conf
| | |-- httpd-info.conf
| | |-- httpd-languages.conf
| | |-- httpd-manual.conf
| | |-- httpd-mpm.conf
| | |-- httpd-multilang-errordoc.conf
| | |-- httpd-ssl.conf
| | |-- httpd-userdir.conf
| | `-- httpd-vhosts.conf
| |-- httpd.conf
| |-- magic
| |-- mime.types
| `-- original
| |-- extra
| `-- httpd.conf
|-- error
...
|-- htdocs
| |-- index.html
| `-- phpinfo.php
|-- icons
...
|-- include
| |-- ap_compat.h
| |-- ap_config.h
| |-- ap_config_auto.h
| |-- ap_config_layout.h
| |-- ap_listen.h
| |-- ap_mmn.h
| |-- ap_mpm.h
| |-- ap_provider.h
| |-- ap_regex.h
| |-- ap_regkey.h
| |-- ap_release.h
| |-- http_config.h
| |-- http_connection.h
| |-- http_core.h
| |-- http_log.h
| |-- http_main.h
| |-- http_protocol.h
| |-- http_request.h
| |-- http_vhost.h
| |-- httpd.h
| |-- mod_auth.h
| |-- mod_cgi.h
| |-- mod_core.h
| |-- mod_dav.h
| |-- mod_dbd.h
| |-- mod_include.h
| |-- mod_log_config.h
| |-- mod_proxy.h
| |-- mod_rewrite.h
| |-- mod_ssl.h
| |-- mod_status.h
| |-- mpm.h
| |-- mpm_common.h
| |-- mpm_default.h
| |-- os.h
| |-- scoreboard.h
| |-- unixd.h
| |-- util_cfgtree.h
| |-- util_charset.h
| |-- util_ebcdic.h
| |-- util_filter.h
| |-- util_ldap.h
| |-- util_md5.h
| |-- util_script.h
| |-- util_time.h
| `-- util_xml.h
|-- logs
...
|-- man
...
|-- manual
|-- modules
| |-- httpd.exp
| |-- libphp5.a
| `-- libphp5.la
`-- php
|-- bin
| |-- pear
| |-- peardev
| |-- pecl
| |-- php
| |-- php-config
| `-- phpize
|-- etc
| `-- pear.conf
|-- include
| `-- php
|-- lib
| `-- php
`-- man
`-- man1
