'sudo apt-get install xv' doesn't install xv on Ubuntu, you would need to build it.
Follow the steps as in here to build, you might need to do few more changes for tiff make errors which I encountered.
sudo bash
cd /tmp
wget ftp://ftp.trilon.com/pub/xv/xv-3.10a.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
for 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/
For Make errors like:
xvtiff.c:15:79: fatal error: tiffio.h: No such file or directory
compilation terminated.
and
/usr/bin/ld: cannot find -ltiff
collect2: ld returned 1 exit status
Add the xv extracted path to TIFFINC and TIFFLIB in Makefile: ( I had extracted to /tmp/xv-3.10a )
TIFFINC = -I$(TIFFDIR)/include -I/tmp/xv-3.10a/tiff
TIFFLIB = -L$(TIFFDIR)/lib -L/tmp/xv-3.10a/tiff -ltiff
PS: