Re: ldconfig issue after compiling and installing software

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/15/2012 06:56 PM, Steven Oliver wrote:
I'm currently pulling the falcon programming language from git and
installing it myself instead of pulling it from yum.

After pulling it, compiling it, and installing it (sudo make install)
it's failing to run telling me:

root@odrade:/usr/local/lib $ falcon
falcon: error while loading shared libraries: libfalcon_engine.so.1:
cannot open shared object file: No such file or directory

My first thought, as I'm sure most of yours will be was to check
ldconfig so i tried:

root@odrade:/usr/local/lib $ ldconfig -v | grep falcon

And it returns nothing. The falcon libraries appear to be correctly
installed:

root@odrade:/usr/local/lib $ ls
falcon libfalcon_engine.so libfalcon_engine.so.1 libfalcon_engine.so.1.22.2

And I updated ld.so.conf to include /usr/local/lib before running ldconfig:

root@odrade:/etc $ cat ld.so.conf
include ld.so.conf.d/*.conf
include /usr/local/lib

"include /usr/local/lib" does not put /usr/local/lib in the ldconfig, it's telling ldconfig to include any .conf files in /usr/local/lib.


The correct solution is to create an "/etc/ld.so.conf.d/local.conf" file
containing the single line:

	/usr/local/lib

Then running "ldconfig -v" or "ldconfig -v | grep falcon" (if you want
to verify it gets loaded). I didn't name the new file "falcon.conf"
because this will work for any library installed in /usr/local/lib and
so it's a bit more generic.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, AllDigital    ricks@xxxxxxxxxxxxxx -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-     Squawk!  Pieces of Seven!  Pieces of Seven!  Parity Error!     -
----------------------------------------------------------------------
--
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux