LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-25-2016, 10:32 PM   #1
jesse_m
LQ Newbie
 
Registered: Mar 2016
Posts: 5

Rep: Reputation: Disabled
Error while loading shared library that is already there


I am trying to install KiCAD (schematic and board editor).
My issue is that when I try to start the program I get the following error:

Code:
kicad: error while loading shared libraries: libwx_gtk2u_gl-3.1.so.1: cannot open shared object file: No such file or directory
However when I go to /usr/local/lib I can find that exact file with find:
Code:
$> find -name "libwx_gtk2u_gl*"
./libwx_gtk2u_gl-3.1.so.1.0.0
./libwx_gtk2u_gl-3.1.so
./libwx_gtk2u_gl-3.1.so.1
I am on Slackware current and this is how I installed everything:
Kicad is dependent on wxGTK3 and libgnomeprintui. I installed wxGTK3, libgnomeprintui, and their dependencies from slackbuilds. I had issues building libgnomeprint but found it was an issue with when it was building the docs so I built and installed gtk-doc and it seemed to install without errors after that, it said it installed successfully.

I realize that KiCAD might not be the most popular application to install but I wasn't sure if anyone has run into similar issues with shared libraries.

Thanks for any tips and pointers, I'm still a bit new to Slackware.

I am asking for help and not trying a lot of things because it takes a few hours to build KiCAD so I figured I would ask for help before trying to much else.
 
Old 04-26-2016, 05:59 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
You're in Slackware 32bits version?

How did you install wxPython? With slackbuild.org scripts, it should be installed in /usr not /usr/local
 
Old 04-27-2016, 07:14 AM   #3
jesse_m
LQ Newbie
 
Registered: Mar 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
@keefaz
Thanks for the reply!
I'm on the 64 bit version.
I installed wxPython with the slack build script and the GNOMEPRINT=YES option:
Code:
sudo ./wxPython.SlackBuild GNOMEPRINT=YES
su -c "installpkg /tmp/wxPython-src-2.18.12.1.tgz"
I just tried uninstalling everything and trying again. I had built wxWidgets from source before and that may have messed something up so I'm going to try and clean that out and start again.
 
Old 04-27-2016, 07:29 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Make sure /usr/local/lib is in /etc/ld.so.conf and run ldconfig by hand.
 
Old 04-27-2016, 08:18 AM   #5
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,325

Rep: Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760Reputation: 760
Quote:
Originally Posted by jesse_m View Post
@keefaz
Thanks for the reply!
I'm on the 64 bit version.
Yes, I asked because you found library files installed in /usr/local/lib
This place is for 32bits libraries
64bits libraries are installed in /usr/lib64 or /usr/local/lib64

Redo the wxPython installation with Slackbuild script and see if it solves Kicad install

As a side note, you could just install sbotools and run sboinstall kicad, which will install kicad taking care of the dependencies for you
 
Old 04-28-2016, 07:59 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,537
Blog Entries: 4

Rep: Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430Reputation: 3430
The secret, as noted in post #4, is gonna be ldconfig.

Linux has a very-flexible module loading system, which permits applications to be very-generic or very-specific about what they want to load. It would be prohibitively time-consuming to search for the correct file every time, so Linux uses a "loader cache." ldconfig builds or rebuilds this cache-file, basically figuring-out in advance where "anything one could ask for" is located. At runtime, the loader never "searches." It relies upon the cache.

This command is ordinarily re-executed automatically, as part of the process of installing new libraries.
 
  


Reply

Tags
build, wxgtk3


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Error while loading shared library : libpng12.so.0 dhanilshah Linux - Software 5 08-18-2011 08:38 AM
Shared library libfrint.so loading error Jhvdb Linux - Software 8 09-13-2008 11:32 AM
error while loading shared library lucky6969b Programming 2 02-08-2006 01:41 AM
error while loading shared library bonniehandi Linux - Newbie 2 11-19-2005 12:43 AM
kmodule: error while loading shared library libc.so.6 gruell Fedora - Installation 2 08-04-2005 10:24 AM

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

All times are GMT -5. The time now is 06:02 PM.

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