I started out in Linux using Slackware, which is why I like xv and feh.
If you happen to be on ubuntu you will find that
apt-get install xv
does not help you. I found this page that explained how to install xv on ubuntu, but it no longer works, (almost but not quite.) I hacked about until it worked:
If you happen to be on ubuntu you will find that
apt-get install xv
does not help you. I found this page that explained how to install xv on ubuntu, but it no longer works, (almost but not quite.) I hacked about until it worked:
sudo bash cd /tmp
wget ftp://ftp.trilon.com/pub/xv/xv-3.10a.tar.gz
#wget http://bok.fas.harvard.edu/debian/xv/xv-3.10a-jumbo20050501-1.diff.gz
#wget http://prdownloads.sourceforge.net/png-mng/xv-3.10a-jumbo-patches-20050501.tar.gz wget http://www.ulich.org/hints/resources/xv-3.10a-jumbo20050501-1.diff.gz wget http://www.ulich.org/hints/resources/xv-3.10a-jumbo-patches-20050501.tar.gz
tar xvzf xv-3.10a.tar.gz tar xvzf xv-3.10a-jumbo-patches-20050501.tar.gz gzip -d xv-3.10a-jumbo20050501-1.diff.gz cd xv-3.10a patch -p1 < ../xv-3.10a-jumbo-fix-patch-20050410.txt patch -p1 < ../xv-3.10a-jumbo-enh-patch-20050501.txt patch -p1 < ../xv-3.10a-jumbo20050501-1.diff#chmod 755 debian/rulesfor i in libxt-dev libc6-dev xlibs-dev libjpeg62-dev libtiff4-dev libpng12-dev libxt-dev; do apt-get install $i; done
make
cp xv /usr/local/bin/
and then looked at the URL that I had got the new patch from and found that they had already solved the problem, and they aren't the only ones.
I hope to embed the two patch files as base64 encoded links.
I was able to build xv 3.10 on my Ubuntu-12.04 (gcc 4.6.3) system without applying those patches. All it took was one change: commenting out "extern char *sys_errlist[];" on line 119 of xv.h.
ReplyDeletethanks alex
ReplyDeleteThere's a 2007 version of the jumbo patches, that fix some security problems and provide more comprehensive coverage of the various file standards.
ReplyDelete