[Solved]Gtkhtml can't find libcanberra.so,but it's installed

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

[Solved]Gtkhtml can't find libcanberra.so,but it's installed

Post by Pai Mei »

Hy everyone.
I'm trying to install gtkhtml in Salix 14 XFCE 64 bits, using Sourcery. I click in install, installation begins but hangs with the following error:

Code: Select all

grep: /usr/lib64/libcanberra.la: No such file or directory
/bin/sed: can't read /usr/lib64/libcanberra.la: No such file or directory
libtool: link: `/usr/lib64/libcanberra.la' is not a valid libtool archive
So, I search for libcanberra in my system, and it's installed:

Code: Select all

$ locate libcanberra
/var/log/packages/libcanberra-0.29-x86_64-1
/var/log/scripts/libcanberra-0.29-x86_64-1
/usr/lib64/libcanberra-gtk.so.0
/usr/lib64/libcanberra-gtk3.so.0
/usr/lib64/libcanberra-gtk3.so.0.1.8
/usr/lib64/libcanberra.so.0.2.5
/usr/lib64/pkgconfig/libcanberra-gtk.pc
/usr/lib64/pkgconfig/libcanberra-gtk3.pc
/usr/lib64/pkgconfig/libcanberra.pc
/usr/lib64/libcanberra-gtk3.so
/usr/lib64/libcanberra.so.0
/usr/lib64/libcanberra-gtk.so.0.1.8
/usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.la
/usr/lib64/gtk-2.0/modules/libcanberra-gtk-module.so
/usr/lib64/libcanberra-gtk.so
/usr/lib64/libcanberra-0.29
/usr/lib64/libcanberra-0.29/libcanberra-multi.so
/usr/lib64/libcanberra-0.29/libcanberra-gstreamer.so
/usr/lib64/libcanberra-0.29/libcanberra-multi.la
/usr/lib64/libcanberra-0.29/libcanberra-alsa.la
/usr/lib64/libcanberra-0.29/libcanberra-null.la
/usr/lib64/libcanberra-0.29/libcanberra-gstreamer.la
/usr/lib64/libcanberra-0.29/libcanberra-alsa.so
/usr/lib64/libcanberra-0.29/libcanberra-null.so
/usr/lib64/libcanberra.so
/usr/lib64/gtk-3.0/modules/libcanberra-gtk3-module.so
/usr/lib64/gtk-3.0/modules/libcanberra-gtk3-module.la
/usr/lib64/gtk-3.0/modules/libcanberra-gtk-module.so
/usr/lib64/libcanberra-gtk.so
/usr/lib64/gtk-3.0/modules/libcanberra-gtk3-module.so
/usr/lib64/gtk-3.0/modules/libcanberra-gtk3-module.la
/usr/lib64/gtk-3.0/modules/libcanberra-gtk-module.so
/usr/share/vala/vapi/libcanberra-gtk.vapi
/usr/share/vala/vapi/libcanberra.vapi
...
I figured that the problem is: libcanberra.so is installed, but libcanberra.la not. So, I'm wondering how to solve this problem...
With a symbolic link? Removing the reference to the .la file? The correct way (I think) is finding the .la file and putting it in the right place - but how do this?
I searched in the net, and found a thread in a Gentoo forum (http://forums.gentoo.org/viewtopic-p-66 ... 2c5342b989 to use the command:
# lafilefixer --justfixit
This command (don't works in Salix) is a hack, which removes the references to the missing lib (.la file) - don't solve anything in the end.
In a Fedora forum, they have the same problem, and recommend to remove the references to the missing .la file (???).
Knowing that Salix is a Slackware distro, there is another way to solve this problem without removing dependencies references or using hacks? Don't want to risk the stability of my system...
Last edited by Pai Mei on 29. Jul 2013, 23:23, edited 1 time in total.
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Gtkhtml can't find libcanberra.so, but it's installed...

Post by gapan »

Wait, back up a little...

1. gtkhtml is available as a package with slapt-get/gslapt. Why are you trying to build it from source?
2. gtkhtml is not actually available in sourcery, so where did you find it?
Image
Image
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

Re: Gtkhtml can't find libcanberra.so, but it's installed...

Post by Pai Mei »

Thanks Gapan, to make me to see the error... I changed the mirros of Sourcery, adding the mirror of slackware slackbuils, and, because of this, gtkhtml appeared in Sourcery... And I got a build error when trying to install using it...
Now installed gtkhtml using Gslapt... everything seems fine now...
(this is what happens when mixes mirros outside the salix repos...Living and learning...)
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: Gtkhtml can't find libcanberra.so, but it's installed...

Post by gapan »

Well, you shouldn't have to add the SBo repository. The SBo repository
that you find by default i sourcery, is exactly the same as the original
SBo repository, with the exceptions that:

1. It includes dependencies information in the SLACKBUILDS.TXT file
2. It does not include the SlackBuilds that are already included as
packages in the Salix repositories, so you don't need to build them from
source anyway!
Image
Image
User avatar
Pai Mei
Donor
Posts: 22
Joined: 13. Jan 2012, 02:17
Location: Brazil

Re: [Solved]Gtkhtml can't find libcanberra.so,but it's insta

Post by Pai Mei »

Thanks Gapan for the explanation. Learned how to don't miss with the repos, and the consequences...
Linux User #551004
Pentium Core i5-6400
Salix 15 XFCE 64 bits
Post Reply