Monday, 23 July 2012

xv on Ubuntu

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:

sudo bash
cd /tmp
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/rules 
for i in libxt-dev libc6-dev xlibs-dev libjpeg62-dev libtiff4-dev libpng12-dev libxt-dev; do apt-get install $i; done
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.


  1. 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.

  2. There's a 2007 version of the jumbo patches, that fix some security problems and provide more comprehensive coverage of the various file standards.


About this blog

Sort of a test blog... until it isn't