Attempting to install libgphoto2: dependencies problem
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Attempting to install libgphoto2: dependencies problem
Hello,
I recently bought a digital camera (Sea&Sea DX-2G)
and attempted installing "libgphoto2" library to be
able to download the photos from the camera.
I downloaded the package:
libgphoto2-2.4.10.1.tar.gz
unpacked it and run "./configure". But it failed with
the following error:
Code:
.
.
.
(cached) (cached) checking how to hardcode library paths into programs... immediate
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking that we can compile and link with libltdl... no
configure: error: cannot compile and link against libltdl
libgphoto2 requires libltdl (the libtool dl* library),
but cannot compile and link against it.
Aborting.
I checked if I have the required package installed:
<root@localhost.localdomain>.../download>rpm -ivh libtool-ltdl-2.2.6-11.fc11.x86_64.rpm --nosignature
Preparing... ########################################### [100%]
package libtool-ltdl-2.2.6-11.fc11.3.x86_64 (which is newer than libtool-ltdl-2.2.6-11.fc11.x86_64) is already installed
package libtool-ltdl-2.2.6-11.fc11.3.i586 (which is newer than libtool-ltdl-2.2.6-11.fc11.x86_64) is already installed
file /usr/lib64/libltdl.so.7 from install of libtool-ltdl-2.2.6-11.fc11.x86_64 conflicts with file from package libtool-ltdl-2.2.6-11.fc11.3.x86_64
Did I attempted to install a wrong package to solve
the dependency problem?
About 'rpm -ivh' .. ( Please read 'man rpm'.)
-ivh is only to be used, when no version is installed,
or if you want two versions at the same time.
The standard command used by yum + the 'Package Manager'
is : # rpm -Uvh.
......
About 'rpm -ivh' .. ( Please read 'man rpm'.)
-ivh is only to be used, when no version is installed,
or if you want two versions at the same time.
The standard command used by yum + the 'Package Manager'
is : # rpm -Uvh.
......
which led to more erroneous steps.
Now I installed it and compiled "libgphoto2".
Although I can see the name of my camera
in the list when I use "gphoto2" and I see a newly
added port
ptpip: PTP/IP Connection
the camera still flashing with "connecting to PC"
and I can't autodetect it not list any directory
nor folder on it. Well, some more to dig...
Changed direction and stumbled on another problem:
after having no success with "gphoto2" I attempted
to download and install "gtkam-0.1.17" but the
"configure" failed with:
Code:
.
.
.
checking libgphoto2 cpp flags... "-I/usr/local/include/gphoto2"
checking for gp_port_info_get_name... no
checking for GTK... yes
checking for BONOBO... yes
checking for GNOME... yes
checking for libexif to use... autodetect
checking for LIBEXIF... no
checking libexif config program... none
checking for none... no
configure: error:
PKG_CONFIG_PATH=
LIBEXIF_LIBS=
LIBEXIF_CFLAGS=
* Fatal: GTK frontend for libgphoto2 requires libexif >= 0.3.2 to build.
*
* Possible solutions:
* - set PKG_CONFIG_PATH to adequate value
* - call configure with LIBEXIF_LIBS=.. and LIBEXIF_CFLAGS=..
* - call configure with one of the --with-libexif parameters
* - get libexif and install it
Checking if I have the "libexif" and of what version:
I see that it exists and its version is higher than the one
required so it apparently not the reason for the failure.
None of the env. vars are defined.
I attempted setting "LIBEXIF_LIBS" and "LIBEXIF_CFLAGS"
to ".." but the same failure remained. What value should
the "PKG_CONFIG_PATH" have (if any)?
What am I missing and more important, how looking at the
output of "configure" can I understand, what am I missing?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Please see post # 2 : All packages for compiling / building software
must be the " -devel " version.
No, you do not have libexif installed, only a part of libexif.
I.e. "package libexif" = The 'runtime libraries' only.
'libexif-devel' is providing the three things you are missing :
1) /usr/lib/libexif.so
2) /usr/lib/pkgconfig/libexif.pc (Hence the PKG_CONFIG_PATH issue.)
.... libexif.pc means "libexif package config file".
3) /usr/include/<exif-headers>.h
....
Please see post # 2 : All packages for compiling / building software
must be the " -devel " version.
No, you do not have libexif installed, only a part of libexif.
I.e. "package libexif" = The 'runtime libraries' only.
'libexif-devel' is providing the three things you are missing :
1) /usr/lib/libexif.so
2) /usr/lib/pkgconfig/libexif.pc (Hence the PKG_CONFIG_PATH issue.)
.... libexif.pc means "libexif package config file".
3) /usr/include/<exif-headers>.h
....
Thanks, knudfl,
Step by step I'm learning "the LINUX ways"...
After installing the correct "libexif-devel" package
I repeated the "/.configure". The "./configure" wend OK
through the previously failed step but soon after that failed with:
Code:
.
.
.
checking for libexif to use... autodetect
checking for LIBEXIF... yes
checking libexif library flags... "-lexif -lm "
checking libexif cpp flags... " "
checking for libexif-gtk to use... autodetect
checking for LIBEXIF_GTK... no
checking libexif-gtk config program... none
checking for none... no
configure: WARNING: The `libexif-gtk' library could not be found using pkg-config or its known config program.
No version checks will be performed if it is found using any other method.
configure: error:
PKG_CONFIG_PATH=
LIBEXIF_GTK_LIBS=
LIBEXIF_GTK_CFLAGS=
* Fatal: GTK frontend for libgphoto2 requires libexif-gtk to build.
*
* Possible solutions:
* - set PKG_CONFIG_PATH to adequate value
* - call configure with LIBEXIF_GTK_LIBS=.. and LIBEXIF_GTK_CFLAGS=..
* - call configure with one of the --with-libexif-gtk parameters
* - get libexif-gtk and install it
At first I thought it's the same problem as in the previous step
failure and I have to install the "libexif-gtk-devel". But
such package couldn't be found:
Code:
<root@localhost.localdomain>.../root>yum install libexif-gtk-devel
Loaded plugins: refresh-packagekit
rpmfusion-free-updates | 2.8 kB 00:00
updates/metalink | 25 kB 00:00
Setting up Install Process
No package libexif-gtk-devel available.
Nothing to do
The repositories where "yum" searches:
Code:
<root@localhost.localdomain>.../root>yum repolist
Loaded plugins: refresh-packagekit
repo id repo name status
fedora Fedora 11 - x86_64 enabled: 16,577
rpmfusion-free RPM Fusion for Fedora 11 - Free enabled: 423
rpmfusion-free-updates RPM Fusion for Fedora 11 - Free - Updates enabled: 226
updates Fedora 11 - x86_64 - Updates enabled: 10,066
repolist: 27,292
and the packages related to "libexif" it sees are:
Code:
<root@localhost.localdomain>.../root>yum search libexif
Loaded plugins: refresh-packagekit
======================================================================= Matched: libexif =======================================================================
libexif.i586 : Library for extracting extra information from image files
libexif.x86_64 : Library for extracting extra information from image files
libexif-devel.i586 : Files needed for libexif application development
libexif-devel.x86_64 : Files needed for libexif application development
I can't see any package that has "gtk" in the name, no matter
in what syntax. I did some searching about packages installation
with "yum" but all I found were examples of when it succeeds.
So, what am I getting wrong this time?
I attempted the first rpm install, it failed on some missing dependency (and since
you didn't use "--nodeps" here I didn't want to try as I don't know what
this would do). So, I think I'll currently give up on the attempt to install "gtkam".
Over a week ago I ordered SDHC card reader, hopefully it'll be recognized like an
ordinary USB drive and that would be the way to move my photos from the camera to
my PC.
... which will also install the dependencies, which are regular
Fedora 11 packages, available from the "fedora.repo".
( Probably installed long time ago on my Fedora 11.)
And after that, libexif-gtk5-devel-0.3.5-9mdv2010.0.i586.rpm will not
have any real dependencies, and 'rpm -Uvh --nodeps' will do.
..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.