You are not logged in.

#1 2013-02-25 19:48:32

shaurz
Member
Registered: 2004-02-02
Posts: 358

xsane fails to start (libgphoto2.so.2 not found)

xsane is failing to start with the following error:

$xsane
xsane: error while loading shared libraries: libgphoto2.so.2: cannot open shared object file: No such file or directory
$ ldd /usr/bin/xsane | grep "not found"
        libgphoto2.so.2 => not found
        libgphoto2_port.so.0 => not found

I have libgphoto2 installed. There is a /usr/lib/libgphoto2.so and /usr/lib/libgphoto2.so.6. I guess the xsane package just needs rebuilding to link to the newer libgphoto2.

For the moment I have temporarily fixed it with a symlink:

$ sudo ln -s /usr/lib/libgphoto2_port.so /usr/lib/libgphoto2_port.so.2
$ sudo ln -s /usr/lib/libgphoto2_port.so.10.0.0 /usr/lib/libgphoto2_port.so.0

And to pre-empt the moderators, yes I did search the forum but I haven't seen this reported elsewhere. I apologise in advance if I've created a duplicate post. It's not my fault the forum's search facility is rubbish.

Offline

#2 2013-02-25 19:59:41

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: xsane fails to start (libgphoto2.so.2 not found)

What's your xsane version? I'm running up-to-date version here (0.998-2) and below is the output of ldd.

$ ldd /usr/bin/xsane|grep photo
	libgphoto2.so.6 => /usr/lib/libgphoto2.so.6 (0x00007f3f19b7b000)
	libgphoto2_port.so.10 => /usr/lib/libgphoto2_port.so.10 (0x00007f3f19971000)

Time for pacman -S xsane, maybe?

Offline

#3 2013-02-25 20:15:45

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: xsane fails to start (libgphoto2.so.2 not found)

I have the same version according to pacman (0.998-2). I have already tried reinstalling it. I've cleared the pacman cache, pacman -Sy and installed again, still linked to so.2.

I should add that I am not using the testing repo. This is on x86-64.

Last edited by shaurz (2013-02-25 20:17:06)

Offline

#4 2013-02-25 20:33:07

samuvuo
Member
From: Finland
Registered: 2011-02-20
Posts: 84

Re: xsane fails to start (libgphoto2.so.2 not found)

Straight up x86_64 here too (no testing). Forgot - these are up-to-date as well (from extra) - you must have tried to re-install them as well?

libgphoto2 2.5.0-1
gphoto2 2.5.0-1

Offline

#5 2013-02-25 20:37:12

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: xsane fails to start (libgphoto2.so.2 not found)

Yes I have the same versions of these packages too and have reinstalled them.

Offline

#6 2013-02-25 23:18:33

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: xsane fails to start (libgphoto2.so.2 not found)

I've found the problem. For some reason I had sane-git installed. I can't remember why I installed it, but I've replaced it with the regular sane package and all is OK.

Offline

Board footer

Powered by FluxBB