gonzalo / gphoto2-updater

Gphoto2 compiler and installer script. This script was initially created for Raspbian and Raspberry Pi but it is also tested for Ubuntu and Debian Jessie & Wheezy.
http://github.com/gonzalo/gphoto2-updater
292 stars 72 forks source link

Always get version 2.5.12 of libphoto2 #70

Closed Seeelefant closed 4 years ago

Seeelefant commented 5 years ago

Dear gonzalo, I try to use your ghoto2-updater on a Raspberry Pi 3B, but with whatever option I run your script I always get

pi@raspberrypi:~ $ gphoto2 --version
gphoto2 2.5.20.1

Copyright (C) 2000-2019 Lutz Müller und andere

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

Diese Version von gphoto2 benutzt die folgenden Softwareversionen und Optionen:
gphoto2         2.5.20.1       gcc, popt(m), exif, no cdk, no aa, no jpeg, no readline
libgphoto2      2.5.12         all camlibs, gcc, ltdl, EXIF
libgphoto2_port 0.12.0         gcc, ltdl, USB, serial without locking
pi@raspberrypi:~ $ 

For my camera I need 2.5.21.1 or later libgphoto2 .

Please advice --Seeelefant

gonzalo commented 5 years ago

Probably relates to #69 Tried the script and got version 2.5.15

Your issue is probably because you have another version of gphoto2 installed (ex. from apt). This script used to run apt-get remove gphoto2 libgphoto2*, but does not anymore because it caused the removal of important packages for some users. You can try and use this command to fix your issues, but just check to make sure it doesn't remove something like ubuntu-desktop. It will ask for a confirmation first before doing anything.

Seeelefant commented 5 years ago

Dear gonzalo, now I found that Raspbian comes with libphoto2 in the /usr/lib/arm-linux-gnueabihf/ directory, so building ghoto2 from sources with --libdir= /usr/lib/arm-linux-gnueabihf/ fixes this problem. Maybe you can incorperate this in your update script. Best --Seeelefant

unix0r commented 5 years ago

Uninstalling libgphoto2 is another option. sudo apt purge libgphoto2 -y

nadre commented 5 years ago

When I try to purge libgphoto2 on my raspy I get an 'Unable to locate package' error. Is there any other way to uninstall?

Heinnn commented 5 years ago

Dear gonzalo, now I found that Raspbian comes with libphoto2 in the /usr/lib/arm-linux-gnueabihf/ directory, so building ghoto2 from sources with --libdir= /usr/lib/arm-linux-gnueabihf/ fixes this problem. Maybe you can incorperate this in your update script. Best --Seeelefant

Hi Seeelefant

I still stuck in the libgphoto2 2.5.12 as your problem. Can you tell me the step to solve this thing? I need to update to 2.5.22

Thanks

Seeelefant commented 5 years ago

Hi Heinnn, you have to build libphoto2 as described there from the sources with the option --libdir= /usr/lib/arm-linux-gnueabihf/ Best --Seeelefant

gonzalo commented 5 years ago

Sorry for being unavailable to keep this project properly maintained latelly. I hope to have some time in a close future.

tobiasschuerg commented 5 years ago

Created a PR which is working on my Raspberry 3.