Перейти к содержанию

Не ставится Apache2


fcnewb

Рекомендуемые сообщения

Приветствую!

Необходимо поставить Apache 2.0.55 на FreeBSD 4.11-STABLE.

Делаем:

-bash-2.05b# ./configure

-bash-2.05b# make

И полезла куча ошибок.

Я к сожалению совершенно ничего не понимаю в этом.

Подскажите пожалуйста, в чем тут проблема?

Дело в том, что на сервере уже стоит Apache 2.0.4х, захотел вот обновить, а тут такая фигня полезла.

-bash-2.05b# make

Making all in srclib

Making all in apr

Making all in strings

Making all in passwd

Making all in tables

Making all in file_io/unix

Making all in network_io/unix

Making all in threadproc/unix

Making all in misc/unix

Making all in locks/unix

Making all in time/unix

Making all in mmap/unix

Making all in shmem/unix

Making all in user/unix

Making all in memory/unix

Making all in atomic/unix

Making all in poll/unix

Making all in support/unix

Making all in dso/unix

Making all in apr-util

Making all in buckets

Making all in crypto

Making all in dbm

Making all in sdbm

Making all in .

Making all in encoding

Making all in hooks

Making all in ldap

Making all in uri

Making all in xml

Making all in misc

Making all in strmatch

Making all in xlate

Making all in pcre

Making all in os

Making all in unix

/usr/local/src/httpd-2.0.55/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -D_REENTRANT -D_THREAD_SAFE -DAP_HAVE_DESIGNATED_INITIALIZER -I/usr/local/src/httpd-2.0.55/srclib/apr/include -I/usr/local/src/httpd-2.0.55/srclib/apr-util/include -I/usr/local/include -I. -I/usr/local/src/httpd-2.0.55/os/unix -I/usr/local/src/httpd-2.0.55/server/mpm/prefork -I/usr/local/src/httpd-2.0.55/modules/http -I/usr/local/src/httpd-2.0.55/modules/filters -I/usr/local/src/httpd-2.0.55/modules/proxy -I/usr/local/src/httpd-2.0.55/include -I/usr/local/src/httpd-2.0.55/modules/generators -I/usr/local/src/httpd-2.0.55/modules/dav/main -prefer-non-pic -static -c unixd.c && touch unixd.lo

In file included from unixd.h:22,

from unixd.c:23:

/usr/local/src/httpd-2.0.55/include/ap_listen.h:62: syntax error before `extern'

In file included from unixd.c:23:

unixd.h:49: syntax error before `get_suexec_identity'

unixd.h:69: syntax error before `extern'

unixd.h:71: syntax error before `unixd_setup_child'

unixd.h:71: warning: data definition has no type or storage class

unixd.h:72: syntax error before `unixd_pre_config'

unixd.h:72: warning: data definition has no type or storage class

unixd.h:73: syntax error before `unixd_set_user'

unixd.h:74: warning: data definition has no type or storage class

unixd.h:75: syntax error before `unixd_set_group'

unixd.h:76: warning: data definition has no type or storage class

unixd.h:78: syntax error before `unixd_set_rlimit'

unixd.h:79: warning: data definition has no type or storage class

unixd.h:91: syntax error before `unixd_set_proc_mutex_perms'

unixd.h:91: warning: data definition has no type or storage class

unixd.h:92: syntax error before `unixd_set_global_mutex_perms'

unixd.h:92: warning: data definition has no type or storage class

unixd.h:93: syntax error before `unixd_accept'

unixd.h:93: warning: data definition has no type or storage class

In file included from unixd.c:24:

/usr/local/src/httpd-2.0.55/include/mpm_common.h:182: syntax error before `ap_mpm_pod_open'

/usr/local/src/httpd-2.0.55/include/mpm_common.h:182: warning: data definition has no type or storage class

/usr/local/src/httpd-2.0.55/include/mpm_common.h:187: syntax error before `ap_mpm_pod_check'

/usr/local/src/httpd-2.0.55/include/mpm_common.h:187: warning: data definition has no type or storage class

/usr/local/src/httpd-2.0.55/include/mpm_common.h:192: syntax error before `ap_mpm_pod_close'

/usr/local/src/httpd-2.0.55/include/mpm_common.h:192: warning: data definition has no type or storage class

/usr/local/src/httpd-2.0.55/include/mpm_common.h:199: syntax error before `ap_mpm_pod_signal'

/usr/local/src/httpd-2.0.55/include/mpm_common.h:199: warning: data definition has no type or storage class

/usr/local/src/httpd-2.0.55/include/mpm_common.h:207: syntax error before `ap_mpm_pod_killpg'

/usr/local/src/httpd-2.0.55/include/mpm_common.h:207: warning: data definition has no type or storage class

/usr/local/src/httpd-2.0.55/include/mpm_common.h:275: syntax error before `*'

In file included from unixd.c:26:

/usr/local/src/httpd-2.0.55/include/ap_mpm.h:82: syntax error before `ap_mpm_run'

