Today, an rsync of the source code package is installed, and an error is reported during startup.
#/Usr/local/rsyncd/bin/rsync -- help/usr/local/rsyncd/bin/rsync: Error while loading shared libraries: libiconv. so.2: cannot open shared object file: no such file or directory
The shared library file libiconv. so.2 is not found. Run LDD to check whether the file is found.
# LDD/usr/local/rsyncd/bin/rsync libpopt. so.0 =>/usr/lib64/libpopt. so.0 (0x0000003f7ba00000) libiconv. so.2 => not found libc. so.6 =>/lib64/libc. so.6 (0x0000003f77200000)/lib64/ld-linux-x86-64.so.2 (0x0000003f76e00000)
Check the directory in which the libiconv. so.2 file is located.
# Whereis libiconv. so.2libiconv. So:/usr/local/lib/libiconv. So/usr/local/lib/libiconv. so.2
Add '/usr/local/lib/' to the dynamic link library path.
# Echo "/usr/local/lib/"> VI/etc/lD. So. conf
Update the new library file.
# Ldconfig