LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-06-2005, 10:58 AM   #1
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Rep: Reputation: 39
installing non-Debian software (xnview)


Hi folks,

Am trying to install XnView, a neat image browser/viewer that I've been using in Windows for a couple years. Here's what I've done:

* download the v1.70 from http://download.xnview.com/XnView-static-fc4.i386.rpm
at http://www.xnview.com/

* apt-get install alien (oops, why didn't I have that?)

* alien -d XnView-static-fc4.i386.rpm

Then:
Code:
# dpkg -i xnview_1.70-2_i386.deb 
Selecting previously deselected package xnview.
(Reading database ... 118735 files and directories currently installed.)
Unpacking xnview (from xnview_1.70-2_i386.deb) ...
dpkg: error processing xnview_1.70-2_i386.deb (--install):
 trying to overwrite `/usr/share/man/man1/nview.1.gz', which is also in package nvi
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 xnview_1.70-2_i386.deb
Code:
ls -l /usr/share/man/man1/nview1.gz
lrwxrwxrwx  1 root root     8 2005-11-10 22:00 nview.1.gz -> nvi.1.gz
view is an editor, and apparently xnview's man page conflicts with it (poor package design of course, wonder if it gives conflicts with rpm distros).

What can I do?
 
Old 12-06-2005, 06:07 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
If you use the tar.gz package instead, then you can comment out/edit the line in the Install file, and if necessary rename the manual page, or append it to the Xnview manual. You miss out on the advantages of APT, but it still works. Or...
Code:
apt-get install gqview
Cheers,

Michael
 
Old 12-07-2005, 11:06 AM   #3
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by mjrich
If you use the tar.gz package instead, then you can comment out/edit the line in the Install file, and if necessary rename the manual page, or append it to the Xnview manual. You miss out on the advantages of APT, but it still works. Or...
Code:
apt-get install gqview
Cheers,

Michael
Well it worked, but there was a library conflict. Then I had to go through the script line by line and make sure I deleted all of the installed files by hand.

I tried moving the offending manpage entry (nview.1.gz is just a link to nvi.1.gz anyway), but the deb package still complains, since in its database the nview file is still there.

I tried out the gqview; it will do in the meantime, but it's nicer to have the app I'm used to and also use in Windows.

Thanks!
 
Old 12-28-2005, 08:07 AM   #4
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Original Poster
Rep: Reputation: 39
I've picked this back up. I got a response from a query at the xnview forum, and simply decided on the following:
Code:
# dpkg -i --force-overwrite xnview_1.70-2_i386.deb
(Reading database ... 124243 files and directories currently installed.)
Unpacking xnview (from xnview_1.70-2_i386.deb) ...
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite `/usr/share/man/man1/nview.1.gz', which is also in package nvi
dpkg - warning, overriding problem because --force enabled:
 trying to overwrite `/usr/bin/nview', which is also in package nvi
Setting up xnview (1.70-2) ...
According to the manpage for nview (shared with vi/ex/view), it is (was) essentially the same as running nvi read-only.

So now the package is installed, but unfortunately, I also have the following problem:
Quote:
$ xnview
xnview: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Here's what I have installed already, and what Sarge has available:
Code:
$ apt-cache policy libstdc++5
libstdc++5:
  Installed: 1:3.3.5-13
  Candidate: 1:3.3.5-13
  Version Table:
 *** 1:3.3.5-13 0
        500 http://debian.ethz.ch stable/main Packages
        100 /var/lib/dpkg/status

$ apt-cache policy libstdc++6
libstdc++6:
  Installed: (none)
  Candidate: 3.4.3-13
  Version Table:
     3.4.3-13 0
        500 http://debian.ethz.ch stable/main Packages
Now, I don't know much about C++ libraries, but I'm pretty sure I'd be asking for trouble if I updated the gcc base package, since it should be the one my kernel was compiled on (these should usually agree for source compilation, as I understand it):
Code:
# apt-cache show libstdc++6
Package: libstdc++6
...[snip]...
Source: gcc-3.4
Version: 3.4.3-13
Depends: gcc-3.4-base (>= 3.4.3-13), libc6 (>= 2.3.2.ds1-21), libgcc1 (>= 1:3.4.1-3)
...[snip]...
Indeed, a simulated install updates gcc:
Code:
# apt-get install libstdc++6 -s
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  gcc-3.4-base
The following NEW packages will be installed:
  gcc-3.4-base libstdc++6
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Inst gcc-3.4-base (3.4.3-13 Debian:3.1r1/stable)
Inst libstdc++6 (3.4.3-13 Debian:3.1r1/stable)
Conf gcc-3.4-base (3.4.3-13 Debian:3.1r1/stable)
Conf libstdc++6 (3.4.3-13 Debian:3.1r1/stable)
Here's the APT package info on xnview:
Quote:
# apt-cache show xnview
Package: xnview
Status: install ok installed
Priority: extra
Section: alien
Installed-Size: 5852
Maintainer: michapma
Architecture: i386
Version: 1.70-2
Depends: libc6 (>= 2.3.2.ds1-21), libgcc1 (>= 1:3.4.1-3), libx11-6 | xlibs (>> 4.1.0), libxext6 | xlibs (>> 4.1.0), libxp6 | xlibs (>> 4.1.0), libxt6 | xlibs (>> 4.1.0)
Description: XnView an easy graphics viewer / converter.
XnView is a program for viewing and converting your graphics files.
It supports more than 400 file formats (PNG, Jpeg, Targa, Alias, Softimage, Tdi, Gif,
Unix bitmap, windows, Iff, Rgb, Sun raster, Fits, Photo CD, Photoshop and
more).
It offers the possiblity to apply filters (blur, average, emboss...) and
effects (lens, waves, ...).
Picture browser, Slide Show, Thumbnail create and RAW/YUV import.
.
(Converted from a rpm package by alien version 8.52.)
So somehow libstdc++6 isn't a dependency, but the program doesn't run without it. Hmm...

I looked this problem up on the xnview forums too, and the (very unofficial) answer offered there doesn't seem to be very Debian oriented:
http://newsgroup.xnview.com/viewtopi...hlight=libstdc

As I see it, there are two solutions:
1) Upgrade to libstdc++6, dragging along a new version of gcc, probably causing trouble later on.
2) Use the older version of xnview (1.6.8.1) that is not linked against libstdc++6.

The second solution seems better, even though I'll lose any new functionality in version 1.70. What do you think?
 
Old 12-28-2005, 09:53 AM   #5
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Maybe installing the xnview package from debian-unofficial.org would have caused less trouble?

http://debian-unofficial.org/packages.html
 
Old 12-28-2005, 10:58 AM   #6
michapma
Member
 
Registered: Oct 2003
Location: Zürich
Distribution: Debian
Posts: 537

Original Poster
Rep: Reputation: 39
After you suggested it, I thought it would. I removed the aliened xnview 1.6.8 that I had installed, added the debian unofficial sources, and did apt-get update. Then I installed their version of xnview:
# apt-get install xnview-binary

Unfortunately, I get the same error as before:
Quote:
$ xnview
xnview: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
I'll leave the Debian Unofficial there, since I'd never actually tried it and it looks like it has some useful packages.
 
Old 12-29-2005, 07:48 PM   #7
coyopil
Member
 
Registered: Oct 2005
Location: Bergen, Norway
Distribution: 2005: Libranet 2.8.1 expanded with Debian Sarge 2012: Kanotix 64 bit, antiX 8.5, Crunchbang
Posts: 139

Rep: Reputation: 14
I did an apt-get libstdc++.so.6 but got another error:
stein@arcadia:~$ xnview
** XnView v1.70 Copyright 1991-2005 Pierre-E Gougelet (Sep 6 2005/15:28:24) **
Version for Linux x86/Motif (All rights reserved)
** This is freeware software (for non commercial use)

Type xnview -help, for more information
xnview: relocation error: xnview: symbol __sprintf_chk, version GLIBC_2.3.4 not defined in file libc.so.6 with link time reference

Maybe xnview can be compiled from source?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Debian after CentOS with software RAID arsham Linux - Distributions 0 11-07-2005 05:12 AM
Nforce 3 ultra software raid while installing debian Devrethman Linux - Hardware 2 08-27-2005 08:25 AM
Apt howto installing software for debian monkeymartin Debian 7 08-20-2003 05:18 AM
Xnview JC404 Linux - Software 1 07-03-2003 07:16 AM
Tutorial for installing various software on Debian woody Zingaro2002 Linux - Networking 2 06-04-2003 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration