LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-08-2003, 12:07 PM   #1
stodge
Member
 
Registered: Jan 2002
Posts: 52

Rep: Reputation: 15
"Error while loading shared libraries" - different solutions?


I understand that LD_LIBRARY_PATH doesn't include the current directory. I'm trying to run a program I'm developing that needs to load a shared library at runtime. Are there any ways apart from setting LD_LIBRARY_PATH of getting my program to load a shared library from its current directory?

Thanks
 
Old 05-08-2003, 12:48 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,699
Blog Entries: 54

Rep: Reputation: 2962Reputation: 2962Reputation: 2962Reputation: 2962Reputation: 2962Reputation: 2962Reputation: 2962Reputation: 2962Reputation: 2962Reputation: 2962Reputation: 2962
Exporting LD_SO_PRELOAD?
 
Old 05-09-2003, 03:26 AM   #3
mdh
Member
 
Registered: Nov 2002
Location: Melbourne, Australia
Distribution: (C)LFS (x86_64, ix86, sparcv9, ppc)
Posts: 121

Rep: Reputation: 15
Just use a wrapper script exporting
LD_LIBRARY_PATH before running your executable
 
Old 05-11-2003, 03:19 AM   #4
cybercop12us
Member
 
Registered: Aug 2001
Posts: 60

Rep: Reputation: 15
may be you can use dlopen() call and give the path
of shared library . see man dlopen()
 
  


Reply


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
Reboot Error: "initlog: error while loading shared libraries: libpopt.so.0" saranga2000 Linux - Enterprise 4 04-26-2013 07:50 PM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 06:47 AM
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 04:19 PM
Linux boot hang : "init: error loading shared libraries" colinprice72 Linux - General 0 01-16-2004 10:04 AM
Intel USB Webcam & "missing shared libraries: libgd.so.1.8" leavingwindows Linux - Newbie 1 10-29-2003 03:12 PM


All times are GMT -5. The time now is 12:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration