Can't install ZNC properly with ICU #719

Closed
opened 2026-10-05 04:40:30 +02:00 by adam · 11 comments
Owner

I'm trying to add charset support to ZNC, and finally got it to install, but it won't run. My installation process is already complicated due to being on CentOS 6 and wanting modpython too. I usually install fine this way and have ZNC+modpython. But adding ICU into the mix isn't working.

My process:

scl enable devtoolset-1.1 bash

yum install icu libicu libicu-devel
wget http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-RHEL6-i386.tgz
mv icu*.tgz /
cd /
tar -xzvf icu*.tgz
rm -rf icu*.tgz

cd ~
wget http://znc.in/releases/znc-latest.tar.gz
tar -xzvf znc*.*gz
cd znc*
ldconfig
export LD_LIBRARY_PATH=/opt/python3/lib:/usr/local/lib
PKG_CONFIG_PATH=/opt/python3/lib/pkgconfig:/usr/local/lib/pkgconfig python_LIBS="-L/opt/python3/lib/ -lpython3.5m -lutil" ./configure --enable-python --disable-swig
make
make install
# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/opt/python3/lib
/usr/local/lib
#  sudo -u znc /usr/local/bin/znc
/usr/local/bin/znc: error while loading shared libraries: libicuuc.so.57: cannot open shared object file: No such file or directory

I had to use that ICU binary tar because ./configure wouldn't recognize icu until i got those from the icu website and extracted them into my system.

Why can't ZNC find libicuuc.so.57? Where is it looking for it? It's there in /usr/local/lib/

I'm trying to add `charset` support to ZNC, and finally got it to install, but it won't run. My installation process is already complicated due to being on CentOS 6 and wanting modpython too. I usually install fine this way and have ZNC+modpython. But adding ICU into the mix isn't working. My process: ``` scl enable devtoolset-1.1 bash yum install icu libicu libicu-devel wget http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-RHEL6-i386.tgz mv icu*.tgz / cd / tar -xzvf icu*.tgz rm -rf icu*.tgz cd ~ wget http://znc.in/releases/znc-latest.tar.gz tar -xzvf znc*.*gz cd znc* ldconfig export LD_LIBRARY_PATH=/opt/python3/lib:/usr/local/lib PKG_CONFIG_PATH=/opt/python3/lib/pkgconfig:/usr/local/lib/pkgconfig python_LIBS="-L/opt/python3/lib/ -lpython3.5m -lutil" ./configure --enable-python --disable-swig make make install ``` ``` # cat /etc/ld.so.conf include ld.so.conf.d/*.conf /opt/python3/lib /usr/local/lib ``` ``` # sudo -u znc /usr/local/bin/znc /usr/local/bin/znc: error while loading shared libraries: libicuuc.so.57: cannot open shared object file: No such file or directory ``` I had to use that ICU binary tar because ./configure wouldn't recognize icu until i got those from the icu website and extracted them into my system. Why can't ZNC find libicuuc.so.57? Where is it looking for it? It's there in /usr/local/lib/ <!-- github-sync-id:169731845 -->
adam closed this issue 2026-10-05 04:40:30 +02:00
Author
Owner

I had to use that ICU binary tar because ./configure wouldn't recognize icu until

Old versions of it didn't have the pkg-config files. ZNC relies on them to find ICU.

i got those from the icu website and extracted them into my system.

Offtopic, but I advise you to use checkinstall instead of extracting tars to /. That's easier to cleanup.

Check ldd /usr/local/lib/libicuuc.so.57, does it depend on anything not installed? If so, compile ICU from source.

Try strace znc.

> I had to use that ICU binary tar because ./configure wouldn't recognize icu until Old versions of it didn't have the pkg-config files. ZNC relies on them to find ICU. > i got those from the icu website and extracted them into my system. Offtopic, but I advise you to use checkinstall instead of extracting tars to `/`. That's easier to cleanup. Check `ldd /usr/local/lib/libicuuc.so.57`, does it depend on anything not installed? If so, compile ICU from source. Try `strace znc`. <!-- github-comment-id:238012667 -->
Author
Owner

thanks

# ldd /usr/local/lib/libicuuc.so.57
        linux-gate.so.1 =>  (0xb7721000)
        libicudata.so.57 => not found
        libpthread.so.0 => /lib/libpthread.so.0 (0xb7555000)
        libdl.so.2 => /lib/libdl.so.2 (0xb7550000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7465000)
        libm.so.6 => /lib/libm.so.6 (0xb743a000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb741c000)
        libc.so.6 => /lib/libc.so.6 (0xb7284000)
        /lib/ld-linux.so.2 (0xb7722000)

ill try to compile icu

thanks ``` # ldd /usr/local/lib/libicuuc.so.57 linux-gate.so.1 => (0xb7721000) libicudata.so.57 => not found libpthread.so.0 => /lib/libpthread.so.0 (0xb7555000) libdl.so.2 => /lib/libdl.so.2 (0xb7550000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7465000) libm.so.6 => /lib/libm.so.6 (0xb743a000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb741c000) libc.so.6 => /lib/libc.so.6 (0xb7284000) /lib/ld-linux.so.2 (0xb7722000) ``` ill try to compile icu <!-- github-comment-id:238015358 -->
Author
Owner

i compiled it from http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz
i can see that it added files to /usr/local/lib

ldd /usr/local/lib/libicuuc.so.57 still shows libicudata.so.57 => not found even though that file is there

i installed znc and still get ./znc: error while loading shared libraries: libicuuc.so.57: cannot open shared object file: No such file or directory

going to strace

i compiled it from http://download.icu-project.org/files/icu4c/57.1/icu4c-57_1-src.tgz i can see that it added files to /usr/local/lib `ldd /usr/local/lib/libicuuc.so.57` still shows `libicudata.so.57 => not found` even though that file is there i installed znc and still get `./znc: error while loading shared libraries: libicuuc.so.57: cannot open shared object file: No such file or directory` going to strace <!-- github-comment-id:238017853 -->
Author
Owner
# sudo -u znc strace ./znc
execve("./znc", ["./znc"], [/* 16 vars */]) = 0
brk(0)                                  = 0x9703000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7784000
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=45825, ...}) = 0
mmap2(NULL, 45825, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7778000
close(3)                                = 0
open("/lib/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|0755, st_size=17896, ...}) = 0
mmap2(NULL, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7773000
mmap2(0xb7776000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0xb7776000
close(3)                                = 0
open("/usr/lib/libssl.so.10", 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\360\362\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=424524, ...}) = 0
mmap2(NULL, 423320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb770b000
mmap2(0xb776c000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x61000) = 0xb776c000
close(3)                                = 0
open("/usr/lib/libcrypto.so.10", 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@\340\3\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1854040, ...}) = 0
mmap2(NULL, 1867512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7543000
mmap2(0xb76f1000, 94208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ae000) = 0xb76f1000
mmap2(0xb7708000, 12024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7708000
close(3)                                = 0
open("/lib/libz.so.1", 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\360\27\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=75384, ...}) = 0
mmap2(NULL, 78096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb752f000
mmap2(0xb7541000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0xb7541000
close(3)                                = 0
open("/lib/tls/i686/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/i686", 0xbfca6728)     = -1 ENOENT (No such file or directory)
open("/lib/tls/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls/sse2", 0xbfca6728)     = -1 ENOENT (No such file or directory)
open("/lib/tls/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/tls", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
open("/lib/i686/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686/sse2", 0xbfca6728)    = -1 ENOENT (No such file or directory)
open("/lib/i686/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/lib/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/lib/sse2", 0xbfca6728)         = -1 ENOENT (No such file or directory)
open("/lib/libicuuc.so.57", O_RDONLY)   = -1 ENOENT (No such file or directory)
stat64("/lib", {st_mode=S_IFDIR|0551, st_size=12288, ...}) = 0
open("/usr/lib/tls/i686/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/i686/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/i686", 0xbfca6728) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory)
open("/usr/lib/tls/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/tls", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
open("/usr/lib/i686/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory)
open("/usr/lib/i686/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/i686", 0xbfca6728)     = -1 ENOENT (No such file or directory)
open("/usr/lib/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib/sse2", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0
open("/usr/lib/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/usr/lib", {st_mode=S_IFDIR|0555, st_size=36864, ...}) = 0
writev(2, [{"./znc", 5}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libicuuc.so.57", 14}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10./znc: error while loading shared libraries: libicuuc.so.57: cannot open shared object file: No such file or directory
) = 119
exit_group(127)                         = ?
+++ exited with 127 +++
``` # sudo -u znc strace ./znc execve("./znc", ["./znc"], [/* 16 vars */]) = 0 brk(0) = 0x9703000 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7784000 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=45825, ...}) = 0 mmap2(NULL, 45825, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7778000 close(3) = 0 open("/lib/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|0755, st_size=17896, ...}) = 0 mmap2(NULL, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7773000 mmap2(0xb7776000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0xb7776000 close(3) = 0 open("/usr/lib/libssl.so.10", 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\360\362\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=424524, ...}) = 0 mmap2(NULL, 423320, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb770b000 mmap2(0xb776c000, 28672, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x61000) = 0xb776c000 close(3) = 0 open("/usr/lib/libcrypto.so.10", 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@\340\3\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=1854040, ...}) = 0 mmap2(NULL, 1867512, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7543000 mmap2(0xb76f1000, 94208, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ae000) = 0xb76f1000 mmap2(0xb7708000, 12024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7708000 close(3) = 0 open("/lib/libz.so.1", 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\360\27\0\0004\0\0\0"..., 512) = 512 fstat64(3, {st_mode=S_IFREG|0755, st_size=75384, ...}) = 0 mmap2(NULL, 78096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb752f000 mmap2(0xb7541000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x11000) = 0xb7541000 close(3) = 0 open("/lib/tls/i686/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/i686/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/lib/tls/i686/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/i686", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/lib/tls/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/lib/tls/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/tls", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0 open("/lib/i686/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/i686/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/lib/i686/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/i686", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 open("/lib/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/lib/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/lib", {st_mode=S_IFDIR|0551, st_size=12288, ...}) = 0 open("/usr/lib/tls/i686/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/tls/i686/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/i686/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/tls/i686", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/tls/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/usr/lib/tls/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/tls", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0 open("/usr/lib/i686/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/i686/sse2", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/usr/lib/i686/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/i686", 0xbfca6728) = -1 ENOENT (No such file or directory) open("/usr/lib/sse2/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib/sse2", {st_mode=S_IFDIR|0555, st_size=4096, ...}) = 0 open("/usr/lib/libicuuc.so.57", O_RDONLY) = -1 ENOENT (No such file or directory) stat64("/usr/lib", {st_mode=S_IFDIR|0555, st_size=36864, ...}) = 0 writev(2, [{"./znc", 5}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libicuuc.so.57", 14}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"No such file or directory", 25}, {"\n", 1}], 10./znc: error while loading shared libraries: libicuuc.so.57: cannot open shared object file: No such file or directory ) = 119 exit_group(127) = ? +++ exited with 127 +++ ``` <!-- github-comment-id:238018121 -->
Author
Owner

its looking for the files everywhere but /usr/local/bin i guess? lol

and /usr/lib/ only has the old versions

its looking for the files everywhere but /usr/local/bin i guess? lol and /usr/lib/ only has the old versions <!-- github-comment-id:238018170 -->
Author
Owner

sudo -u znc env LD_LIBRARY_PATH=/opt/python3/lib:/usr/local/lib /usr/local/bin/znc?

I wonder why /etc/ld.so.conf doesn't work... What's in /etc/ld.so.conf.d/*.conf?

`sudo -u znc env LD_LIBRARY_PATH=/opt/python3/lib:/usr/local/lib /usr/local/bin/znc`? I wonder why `/etc/ld.so.conf` doesn't work... What's in `/etc/ld.so.conf.d/*.conf`? <!-- github-comment-id:238018297 -->
Author
Owner
# cat /etc/ld.so.conf
include ld.so.conf.d/*.conf
/opt/python3/lib
/usr/local/lib
# cat /etc/ld.so.conf.d/*.conf
# This directive teaches ldconfig to search in nosegneg subdirectories
# and cache the DSOs there with extra bit 1 set in their hwcap match
# fields.  In Xen guest kernels, the vDSO tells the dynamic linker to
# search in nosegneg subdirectories and to match this extra hwcap bit
# in the ld.so.cache file.
hwcap 1 nosegneg
# This directive teaches ldconfig to search in nosegneg subdirectories
# and cache the DSOs there with extra bit 1 set in their hwcap match
# fields.  In Xen guest kernels, the vDSO tells the dynamic linker to
# search in nosegneg subdirectories and to match this extra hwcap bit
# in the ld.so.cache file.
hwcap 1 nosegneg
# This directive teaches ldconfig to search in nosegneg subdirectories
# and cache the DSOs there with extra bit 1 set in their hwcap match
# fields.  In Xen guest kernels, the vDSO tells the dynamic linker to
# search in nosegneg subdirectories and to match this extra hwcap bit
# in the ld.so.cache file.
hwcap 1 nosegneg
# This directive teaches ldconfig to search in nosegneg subdirectories
# and cache the DSOs there with extra bit 1 set in their hwcap match
# fields.  In Xen guest kernels, the vDSO tells the dynamic linker to
# search in nosegneg subdirectories and to match this extra hwcap bit
# in the ld.so.cache file.
hwcap 1 nosegneg
# This directive teaches ldconfig to search in nosegneg subdirectories
# and cache the DSOs there with extra bit 1 set in their hwcap match
# fields.  In Xen guest kernels, the vDSO tells the dynamic linker to
# search in nosegneg subdirectories and to match this extra hwcap bit
# in the ld.so.cache file.
hwcap 1 nosegneg
/usr/lib/mysql
/usr/lib/mysql
/usr/lib/tcl8.5
/usr/local/lib
``` # cat /etc/ld.so.conf include ld.so.conf.d/*.conf /opt/python3/lib /usr/local/lib # cat /etc/ld.so.conf.d/*.conf # This directive teaches ldconfig to search in nosegneg subdirectories # and cache the DSOs there with extra bit 1 set in their hwcap match # fields. In Xen guest kernels, the vDSO tells the dynamic linker to # search in nosegneg subdirectories and to match this extra hwcap bit # in the ld.so.cache file. hwcap 1 nosegneg # This directive teaches ldconfig to search in nosegneg subdirectories # and cache the DSOs there with extra bit 1 set in their hwcap match # fields. In Xen guest kernels, the vDSO tells the dynamic linker to # search in nosegneg subdirectories and to match this extra hwcap bit # in the ld.so.cache file. hwcap 1 nosegneg # This directive teaches ldconfig to search in nosegneg subdirectories # and cache the DSOs there with extra bit 1 set in their hwcap match # fields. In Xen guest kernels, the vDSO tells the dynamic linker to # search in nosegneg subdirectories and to match this extra hwcap bit # in the ld.so.cache file. hwcap 1 nosegneg # This directive teaches ldconfig to search in nosegneg subdirectories # and cache the DSOs there with extra bit 1 set in their hwcap match # fields. In Xen guest kernels, the vDSO tells the dynamic linker to # search in nosegneg subdirectories and to match this extra hwcap bit # in the ld.so.cache file. hwcap 1 nosegneg # This directive teaches ldconfig to search in nosegneg subdirectories # and cache the DSOs there with extra bit 1 set in their hwcap match # fields. In Xen guest kernels, the vDSO tells the dynamic linker to # search in nosegneg subdirectories and to match this extra hwcap bit # in the ld.so.cache file. hwcap 1 nosegneg /usr/lib/mysql /usr/lib/mysql /usr/lib/tcl8.5 /usr/local/lib ``` <!-- github-comment-id:238018357 -->
Author
Owner

adding the env LD_LIBRARY_PATH=/opt/python3/lib:/usr/local/lib before znc works. is there a better long term solution though? somethings messing up during install it seems

adding the `env LD_LIBRARY_PATH=/opt/python3/lib:/usr/local/lib` before znc works. is there a better long term solution though? somethings messing up during install it seems <!-- github-comment-id:238018395 -->
Author
Owner
# export LD_LIBRARY_PATH=/opt/python3/lib:/usr/local/lib
# sudo -u znc ./znc
./znc: error while loading shared libraries: libicuuc.so.57: cannot open shared object file: No such file or directory

this doesnt help with running it. only env before the command does. idgi

``` # export LD_LIBRARY_PATH=/opt/python3/lib:/usr/local/lib # sudo -u znc ./znc ./znc: error while loading shared libraries: libicuuc.so.57: cannot open shared object file: No such file or directory ``` this doesnt help with running it. only env before the command does. idgi <!-- github-comment-id:238018466 -->
Author
Owner

Yes, there is.
The best long-term solution is to upgrade your OS :-)
The second long-term solution is to find out what's up with /etc/ld.so.conf. If you find that out, I'd be curious to see.

sudo cleans environment for security reasons, that's why env needs to be run by sudo.

Yes, there is. The best long-term solution is to upgrade your OS :-) The second long-term solution is to find out what's up with `/etc/ld.so.conf`. If you find that out, I'd be curious to see. sudo cleans environment for security reasons, that's why env needs to be run by sudo. <!-- github-comment-id:238018509 -->
Author
Owner

typing ldconfig fixed it, it seems... i hope that persists

typing `ldconfig` fixed it, it seems... i hope that persists <!-- github-comment-id:238018575 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#719