Помогите с libphp5.a замучился уже. (Не ставится.)

Для новичков как вообще в Linux, так и в конкретной теме, к которой относится вопрос.

Модератор: Bizdelnick

Эсмеральда
Сообщения: 3

Помогите с libphp5.a замучился уже.

Сообщение Эсмеральда »

Помогите с libphp5.a замучился уже. Не ставится.
на "make" выдает:

Making all in src/modules/php5/libphp5.a
make[2]: Entering directory `/home/httpd-2.0.54/modules/src/modules/php5/libphp5.a'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/home/httpd-2.0.54/modules/src/modules/php5/libphp5.a'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/httpd-2.0.54/modules'
make: *** [all-recursive] Error 1


#Еще и зарегистрироваться умудрился под именем подруги !!!
Спасибо сказали:
Аватара пользователя
clx
Сообщения: 3121
Статус: Think Different !
ОС: Mac OS X

Re: Помогите с libphp5.a замучился уже.

Сообщение clx »

Что и как делаешь? Т.к пхп и апач нужно в определенной последовательности собирать с нужными опциями, а также запость больший кусок с ошибками.
iMac 20" Core Duo.
Спасибо сказали:
Эсмеральда
Сообщения: 3

Re: Помогите с libphp5.a замучился уже.

Сообщение Эсмеральда »

clx писал(а):
06.10.2005 19:41
Что и как делаешь? Т.к пхп и апач нужно в определенной последовательности собирать с нужными опциями, а также запость больший кусок с ошибками.


Ну делал так :
cd httpd-2.0.54
./configure --prefix=/usr/local/apache2
cd ../php-5.0.5
./configure --with-mysql --with-apache=../httpd-2.0.54 --enable-track-vars
make
make install
cd ../httpd-2.0.54
./configure --with-module=src/modules/php5/libphp5.a --enable-module=rewrite
make

И тут начались баги....последние строчки make:

make[2]: Leaving directory `/home/httpd-2.0.54/server'
make[1]: Leaving directory `/home/httpd-2.0.54/server'
Making all in modules
make[1]: Entering directory `/home/httpd-2.0.54/modules'
Making all in aaa
make[2]: Entering directory `/home/httpd-2.0.54/modules/aaa'
make[3]: Entering directory `/home/httpd-2.0.54/modules/aaa'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/home/httpd-2.0.54/modules/aaa'
make[2]: Leaving directory `/home/httpd-2.0.54/modules/aaa'
Making all in filters
make[2]: Entering directory `/home/httpd-2.0.54/modules/filters'
make[3]: Entering directory `/home/httpd-2.0.54/modules/filters'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/home/httpd-2.0.54/modules/filters'
make[2]: Leaving directory `/home/httpd-2.0.54/modules/filters'
Making all in loggers
make[2]: Entering directory `/home/httpd-2.0.54/modules/loggers'
make[3]: Entering directory `/home/httpd-2.0.54/modules/loggers'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/home/httpd-2.0.54/modules/loggers'
make[2]: Leaving directory `/home/httpd-2.0.54/modules/loggers'
Making all in metadata
make[2]: Entering directory `/home/httpd-2.0.54/modules/metadata'
make[3]: Entering directory `/home/httpd-2.0.54/modules/metadata'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/home/httpd-2.0.54/modules/metadata'
make[2]: Leaving directory `/home/httpd-2.0.54/modules/metadata'
Making all in http
make[2]: Entering directory `/home/httpd-2.0.54/modules/http'
make[3]: Entering directory `/home/httpd-2.0.54/modules/http'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/home/httpd-2.0.54/modules/http'
make[2]: Leaving directory `/home/httpd-2.0.54/modules/http'
Making all in src/modules/php5/libphp5.a
make[2]: Entering directory `/home/httpd-2.0.54/modules/src/modules/php5/libphp5.a'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/home/httpd-2.0.54/modules/src/modules/php5/libphp5.a'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/httpd-2.0.54/modules'
make: *** [all-recursive] Error 1
Спасибо сказали:
Аватара пользователя
charlie
Сообщения: 104

Re: Помогите с libphp5.a замучился уже.

Сообщение charlie »

Итак, собрать php с apache 2.0.x можно только в виде shared module. Это делается так

Код: Выделить всё

апач
./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite
make
make install
php
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
make
make install

Подробнее здесь http://www.php.net/manual/en/install.unix.apache2.php
А при синтаксисе ./configure --with-module апаче собирается с MPM. А по поводу MPM разработчики пишут вот что

Код: Выделить всё

We do not recommend using a threaded MPM in production with Apache2. Use the prefork MPM instead, or use Apache1. For information on why, read the related FAQ entry on using Apache2 with a threaded MPM
Из университета Беркли вышли два главных продукта: LSD и BSD.
Ну было просто рулез!...
Спасибо сказали:
Эсмеральда
Сообщения: 3

Re: Помогите с libphp5.a замучился уже.

Сообщение Эсмеральда »

charlie писал(а):
06.10.2005 22:17
Итак, собрать php с apache 2.0.x можно только в виде shared module. Это делается так

Код: Выделить всё

апач
./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite
make
make install
php
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
make
make install

Подробнее здесь http://www.php.net/manual/en/install.unix.apache2.php
А при синтаксисе ./configure --with-module апаче собирается с MPM. А по поводу MPM разработчики пишут вот что

Код: Выделить всё

We do not recommend using a threaded MPM in production with Apache2. Use the prefork MPM instead, or use Apache1. For information on why, read the related FAQ entry on using Apache2 with a threaded MPM


На последнем этапе "make install" выдает:

/home/php-5.0.5/ext/standard/info.c:1068: undefined reference to `zend_wrong_param_count'
ext/standard/info.lo(.text+0x2133): In function `zif_php_sapi_name':
/home/php-5.0.5/ext/standard/info.c:1080: undefined reference to `zend_wrong_param_count'
main/internal_functions_cli.lo(.text+0xe): In function `php_startup_internal_extensions':
main/internal_functions_cli.c:70: 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 `mysql_module_entry'
main/internal_functions_cli.lo(.data+0x28): undefined reference to `iconv_module_entry'
main/internal_functions_cli.lo(.data+0x2c): undefined reference to `dom_module_entry'
main/internal_functions_cli.lo(.data+0x30): undefined reference to `ctype_module_entry'
main/internal_functions_cli.lo(.data+0x34): undefined reference to `libxml_module_entry'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

И php не работает нифига.
Спасибо сказали: