rsync - remote connection error

Hi ,

We have installed rsync in two Solaris boxes, when we try to sync files from one machine to another.. it is giving the following error.

ld.so.1: rsync: fatal: libiconv.so.2: open failed: No such file or directory
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]

rsync is working locally.. but not with the remote client.

Any idea?

As far as I know libiconv is responsible for converting character encodings to/from unicode. Can you tell us how you have installed rsync on the systems? Did you compile from sources code or do a package installation?

The solution to this problem would be to add the specific package which provides this specific version of the shared library file if it's not already present in the system.

You can find out if the rsync program correctly loads the .so file by using this command:

ldd `which rsync`

Find if your system already has the .so file with the find command:

find / -xdev -type f -name "libiconv.so.2"

If it shows result, then you need to make sure if the path to that file is in LD_LIBRARY_PATH environment variable. If not, add the path and export the variable:

export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH