LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-18-2010, 03:20 AM   #1
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Rep: Reputation: 2
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:

Code:
<localhost>.../download>rpm -qa | grep libtool
libtool-2.2.6-11.fc11.1.x86_64
libtool-ltdl-2.2.6-11.fc11.3.x86_64
libtool-ltdl-2.2.6-11.fc11.3.i586
An attempt to download and install

libtool-ltdl-2.2.6-11.fc11.x86_64.rpm

resulted in:

Code:
<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?

I'm running FC11.

Thanks in advance for any help,
kaza.
 
Old 09-18-2010, 05:29 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"checking ltdl.h presence.. no " : Means no 'libtool-ltdl-devel' installed.

Why are you downloading packages for Fedora ? No Internet ?

# yum install libtool-ltdl-devel
.. is the correct way to do it.
14,000 packages are available with yum :
http://download.fedora.redhat.com/pu...4/os/Packages/

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.
......

Sea & Sea support .. http://www.gphoto.org/news/ : line 216 >>
Version 2.4.8 : Sea & Sea 2G. .. ::
..

Last edited by knudfl; 09-18-2010 at 06:01 AM.
 
Old 09-19-2010, 01:20 PM   #3
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by knudfl View Post
"checking ltdl.h presence.. no " : Means no 'libtool-ltdl-devel' installed.

Why are you downloading packages for Fedora ? No Internet ?

# yum install libtool-ltdl-devel
.. is the correct way to do it.
14,000 packages are available with yum :
http://download.fedora.redhat.com/pu...4/os/Packages/

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.
......

Sea & Sea support .. http://www.gphoto.org/news/ : line 216 >>
Version 2.4.8 : Sea & Sea 2G. .. ::
..
Thanks, knudfl,

Now I see my basic error was that instead of

yum install libtool-ltdl-devel

I attempted:

yum install libtool-ltdl

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...
 
Old 09-19-2010, 03:11 PM   #4
Elv13
Member
 
Registered: Apr 2006
Location: Montreal,Quebec
Distribution: Gentoo
Posts: 825

Rep: Reputation: 129Reputation: 129
Why aren't you only installing something like digikam
Code:
sudo yum install digikam
It will install everything you need, including gphoto. Is the libgphoto2 coming with F11 is just too old?
 
Old 09-19-2010, 03:54 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
*

Fedora 11 has libgphoto2-2.4.5, the Sea & Sea support : from 2.4.8.

..
 
Old 09-19-2010, 04:32 PM   #6
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
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:

Code:
rpm -qa | grep libexif
libexif-0.6.16-3.fc11.i586
libexif-0.6.16-3.fc11.x86_64
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?

Thanks in advance,
kaza.
 
Old 09-20-2010, 08:21 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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
....

Last edited by knudfl; 09-20-2010 at 08:23 AM.
 
Old 09-22-2010, 03:24 PM   #8
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by knudfl View Post
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?

Thanks in advance,
kaza.
 
Old 09-23-2010, 01:02 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Yes, that's odd. Some software is tailored for Redhat / Fedora.
Some like gtkam requires packages only available on Mandriva/PCLinuxOS (Suse ?)

... No luck building Fedora 11 packages libexif-gtk / libexif-gtk-devel.
These can be used ..
http://ftp.linux.org.tr/mandrake/201...010.0.i586.rpm
# rpm -Uvh libexif-gtk5-0.3.5-9mdv2010.0.i586.rpm

http://ftp.linux.org.tr/mandrake/201...010.0.i586.rpm
# rpm -Uvh --nodeps libexif-gtk5-devel-0.3.5-9mdv2010.0.i586.rpm
( Reason for --nodeps : Fedora uses different package names for glib etc.)

# yum install gimp-devel ( If you want gimp support.)

Also required : /usr/lib/<files>.la :
libatk-1.0.la libfontconfig.la libgdk_pixbuf_xlib-2.0.la libglib-2.0.la
libgthread-2.0.la libpangocairo-1.0.la libpixman-1.la libxcb.la
libXrender.la libcairo.la libfreetype.la libgdk-x11-2.0.la libgmodule-2.0.la
libgtk-x11-2.0.la libpangoft2-1.0.la libX11.la libXdmcp.la libexif.la
libgdk_pixbuf-2.0.la libgio-2.0.la libgobject-2.0.la libpango-1.0.la
libpcre.la libXau.la libxml2.la
... All to be found in Mandriva 2009 packages, and edited to Fedora 11.
...
Attached Files
File Type: txt files.la-F11.tar.gz.txt (2.5 KB, 9 views)
 
Old 09-24-2010, 03:53 PM   #10
kaza
Member
 
Registered: Apr 2010
Distribution: FC17
Posts: 343

Original Poster
Rep: Reputation: 2
Thanks knudfl,

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.

Tnanks,
kaza.
 
Old 09-24-2010, 04:17 PM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
There is another command to install rpm packages :

# yum localinstall --nogpgcheck libexif-gtk5-0.3.5-9mdv2010.0.i586.rpm

... 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.
..
 
  


Reply

Tags
gtkam



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
How to install a rpm without dependencies problem? unidows Linux - Software 3 05-15-2007 12:22 PM
Can't install java - dependencies problem on multiverse (dapper) asimov Ubuntu 6 06-29-2006 05:20 PM
KDE 3.5 install problem with dependencies shadowsa SUSE / openSUSE 2 12-02-2005 12:38 AM
RPM Install problem - dependencies The_JinJ Linux - Newbie 3 11-22-2004 07:08 PM
big problem with partition after attempting to install fedora russellc Fedora - Installation 5 07-06-2004 02:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:56 AM.

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