Helpful Information
 
 
Category: Solutions
Problems with rsync install

I tried installing rsync-2.6.8 using the instructions from Matt Domsch's site (http://www.domsch.com/westhost/) and I got this errors durring make and durring make install (duh!)

Should I just try to install gnomedia's binary instead? I asume I need to hunt down and delete all the files from my first install attempt.... No?

Shouldn't this stuff just be installed in the first place? (grumble... grumble)

Thanks

Make error:
gcc -g -O2 -DHAVE_CONFIG_H -Wall -W -I./popt -o rsync rsync.o generator.o receiver.o cleanup.o sender.o exclude.o util.o main.o checksum.o match.o syscall.o log.o backup.o options.o flist.o io.o compat.o hlink.o token.o uidlist.o socket.o fileio.o batch.o clientname.o chmod.o progress.o pipe.o params.o loadparm.o clientserver.o access.o connection.o authenticate.o lib/wildmatch.o lib/compat.o lib/snprintf.o lib/mdfour.o lib/permstring.o lib/pool_alloc.o zlib/deflate.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o zlib/zutil.o zlib/adler32.o zlib/compress.o zlib/crc32.o popt/findme.o popt/popt.o popt/poptconfig.o popt/popthelp.o popt/poptparse.o -liconv
syscall.o: In function `do_mkstemp':
/home/[sitename]/rsync-2.6.8/syscall.c:215: the use of `mktemp' is dangerous, better use `mkstemp'

being the newbie that I am... I went ahead and did a make install and got an additional error:
Make Install error
mkdir -p /usr/local/bin
/usr/bin/install -c -m 755 rsync /usr/local/bin
mkdir -p /usr/local/man/man1
mkdir -p /usr/local/man/man5
mkdir: cannot create directory `/usr/local/man/man5': Permission denied
make: [install] Error 1 (ignored)
/usr/bin/install -c -m 644 ./rsync.1 /usr/local/man/man1
/usr/bin/install: cannot create regular file `/usr/local/man/man1/rsync.1': Permission denied
make: *** [install] Error 1

So now when I try to invoke rsync I get this:
rsync: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

In the compile, it looks like what you have labeled as an error is just a warning. One of the developers of rsync needs to fix that. Don't quote me on this but, I think you can safely ignore it.

As for the "make install" error, I install nothing in /usr/local just for that reason. I would suggest that you don't set your --prefix to /usr/local. I always set mine to /software. Then you don't get the permission denied errors when doing a "make install" because /software is not a system directory. In order to do this, you'll have to start over.

First, I would do a "make uninstall". That should remove all the files that "make install" created. Then I would remove your compiled rsync directory and then start over. This time, set your --prefix to /software.

Oh yea, the iconv error. I'm not sure about that at the moment. I'm going to have to look that one up.

Just copy the file from ftp.gnomedia.com:
$ wget ftp://ftp.gnomedia.com/rsync-2.6.3-bin.tgz

HTH










privacy (GDPR)