Не видит пакет в контейнере Docker

Автор r.shaislamov, 05 июля 2024, 11:58:47

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

r.shaislamov

При входе в контейнер Docker я пытаюсь установить php8.2-ldap, но я получаю ошибку:

root@7fe59924d7d8:/var/www/html# apt install php8.2-ldap
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package php8.2-ldap is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php8.2-ldap' has no installation candidate

При вводе команды apt-cache search php8.2-ldap он ничего не находит хотя репозитории добавлены и в них есть этот пакет. Что мне делать?

dzhoser

Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

r.shaislamov

#2
Цитата: dzhoser от 05 июля 2024, 12:09:39docker-php-ext-install ldap
Это нужно в контейнере прописывать или в основной системе?

05 июля 2024, 12:24:57
Цитата: dzhoser от 05 июля 2024, 12:09:39docker-php-ext-install ldap
root@7fe59924d7d8:/var/www/html# docker-php-ext-install ldap
Configuring for:
PHP Api Version:         20220829
Zend Module Api No:      20220829
Zend Extension Api No:   420220829
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20220829
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for LDAP support... yes, shared
checking whether to build with LDAP Cyrus SASL support... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking size of long... 8
checking if we're at 64-bit platform... yes
checking for stdio.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for unistd.h... (cached) yes
checking size of long... (cached) 8
checking if we're at 64-bit platform... yes
configure: error: Cannot find ldap.h

dzhoser

Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков

r.shaislamov


dzhoser

Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков


dzhoser

Ubuntu->Linux mint->Astra Linux SE->Debian 12
Для новичков