/usr/local/src/httpd-2.0.55/include/ap_mpm.h:82: warning: data definition has no type or storage class

/usr/local/src/httpd-2.0.55/include/ap_mpm.h:90: syntax error before `ap_graceful_stop_signalled'

/usr/local/src/httpd-2.0.55/include/ap_mpm.h:90: warning: data definition has no type or storage class

/usr/local/src/httpd-2.0.55/include/ap_mpm.h:105: syntax error before `ap_os_create_privileged_process'

/usr/local/src/httpd-2.0.55/include/ap_mpm.h:112: warning: data definition has no type or storage class

/usr/local/src/httpd-2.0.55/include/ap_mpm.h:151: syntax error before `ap_mpm_query'

/usr/local/src/httpd-2.0.55/include/ap_mpm.h:151: warning: data definition has no type or storage class

unixd.c: In function `set_group_privs':

unixd.c:78: warning: passing arg 4 of `ap_log_error' makes pointer from integer without a cast

unixd.c:97: warning: passing arg 4 of `ap_log_error' makes pointer from integer without a cast

unixd.c:106: warning: passing arg 4 of `ap_log_error' makes pointer from integer without a cast

unixd.c: At top level:

unixd.c:115: syntax error before `unixd_setup_child'

unixd.c: In function `unixd_setup_child':

unixd.c:142: warning: passing arg 4 of `ap_log_error' makes pointer from integer without a cast

unixd.c: At top level:

unixd.c:162: syntax error before `unixd_set_user'

unixd.c: In function `unixd_set_user':

unixd.c:167: warning: return makes integer from pointer without a cast

unixd.c:182: warning: return makes integer from pointer without a cast

unixd.c: At top level:

unixd.c:189: syntax error before `unixd_set_group'

unixd.c: In function `unixd_set_group':

unixd.c:194: warning: return makes integer from pointer without a cast

unixd.c: At top level:

unixd.c:202: syntax error before `unixd_pre_config'

unixd.c:228: syntax error before `unixd_set_rlimit'

unixd.c: In function `unixd_set_rlimit':

unixd.c:238: warning: passing arg 1 of `apr_palloc' from incompatible pointer type

unixd.c:243: warning: passing arg 4 of `ap_log_error' makes pointer from integer without a cast

unixd.c:243: warning: passing arg 5 of `ap_log_error' from incompatible pointer type

unixd.c:257: warning: passing arg 5 of `ap_log_error' from incompatible pointer type

unixd.c:270: warning: passing arg 5 of `ap_log_error' from incompatible pointer type

unixd.c: At top level:

unixd.c:292: syntax error before `get_suexec_identity'

unixd.c:293: syntax error before `0'

unixd.c:308: syntax error before `if'

*** Error code 1

Stop in /usr/local/src/httpd-2.0.55/os/unix.

*** Error code 1

Stop in /usr/local/src/httpd-2.0.55/os/unix.

*** Error code 1

Stop in /usr/local/src/httpd-2.0.55/os.

*** Error code 1

Stop in /usr/local/src/httpd-2.0.55.

Ссылка на комментарий
Поделиться на другие сайты

Нет. Дело в том, что я понятия не имею как там все работает.

Например, куда и что устанавливается.

Знаю только, что создается директория которая указана в PREFIX и туда копируются основные файлы. А куда ещё они копируются, и где-то что-то прописывается - без понятия.

Как я сказал, там уже установлен 2-й Апач в директорию /usr/local/apache

При этом там ещё есть директория /usr/local/apache2.

Конечно, это странно, что в директории /usr/local/apache установлен работающий Apache2, а в директории /usr/local/apache2 лежит какой-то не работающий, но не я это ставил.

Когда я начал установку, я решил установить его в директорию /usr/local/apache2, по этому существующую директорию /usr/local/apache2 заранее переименовал в /usr/local/apache2_old.

При этом тот, что сейчас лежит в /usr/local/apache и работает, я во время установки (точнее - команды "make", т.к. "install" я вообще не запускал) не останавливал.

Может надо было остановить, или ещё что-то удалить?

Но вообще, судя по ошибкам, похоже на что-то совсем другое. Типа, битые файлы, или не тот компилятор?

На всякий скажу, что я качал wget-ом файл tar.gz и распаковывал командой "tar -xvzf filename" или "tar xvzf filename".

Т.е., битыми файлы не должны быть.

Ссылка на комментарий
Поделиться на другие сайты

  • 6 месяцев спустя...

не умеешь убить старое

собери тогда в новое ))

./configure --prefix=/usr/local/apache

а вобще смотри что есть

pkg_info | grep apache

потом то что ну нужно pkg_delete и пакет

Ссылка на комментарий
Поделиться на другие сайты

Присоединяйтесь к обсуждению

Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Вставить как обычный текст

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

Загрузка...
×
×
  • Создать...