помогите с установкой Apache 2.2.17_1 на FreeBSD6.3(6.4)

Простые/общие вопросы по UNIX системам. Спросите здесь, если вы новичок

Модераторы: vadim64, terminus

Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
VladimirL
ефрейтор
Сообщения: 52
Зарегистрирован: 2010-04-27 20:33:06

помогите с установкой Apache 2.2.17_1 на FreeBSD6.3(6.4)

Непрочитанное сообщение VladimirL » 2011-02-02 15:44:19

Хочу обновить Apache 2.2.14_5 до 2.2.17_1.

Хотел portupgrade, но он срывался на apr1.
погуглив, нашел способ:

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

pkgdb -aF
portsclean -CDD
portsnap fetch update
cd /usr/ports/www/apache22
make deinstall clean
portupgrade -f -o devel/apr1 devel/apr
cd /usr/ports/devel/apr1
make deinstall clean
cd /usr/ports/www/apache22
make install clean
но после проделанного, при компиляции apache22 постоянно срывается на этапе:

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

.....
[skip]
mod_authnz_ldap.c:41:2: #error mod_authnz_ldap requires APR-util to have LDAP support built in. To fix add --with-ldap to ./configure.
mod_authnz_ldap.c:63: error: syntax error before "deref_options"
mod_authnz_ldap.c:95: error: syntax error before '*' token
mod_authnz_ldap.c:95: warning: data definition has no type or storage class
mod_authnz_ldap.c:96: error: syntax error before '*' token
mod_authnz_ldap.c:96: warning: data definition has no type or storage class
mod_authnz_ldap.c:97: error: syntax error before '*' token
mod_authnz_ldap.c:97: warning: data definition has no type or storage class
mod_authnz_ldap.c:98: error: syntax error before '*' token
mod_authnz_ldap.c:98: warning: data definition has no type or storage class
mod_authnz_ldap.c:99: error: syntax error before '*' token
mod_authnz_ldap.c:99: warning: data definition has no type or storage class
mod_authnz_ldap.c:100: error: syntax error before '*' token
mod_authnz_ldap.c:100: warning: data definition has no type or storage class
mod_authnz_ldap.c:101: error: syntax error before '*' token
mod_authnz_ldap.c:101: warning: data definition has no type or storage class
mod_authnz_ldap.c: In function `create_authnz_ldap_dir_config':
mod_authnz_ldap.c:322: error: structure has no member named `deref'
mod_authnz_ldap.c:322: error: `always' undeclared (first use in this function)
mod_authnz_ldap.c:322: error: (Each undeclared identifier is reported only once
mod_authnz_ldap.c:322: error: for each function it appears in.)
mod_authnz_ldap.c: In function `authnz_ldap_cleanup_connection_close':
mod_authnz_ldap.c:341: error: `util_ldap_connection_t' undeclared (first use in this function)
mod_authnz_ldap.c:341: error: `ldc' undeclared (first use in this function)
mod_authnz_ldap.c:342: error: called object is not a function
mod_authnz_ldap.c: In function `authn_ldap_check_password':
mod_authnz_ldap.c:366: error: `util_ldap_connection_t' undeclared (first use in this function)
mod_authnz_ldap.c:366: error: `ldc' undeclared (first use in this function)
mod_authnz_ldap.c:394: error: structure has no member named `deref'
mod_authnz_ldap.c:395: error: called object is not a function
mod_authnz_ldap.c:410: error: called object is not a function
mod_authnz_ldap.c:417: error: called object is not a function
mod_authnz_ldap.c:430: error: called object is not a function
mod_authnz_ldap.c:431: error: called object is not a function
mod_authnz_ldap.c:434: error: `LDAP_SERVER_DOWN' undeclared (first use in this function)
mod_authnz_ldap.c:441: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_authnz_ldap.c:455: error: `LDAP_NO_SUCH_OBJECT' undeclared (first use in this function)
mod_authnz_ldap.c:459: error: `LDAP_INAPPROPRIATE_AUTH' undeclared (first use in this function)
mod_authnz_ldap.c:460: error: `LDAP_INVALID_CREDENTIALS' undeclared (first use in this function)
mod_authnz_ldap.c: In function `authz_ldap_check_user_access':
mod_authnz_ldap.c:542: error: `util_ldap_connection_t' undeclared (first use in this function)
mod_authnz_ldap.c:542: error: `ldc' undeclared (first use in this function)
mod_authnz_ldap.c:593: error: structure has no member named `deref'
mod_authnz_ldap.c:594: error: called object is not a function
mod_authnz_ldap.c:645: error: called object is not a function
mod_authnz_ldap.c:648: error: `LDAP_SUCCESS' undeclared (first use in this function)
mod_authnz_ldap.c:684: error: called object is not a function
mod_authnz_ldap.c:686: error: `LDAP_COMPARE_TRUE' undeclared (first use in this function)
mod_authnz_ldap.c:704: error: called object is not a function
mod_authnz_ldap.c:730: error: called object is not a function
mod_authnz_ldap.c:779: error: called object is not a function
mod_authnz_ldap.c:813: error: called object is not a function
mod_authnz_ldap.c:850: error: called object is not a function
mod_authnz_ldap.c:858: error: called object is not a function
mod_authnz_ldap.c:869: error: `LDAP_FILTER_ERROR' undeclared (first use in this function)
mod_authnz_ldap.c: In function `mod_auth_ldap_parse_url':
mod_authnz_ldap.c:920: error: `apr_ldap_url_desc_t' undeclared (first use in this function)
mod_authnz_ldap.c:920: error: `urld' undeclared (first use in this function)
mod_authnz_ldap.c:921: error: `apr_ldap_err_t' undeclared (first use in this function)
mod_authnz_ldap.c:921: error: `result' undeclared (first use in this function)
mod_authnz_ldap.c:960: error: `LDAP_SCOPE_ONELEVEL' undeclared (first use in this function)
mod_authnz_ldap.c:961: error: `LDAP_SCOPE_SUBTREE' undeclared (first use in this function)
mod_authnz_ldap.c:982: error: `APR_LDAP_NONE' undeclared (first use in this function)
mod_authnz_ldap.c:985: error: `APR_LDAP_SSL' undeclared (first use in this function)
mod_authnz_ldap.c:988: error: `APR_LDAP_STARTTLS' undeclared (first use in this function)
mod_authnz_ldap.c:1001: error: `LDAPS_PORT' undeclared (first use in this function)
mod_authnz_ldap.c:1005: error: `LDAP_PORT' undeclared (first use in this function)
mod_authnz_ldap.c:1019: error: `LDAP_SCOPE_BASE' undeclared (first use in this function)
mod_authnz_ldap.c: In function `mod_auth_ldap_set_deref':
mod_authnz_ldap.c:1033: error: structure has no member named `deref'
mod_authnz_ldap.c:1033: error: `never' undeclared (first use in this function)
mod_authnz_ldap.c:1036: error: structure has no member named `deref'
mod_authnz_ldap.c:1036: error: `searching' undeclared (first use in this function)
mod_authnz_ldap.c:1039: error: structure has no member named `deref'
mod_authnz_ldap.c:1039: error: `finding' undeclared (first use in this function)
mod_authnz_ldap.c:1042: error: structure has no member named `deref'
mod_authnz_ldap.c:1042: error: `always' undeclared (first use in this function)
mod_authnz_ldap.c: In function `ImportULDAPOptFn':
mod_authnz_ldap.c:1253: error: `apr_OFN_uldap_connection_close_t' undeclared (first use in this function)
mod_authnz_ldap.c:1253: error: syntax error before ')' token
mod_authnz_ldap.c:1254: error: `apr_OFN_uldap_connection_find_t' undeclared (first use in this function)
mod_authnz_ldap.c:1254: error: syntax error before ')' token
mod_authnz_ldap.c:1255: error: `apr_OFN_uldap_cache_comparedn_t' undeclared (first use in this function)
mod_authnz_ldap.c:1255: error: syntax error before ')' token
mod_authnz_ldap.c:1256: error: `apr_OFN_uldap_cache_compare_t' undeclared (first use in this function)
mod_authnz_ldap.c:1256: error: syntax error before ')' token
mod_authnz_ldap.c:1257: error: `apr_OFN_uldap_cache_checkuserid_t' undeclared (first use in this function)
mod_authnz_ldap.c:1257: error: syntax error before ')' token
mod_authnz_ldap.c:1258: error: `apr_OFN_uldap_cache_getuserdn_t' undeclared (first use in this function)
mod_authnz_ldap.c:1258: error: syntax error before ')' token
mod_authnz_ldap.c:1259: error: `apr_OFN_uldap_ssl_supported_t' undeclared (first use in this function)
mod_authnz_ldap.c:1259: error: syntax error before ')' token
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1
1 error
*** Error code 1

Stop in /usr/ports/www/apache22.
*** Error code 1

Stop in /usr/ports/www/apache22.
подскажите, как решить эту проблему. :st:

Хостинговая компания Host-Food.ru
Хостинг HostFood.ru
 

Услуги хостинговой компании Host-Food.ru

Хостинг HostFood.ru

Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: помогите с установкой Apache 2.2.17_1 на FreeBSD6.3(6.4)

Непрочитанное сообщение hizel » 2011-02-02 15:47:23

добавить опцию ldap к apr, если вам нужен ldap
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

VladimirL
ефрейтор
Сообщения: 52
Зарегистрирован: 2010-04-27 20:33:06

Re: помогите с установкой Apache 2.2.17_1 на FreeBSD6.3(6.4)

Непрочитанное сообщение VladimirL » 2011-02-02 15:56:44

да, я видел "To fix add --with-ldap to ./configure"
соответственно сделал:
#cd work/httpd-2.2.17
#./configure --with-ldap


но появляется другая проблема и я не могу понять, чего он хочет:

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

...
[skip]
Installing man pages and online manual
for i in dbmmanage htdbm htdigest htpasswd; do  install  -o root -g wheel -m 444 /usr/ports/www/apache22/work/httpd-2.2.17/docs/man/$i.1 /usr/local/apache2/man/man1;  done
for i in ab apachectl apxs htcacheclean httpd logresolve rotatelogs suexec; do  install  -o root -g wheel -m 444 /usr/ports/www/apache22/work/httpd-2.2.17/docs/man/$i.8 /usr/local/apache2/man/man8;  done
*** Error code 1

Stop in /usr/ports/www/apache22.
*** Error code 1

Stop in /usr/ports/www/apache22.

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: помогите с установкой Apache 2.2.17_1 на FreeBSD6.3(6.4)

Непрочитанное сообщение hizel » 2011-02-02 16:00:24

VladimirL писал(а):да, я видел "To fix add --with-ldap to ./configure"
соответственно сделал:
#cd work/httpd-2.2.17
#./configure --with-ldap
о господи oO

1. cd /usr/ports/www/apache22
2. make config
3. <тыц тыц>
4. make clean
5. make install clean
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

VladimirL
ефрейтор
Сообщения: 52
Зарегистрирован: 2010-04-27 20:33:06

Re: помогите с установкой Apache 2.2.17_1 на FreeBSD6.3(6.4)

Непрочитанное сообщение VladimirL » 2011-02-02 16:21:24

hizel писал(а):
VladimirL писал(а):да, я видел "To fix add --with-ldap to ./configure"
соответственно сделал:
#cd work/httpd-2.2.17
#./configure --with-ldap
о господи oO

1. cd /usr/ports/www/apache22
2. make config
3. <тыц тыц>
4. make clean
5. make install clean
делалось в первую очередь, и возвращаемся к первому посту.
отключил LDAP, все поставилось, но:
1. почему в 2.2.14 все нормально собиралось?
2. на сколько актуален этот модуль (т.е. что он делает)?
3. в 17 поменялся путь дислокации (теперь /usr/local/apache2)?

Аватара пользователя
hizel
дядя поня
Сообщения: 9032
Зарегистрирован: 2007-06-29 10:05:02
Откуда: Выборг

Re: помогите с установкой Apache 2.2.17_1 на FreeBSD6.3(6.4)

Непрочитанное сообщение hizel » 2011-02-02 16:29:34

3.
#cd work/httpd-2.2.17
#./configure --with-ldap
если вы сделали так, а потом
make install

то у вас порт не зарегистрировался верно :-|
вы поставили минуя порты и сделали небольшой бардачок

модуль аудетификации через ldap, если нужен - нужен, иначе не нужен :-|
В дурацкие игры он не играет. Он просто жуткий, чу-чу, паровозик, и зовут его Блейн. Блейн --- это Боль.

VladimirL
ефрейтор
Сообщения: 52
Зарегистрирован: 2010-04-27 20:33:06

Re: помогите с установкой Apache 2.2.17_1 на FreeBSD6.3(6.4)

Непрочитанное сообщение VladimirL » 2011-02-02 17:15:06

Спасибо, с остальным буду разбираться