LINUX.ORG.RU

libxcb1-dev_1.12-1_amd64.deb 404 Not Found

 


0

1

Пересобираю nginx, получаю такую ошибку

.configure
...
checking for GD library ... not found
checking for GD library in /usr/local/ ... not found
checking for GD library in /usr/pkg/ ... not found
checking for GD library in /opt/local/ ... not found
ок, на сайте nginx говорят просто поставить apt install libgd-dev.
root@vds:~/nginx-1.10.3# apt install libgd-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libexpat1-dev libfontconfig1-dev libfreetype6-dev libice-dev libice6 libjbig-dev libjpeg-dev libjpeg62-turbo-dev liblzma-dev libpng-dev libpng-tools
  libpthread-stubs0-dev libsm-dev libsm6 libtiff5-dev libtiffxx5 libvpx-dev libvpx4 libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxpm-dev libxt-dev
  libxt6 pkg-config x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
Suggested packages:
  libice-doc liblzma-doc libsm-doc libxcb-doc libxt-doc
The following NEW packages will be installed:
  libexpat1-dev libfontconfig1-dev libfreetype6-dev libgd-dev libice-dev libice6 libjbig-dev libjpeg-dev libjpeg62-turbo-dev liblzma-dev libpng-dev libpng-tools
  libpthread-stubs0-dev libsm-dev libsm6 libtiff5-dev libtiffxx5 libvpx-dev libvpx4 libx11-dev libx11-doc libxau-dev libxcb1-dev libxdmcp-dev libxpm-dev libxt-dev
  libxt6 pkg-config x11-common x11proto-core-dev x11proto-input-dev x11proto-kb-dev xorg-sgml-doctools xtrans-dev
0 upgraded, 34 newly installed, 0 to remove and 0 not upgraded.
Need to get 169 kB/16.0 MB of archives.
After this operation, 44.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 http://httpredir.debian.org/debian stretch/main amd64 libxcb1-dev amd64 1.12-1
  404  Not Found [IP: 146.75.118.132 80]
E: Failed to fetch http://httpredir.debian.org/debian/pool/main/libx/libxcb/libxcb1-dev_1.12-1_amd64.deb  404  Not Found [IP: 146.75.118.132 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Как жить дальше?


Ответ на: комментарий от ox55ff

[code] root@vds:~/nginx-1.10.3# apt update Ign:1 http://security.debian.org stretch/updates InRelease Ign:2 http://httpredir.debian.org/debian stretch InRelease Err:3 http://security.debian.org stretch/updates Release 404 Not Found [IP: 146.75.118.132 80] Ign:4 http://httpredir.debian.org/debian stretch-updates InRelease Err:5 http://httpredir.debian.org/debian stretch Release 404 Not Found [IP: 146.75.122.132 80] Err:6 http://httpredir.debian.org/debian stretch-updates Release 404 Not Found [IP: 146.75.122.132 80] Reading package lists… Done E: The repository ‘http://security.debian.org stretch/updates Release’ does no longer have a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository ‘http://httpredir.debian.org/debian stretch Release’ does no longer have a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. E: The repository ‘http://httpredir.debian.org/debian stretch-updates Release’ does no longer have a Release file. N: Updating from such a repository can’t be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

[/code]

User01
() автор топика
Ответ на: комментарий от No

я сначала как обрадовался, а потом как обычно поймал проблему

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libgd-dev : Depends: libjpeg-dev
             Depends: libfreetype6-dev but it is not going to be installed
             Depends: libxpm-dev but it is not going to be installed
             Depends: libx11-dev but it is not going to be installed
             Depends: libxt-dev but it is not going to be installed
             Depends: libfontconfig-dev
             Depends: libtiff-dev
E: Unable to correct problems, you have held broken packages.

User01
() автор топика
Ответ на: комментарий от User01

Установлены какие-то пакеты из несовместимых репозиториев. Можно попробовать устанавливать по одному пакеты из зависимостей отмеченные как «but it is not going to be installed», например, apt-get install libxt-dev и смотреть причины по которым они не устанавливаются.

No
()
Ответ на: комментарий от No

походу не победить, беру любой а оно еще больше ошибок дает.

