LINUX.ORG.RU
ФорумAdmin

Не запускается Asterisk error while loading shared libraries: libcap.so.1

 ,


0

1

Добрый день. Помогите, перестал стартовать астериск. При запуске выходит сообщение:

/usr/local/asterisk/sbin/asterisk: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
Он не видит libcap? Пробовал установить данный пакет, говорит «Не удалось найти пакет libcap». Подскажите, что мне делать. За ранее спс...

пакет скорее всего libcap-ng называется

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

libcap-ng не нашел такого пакета, установил libcap-ng-dev. Но нет результата. libcap.so.1 так же недоступен...

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

Этот пакет есть. Удалил его, заново установил, результата нет...

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

смотри чего есть в usr/lib возможно самостоятельно ссылки сделать придется, вот как у меня:

$ ls /usr/lib/libpcap*
/usr/lib/libpcap.so  /usr/lib/libpcap.so.1  /usr/lib/libpcap.so.1.6.2

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

ищи более новый пакет, твоя версия слишком старая.

irton ★★★★★ ()

Астериск жеж самосборный? Тогда пересобери его.

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

Так все-таки, libcap или libpcap? Это две разные быблиотеки.
Если хочешь поковыряться, делаешь:

$ man strace
$ strace asterisk
Читаешь простыню, ищещь, на каком файле оно спотыкается, потом через apt-file (или что там у тебя) ищешь пакет.

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

Точно. Пакет именно libcap.

# ls /usr/lib/libcap*
/usr/lib/libcap-ng.so.0  /usr/lib/libcap-ng.so.0.0.0[/bash]
Strace вывод
# strace asterisk
execve("/usr/sbin/asterisk", ["asterisk"], [/* 19 vars */]) = 0
brk(0)                                  = 0x889a000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7804000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25583, ...}) = 0
mmap2(NULL, 25583, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb77fd000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libdl.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\n\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9736, ...}) = 0
mmap2(NULL, 12408, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb77f9000
mmap2(0xb77fb000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1) = 0xb77fb000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/sse2/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/sse2/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/sse2/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/sse2", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", 0xbfe5fcc4)     = -1 ENOENT (No such file or directory)
open("/lib/tls/sse2/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/lib/tls/sse2/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2", 0xbfe5fcc4)     = -1 ENOENT (No such file or directory)
open("/lib/tls/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/cmov", 0xbfe5fcc4)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libcap.so.1", O_RDONLY)  = -1 ENOENT (No such file or directory)
stat64("/lib/tls", 0xbfe5fcc4)          = -1 ENOENT (No such file or directory)
open("/lib/i686/sse2/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/lib/i686/sse2/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2", 0xbfe5fcc4)    = -1 ENOENT (No such file or directory)
open("/lib/i686/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/cmov", {st_mode=S_IFDIR|0755, st_size=1584, ...}) = 0
open("/lib/i686/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", {st_mode=S_IFDIR|0755, st_size=72, ...}) = 0
open("/lib/sse2/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2/cmov", 0xbfe5fcc4)    = -1 ENOENT (No such file or directory)
open("/lib/sse2/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbfe5fcc4)         = -1 ENOENT (No such file or directory)
open("/lib/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/cmov", 0xbfe5fcc4)         = -1 ENOENT (No such file or directory)
open("/lib/libcap.so.1", O_RDONLY)      = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0755, st_size=4832, ...}) = 0
open("/usr/lib/tls/i686/sse2/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/sse2/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/sse2/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/sse2", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/sse2/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/sse2/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/sse2/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/sse2", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", 0xbfe5fcc4)      = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/sse2/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/sse2/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/sse2/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/sse2", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/cmov", {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0
open("/usr/lib/i686/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", {st_mode=S_IFDIR|0755, st_size=72, ...}) = 0
open("/usr/lib/sse2/cmov/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/sse2/cmov", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
....................
open("/usr/lib/i486-linux-gnu/libcap.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i486-linux-gnu", 0xbfe5fcc4) = -1 ENOENT (No such file or directory)
writev(2, [{"asterisk", 8}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libcap.so.1", 11}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10asterisk: error while loading shared libraries: libcap.so.1: cannot open shared object file: No such file or directory
) = 119
exit_group(127)                         = ?
Жесть, проще видимо и правда пересобрать астериска.

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

-dev тебе не нужен, он сожержит заголовочные и прочие файлы, предназначенные для сборки из исходников программ, которым нужна эта библиотека.

yars068 ★★★★ ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.