Thu 24 Jan 2008
I just noticed that re-bundling in EC2 instance is not working. Google told me that it is due to the incompatibility between latest rsync and relatively old kernel used by EC2 (2.6.16).
In the thread about this issue, 5 possible workarounds are presented. However, none of them are easy under gentoo without messing up with ebuild/emerge. I found another way, and you don’t need to regenerate the configure file for rsync at all, all you need is to comment the following line in the config.h file (which is generated after you run the configure script):
#define HAVE_LUTIMES 1
then make and make install, all should be fine now.
RSS feed for comments on this post. TrackBack this post
February 2nd, 2009 at 2:30 am
Hi there,
I wonder if you would be able to post a little more detail as regards this fix as I have not been able to replicate your success. When I re-installed rysnc, I did not / was not prompted to run a config script and I cannot find where/how to run it, so I cannot find the config.h file to comment out the lutimes line!!
Many thanks in advance,
Jack
February 1st, 2011 at 10:53 pm
For anyone else needing more instructions:
* get source from http://rsync.samba.org/ftp/rsync/ – currently rsync-3.0.7.tar.gz
* sftp or scp this file to your amazon instance and extract it (gunzip, tar -xvf)
* you’ll need root access at some point
* go into the extracted folder rsync-3.0.7 and do
configure –prefix=/mydir
mydir being wherever you want to install rsync.
* edit the file config.h and comment the line mentioned by the OP, ie. comment
#define HAVE_LUTIMES 1
* do ‘make’
* do ‘make install’
* look in /mydir/bin : you should see the executable ‘rsync’ here.
* save a copy of the rsync that came with your instance, just in case :
cp /usr/bin/rsync /usr/bin/rsync.original
(use ‘which rsync’ if your old rsync is not in /usr/bin)
* now copy your new rsync :
cp /mydir/rsync /usr/bin
or
ln -s /mydir/rsync /usr/bin/rsync
* done! Time to bundle your image. The instance (Fedora 8 small linux in my case) now bundles without any errors.
(And by the way : EBS backed instances are much easier to save!)