apt install libtiff-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libtiff5-dev' instead of 'libtiff-dev'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libtiff5-dev : Depends: libjpeg-dev
                Depends: liblzma-dev but it is not going to be installed
                Depends: libtiff5 (= 4.0.8-2+deb9u5) but 4.0.8-2+deb9u8 is to be installed
E: Unable to correct problems, you have held broken packages.

User01
() автор топика
Ответ на: комментарий от User01

Что печатает команда apt-cache policy libtiff5-dev?

Попробуй оставить в /etc/apt/sources.list только две строки:

deb http://archive.debian.org/debian stretch main contrib non-free
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free

и после apt-get update повторить установку.

No
()
Ответ на: комментарий от No

не все так прекрасно таки

Apr 29 19:32:10 vds.site systemd[1]: Starting A high performance web server and a reverse proxy server...
Apr 29 19:32:10 vds.site nginx[15132]: nginx: [emerg] module "/usr/share/nginx/modules/ngx_http_image_filter_module.so" is not binary compatible in /etc/nginx/module
Apr 29 19:32:10 vds.site nginx[15132]: nginx: configuration file /etc/nginx/nginx.conf test failed
Apr 29 19:32:10 vds.site systemd[1]: nginx.service: Control process exited, code=exited status=1
Apr 29 19:32:10 vds.site systemd[1]: Failed to start A high performance web server and a reverse proxy server.
Apr 29 19:32:10 vds.site systemd[1]: nginx.service: Unit entered failed state.
Apr 29 19:32:10 vds.site systemd[1]: nginx.service: Failed with result 'exit-code'.

User01
() автор топика
Ответ на: комментарий от User01

/usr/share/nginx/modules/ вот тут вернул модули обратно которые новые добавило. nginx запустился, но мною подключенные модули при компиляции пропали, такие как geoip2

User01
() автор топика
Ответ на: комментарий от User01

Ты менял что-то через apt в середине сборки nginx-а? Пересобери заново тогда.

Или ты nginx-у из дистра птыаешься сувать модуль, собранный другим nginx-ом? Так нельзя.

firkax ★★★★★
()
Последнее исправление: firkax (всего исправлений: 1)
Ответ на: комментарий от User01

все ок собирается, устанавливается и даже nginx не падает, но почему-то и модулей нет в новом собранном билде...

./configure --add-module=/root/testcookie-nginx-module/testcookie-nginx-module-master --add-module=/root/ngx_http_geoip2_module $(nginx -V)

checking for OS
 + Linux 4.9.0-19-amd64 x86_64
checking for C compiler ... found
 + using GNU C compiler
 + gcc version: 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) 
checking for gcc -pipe switch ... found
...
checking for getaddrinfo() ... found
configuring additional modules
adding module in /root/testcookie-nginx-module/testcookie-nginx-module-master
 + ngx_http_testcookie_access_module was configured
adding module in /root/ngx_http_geoip2_module
checking for MaxmindDB library ... found
 + ngx_geoip2_module was configured
checking for PCRE library ... found
...
checking for zlib library ... found
creating objs/Makefile

Configuration summary
  + using system PCRE library
  + OpenSSL library is not used
  + md5: using system crypto library
  + sha1: using system crypto library
  + using system zlib library

  nginx path prefix: "/usr/local/nginx"
  nginx binary file: "/usr/local/nginx/sbin/nginx"
  nginx modules path: "/usr/local/nginx/modules"
  nginx configuration prefix: "/usr/local/nginx/conf"
  nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
  nginx pid file: "/usr/local/nginx/logs/nginx.pid"
  nginx error log file: "/usr/local/nginx/logs/error.log"
  nginx http access log file: "/usr/local/nginx/logs/access.log"
  nginx http client request body temporary files: "client_body_temp"
  nginx http proxy temporary files: "proxy_temp"
  nginx http fastcgi temporary files: "fastcgi_temp"
  nginx http uwsgi temporary files: "uwsgi_temp"
  nginx http scgi temporary files: "scgi_temp"

make

make -f objs/Makefile
make[1]: Entering directory '/root/nginx-1.10.3'
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
	-o objs/src/core/nginx.o \
	src/core/nginx.c
...
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
	-o objs/src/http/modules/ngx_http_upstream_zone_module.o \
	src/http/modules/ngx_http_upstream_zone_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
	-o objs/addon/src/ngx_http_testcookie_access_module.o \
	/root/testcookie-nginx-module/testcookie-nginx-module-master/src/ngx_http_testcookie_access_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g   -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -I src/http -I src/http/modules \
	-o objs/addon/ngx_http_geoip2_module/ngx_http_geoip2_module.o \
	/root/ngx_http_geoip2_module/ngx_http_geoip2_module.c
cc -c -pipe  -O -W -Wall -Wpointer-arith -Wno-unused -Werror -g  -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs \
	-o objs/ngx_modules.o \
	objs/ngx_modules.c
cc -o objs/nginx \
objs/src/core/nginx.o \
objs/src/core/ngx_log.o \
objs/src/core/ngx_palloc.o \
...
objs/src/http/modules/ngx_http_scgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_hash_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/addon/src/ngx_http_testcookie_access_module.o \
objs/addon/ngx_http_geoip2_module/ngx_http_geoip2_module.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt -lmaxminddb -lpcre -lcrypto -lcrypto -lz \
-Wl,-E
sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
	-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
	-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
	-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
	< man/nginx.8 > objs/nginx.8
make[1]: Leaving directory '/root/nginx-1.10.3'

make install

make -f objs/Makefile install
make[1]: Entering directory '/root/nginx-1.10.3'
test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
test -d '/usr/local/nginx/sbin' \
	|| mkdir -p '/usr/local/nginx/sbin'
test ! -f '/usr/local/nginx/sbin/nginx' \
	|| mv '/usr/local/nginx/sbin/nginx' \
		'/usr/local/nginx/sbin/nginx.old'
cp objs/nginx '/usr/local/nginx/sbin/nginx'
test -d '/usr/local/nginx/conf' \
	|| mkdir -p '/usr/local/nginx/conf'
cp conf/koi-win '/usr/local/nginx/conf'
cp conf/koi-utf '/usr/local/nginx/conf'
cp conf/win-utf '/usr/local/nginx/conf'
test -f '/usr/local/nginx/conf/mime.types' \
	|| cp conf/mime.types '/usr/local/nginx/conf'
cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
test -f '/usr/local/nginx/conf/fastcgi_params' \
	|| cp conf/fastcgi_params '/usr/local/nginx/conf'
cp conf/fastcgi_params \
	'/usr/local/nginx/conf/fastcgi_params.default'
test -f '/usr/local/nginx/conf/fastcgi.conf' \
	|| cp conf/fastcgi.conf '/usr/local/nginx/conf'
cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
test -f '/usr/local/nginx/conf/uwsgi_params' \
	|| cp conf/uwsgi_params '/usr/local/nginx/conf'
cp conf/uwsgi_params \
	'/usr/local/nginx/conf/uwsgi_params.default'
test -f '/usr/local/nginx/conf/scgi_params' \
	|| cp conf/scgi_params '/usr/local/nginx/conf'
cp conf/scgi_params \
	'/usr/local/nginx/conf/scgi_params.default'
test -f '/usr/local/nginx/conf/nginx.conf' \
	|| cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
test -d '/usr/local/nginx/logs' \
	|| mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/logs' \
	|| mkdir -p '/usr/local/nginx/logs'
test -d '/usr/local/nginx/html' \
	|| cp -R html '/usr/local/nginx'
test -d '/usr/local/nginx/logs' \
	|| mkdir -p '/usr/local/nginx/logs'
make[1]: Leaving directory '/root/nginx-1.10.3'

nginx -V

nginx version: nginx/1.10.3
built with OpenSSL 1.1.0l  10 Sep 2019
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-8G38mz/nginx-1.10.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-dav-ext-module --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-echo --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-upstream-fair --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/ngx_http_substitutions_filter_module

User01
() автор топика
Ответ на: комментарий от LongLiveUbuntu

задача стоит поставить модули testcookie & geoip2. И вроде бы они как и ставятся, ошибок не вижу. Но по факту их нет

