Xnview installation
1. Xnview installation on Ubuntu 7.04 Feisty Fawn
Hints to install the image viewer Xnview on an Ubuntu Linux box.
For SuSE, please scroll down
Get the tarball
First go to http://perso.orange.fr/pierre.g/xnview/endownloadlinux.html and download XnView-x86-unknown-linux2.x-static-fc4.tgz
Unpack it with file roller which is called archive manager in the context menu of thunar or nautilus.
Prerequisites
XnView requires Linux 2.0.x, XFree86-3.2 and Lesstif v0.91 or openMotif v2.1.30
- libXxf86dga1, libXxf86misc1 and libXxf86vm1, listed in synaptic, are already installed here. Not sure if all 3 are necessary for xnview, but I suppose that libXxf86misc1 at least might be necessary.
- Lesstif2 version 1:0.94.4-2 is listed in synaptic (Ubuntu 7.04) and contains OSF/Motif 2.1
Important:
Create the directory /usr/lib/X11/app-defaults/ as root, if it does not yet exist, else the installation will not be successful.
Installation
- open a root terminal
- change the current directory to the folder where the tar ball has been unpacked
- type : sh install
xnview will be installed at /usr/local/bin/
Type in a terminal : xnview
A very small window opens in a corner. If you don't notice it, you may believe that xnview doesn't work.
In the menu select the browser and maximize or resize the program to your taste
Later in the menu tools/options under browser check the box "Launch browser at start"
Create a new object "xnview" in the main menu of gnome under "Applications/Graphics".
2. Xnview installation on SuSE 9.3
Hints to install the image viewer Xnview on a Suse Linux box, where you may get the message libstdc++.so.6 not found.
First go to http://perso.orange.fr/pierre.g/xnview/endownloadlinux.html and download XnView-static-fc4.i386.rpm.
Problem:
While installing the xnview RPM, Yast complains that it needs libstdc++.so.6(CXXABI_1.3)
Solution:
Installing a libstdc++ RPM.
In the case of the Suse Linux box involved the complete name of the RPM file that has been installed was:
libstdc++-mainline-4.02_20050516-1.1.i586.rpm
Then install the xnview RPM.
Problem:
Xnview seems to start, but the program is aborted in an early phase without anything coming up on the screen.
When launching xnview from the console, it complains:
xnview: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory.
Indeed the files
libstdc++.so.6 and
libstdc++.so.6.0.4 are present at /usr/lib/gcc/i586-suse-linux/4.0.2, but it seems that the system is not aware of it.
Solution:
Verify the fact that the system doesn't know where the needed library is. Open a (normal user) console and type:
cd /usr/bin
ldd xnview
That should tell you:
libstdc++.so.6 not found
Libstdc++.so.6 is not found because the dir
/usr/lib/gcc/i586-suse-linux/4.0.2 is not present in the file
/etc/ld.so.conf
Open
/etc/ld.so.conf with a text editor as
root and add it.
Then open a root console and type:
cd /sbin
ldconfig
Verify again in a normal user console with ldd xnview like above. It works! (at least it did work on my box).