User01
() автор топика
Последнее исправление: User01 (всего исправлений: 1)
Ответ на: комментарий от Vsevolod-linuxoid

вывод этих команд. Но ошибок при компиляции нет же

root@vds:~/nginx-1.10.3# grep -v -e '^#' -e '^$' /etc/apt/sources.list
deb http://archive.debian.org/debian stretch main contrib non-free
deb http://archive.debian.org/debian-security/ stretch/updates main contrib non-free
root@vds:~/nginx-1.10.3# grep -vH -e '^#' -e '^$' /etc/apt/sources.list.d/*
grep: /etc/apt/sources.list.d/*: No such file or directory
root@vds:~/nginx-1.10.3#

User01
() автор топика
Последнее исправление: User01 (всего исправлений: 1)
Ответ на: комментарий от Vsevolod-linuxoid

заметил момент, что командой ниже configure проходит нормально, без ошибок но...

./configure --add-module=/root/testcookie-nginx-module/testcookie-nginx-module-master --add-module=/root/ngx_http_geoip2_module $(nginx -V)
не создает модули в папке modules а этой создает, но нужно вырезать некоторые модули которые дают ошибку. Но тогда не подымается модуль т.к без них скомпилировано, замкнутый круг...
./configure --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-8G38mz/nginx-1.10.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-dav-ext-module --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-echo --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-upstream-fair --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/ngx_http_substitutions_filter_module --add-module=/root/testcookie-nginx-module/testcookie-nginx-module-master --add-module=/root/ngx_http_geoip2_module

вот сама ошибка если таким методом конфигурировать

checking for openat(), fstatat() ... found
checking for getaddrinfo() ... found
configuring additional modules
adding module in /root/testcookie-nginx-module/testcookie-nginx-module-master
 + ngx_http_testcookie_access_module was configured
adding module in /root/ngx_http_geoip2_module
checking for MaxmindDB library ... found
 + ngx_geoip2_module was configured
configuring additional dynamic modules
adding module in /build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam
./configure: error: no /build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam/config was found
root@vds:~/nginx-1.10.3# apt-get install libnginx-mod-http-auth-pam
Reading package lists... Done
Building dependency tree
Reading state information... Done
libnginx-mod-http-auth-pam is already the newest version (1.10.3-1+deb9u7).
libnginx-mod-http-auth-pam set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

User01
() автор топика
Последнее исправление: User01 (всего исправлений: 1)
Ответ на: комментарий от User01

все ок собирается, устанавливается и даже nginx не падает, но почему-то и модулей нет в новом собранном билде...

cc -o objs/nginx \
objs/src/core/nginx.o \
objs/src/core/ngx_log.o \
objs/src/core/ngx_palloc.o \
...
objs/src/http/modules/ngx_http_scgi_module.o \
objs/src/http/modules/ngx_http_memcached_module.o \
objs/src/http/modules/ngx_http_empty_gif_module.o \
objs/src/http/modules/ngx_http_browser_module.o \
objs/src/http/modules/ngx_http_upstream_hash_module.o \
objs/src/http/modules/ngx_http_upstream_ip_hash_module.o \
objs/src/http/modules/ngx_http_upstream_least_conn_module.o \
objs/src/http/modules/ngx_http_upstream_keepalive_module.o \
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/addon/src/ngx_http_testcookie_access_module.o \
objs/addon/ngx_http_geoip2_module/ngx_http_geoip2_module.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt -lmaxminddb -lpcre -lcrypto -lcrypto -lz \
-Wl,-E

Вот же в логе написано что objs/nginx собран с твоими модулями. Где они не появляются?

firkax ★★★★★
()
Ответ на: комментарий от firkax

да, но nginx -V показывает что их нет. На другой vds к примеру все ок установилось но нам nginx 1.20 и показывает эти модули. Я выше все вводы выводы прикрепил

User01
() автор топика
Последнее исправление: User01 (всего исправлений: 1)
Ответ на: комментарий от User01

Не вижу где ты nginx -V прикрепил. И оно не показывает какие у тебя модули, оно показывает аргументы configure (среди них и про модули есть, но это именно копия ввода а не результат).

firkax ★★★★★
()
Ответ на: комментарий от User01
./configure --add-module=/root/testcookie-nginx-module/testcookie-nginx-module-master --add-module=/root/ngx_http_geoip2_module $(nginx -V)

Откуда ты взял эту команду?! Зачем?

Посмотри что nginx -V выдаёт и подумай как будет выглдяеть если ты это всунешь в командную строку configure.

У меня такое ощущение что ты методом тыка пытаешься что-то сделать, не вникая в смысл написанного.

firkax ★★★★★
()
Ответ на: комментарий от firkax

пробую в ручную

./configure --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-8G38mz/nginx-1.10.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-z,relro -Wl,-z,now' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-debug --with-pcre-jit --with-ipv6 --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_geoip_module=dynamic --with-http_gunzip_module --with-http_gzip_static_module --with-http_image_filter_module=dynamic --with-http_sub_module --with-http_xslt_module=dynamic --with-stream=dynamic --with-stream_ssl_module --with-mail=dynamic --with-mail_ssl_module --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-dav-ext-module --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-echo --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-upstream-fair --add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/ngx_http_substitutions_filter_module --add-module=/root/testcookie-nginx-module/testcookie-nginx-module-master --add-module=/root/ngx_http_geoip2_module
в ответ
checking for getaddrinfo() ... found
configuring additional modules
adding module in /root/testcookie-nginx-module/testcookie-nginx-module-master
 + ngx_http_testcookie_access_module was configured
adding module in /root/ngx_http_geoip2_module
checking for MaxmindDB library ... found
 + ngx_geoip2_module was configured
configuring additional dynamic modules
adding module in /build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam
./configure: error: no /build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam/config was found

User01
() автор топика
Ответ на: комментарий от User01

А откуда ты взял /build/nginx-8G38mz/nginx-1.10.3 ?

Ещё раз повторю - не надо бездумно копипастить строки из одного места в другое. Внимательно читай все параметры configure, думай зачем оно там, нужно ли оно тебе итд.

firkax ★★★★★
()
Ответ на: комментарий от User01

Конкретно в твоём случае:

  1. debug-prefix-map - не знаю что это, думаю оно не нужно
  2. пути к модулям - это кастомные (неофициальные) модули, которые добавлены дебиановскими мейнтейнерами, ты можешь либо тоже их добавить (если нужны), разумеется указав свой путь к ним, либо удалить если не нужны
  3. не знаю зачем ты собираешь 1.10.3 когда уже более новые версии есть, насколько мне известно конфиги (nginx.conf всмысле - конфиг конкретного веб-сервера) от старых nginx-ов можно без изменений использовать в новых, всё будет работать
firkax ★★★★★
()
Последнее исправление: firkax (всего исправлений: 1)
Ответ на: комментарий от firkax

/build/nginx-8G38mz/ я не знаю откуда оно это берет

adding module in /build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam ну его же можно убрать с configure?

User01
() автор топика
Последнее исправление: User01 (всего исправлений: 1)
Ответ на: комментарий от User01

Что значит не знаешь? Это ты его в configure прописал не глядя.

Можно или нельзя убрать я не знаю. Я ж не знаю как ты nginx используешь. Обычно он не нужен. То же самое и остальных модулей касается, я выше ответил.

firkax ★★★★★
()
Ответ на: комментарий от User01

Куда-то в /root/nginx-1.10.3. Какая разница? По отдельности их не надо оттуда брать.

make install их установит в

--modules-path=/usr/lib/nginx/modules

Но кстати это тоже чревато проблемами: в этой директории уже установлены модули nginx-а от пакетного менеджера, и make install их затрёт своими, это не особо хорошо.

firkax ★★★★★
()
Последнее исправление: firkax (всего исправлений: 1)
Ответ на: комментарий от User01

вобщем я вернулся на то, с чего начал. Проблема наверное из-за того что я удаляю –add-dynamic-module=/build/nginx-8G38mz/nginx-1.10.3/debian/modules/nginx-auth-pam

Вижу что такой директории нет, но где её взять…

Если не удалить то не пройдет ./configure а если удалить то пройдет но не запустятся модули

User01
() автор топика