|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Setting Access to Shared Object Files
When I run my program is cannot locate a file, so my question is how do you setup access to this file in Unix (Solaris 9).
The following errors occurred when I ran the run_test.pl in a Terminal window, this is for running the Time sample program. Code:
test@tgt: run_test.pl ld.so.1: server: fatal: libTAO_Utils.so.1.5a_p7: open failed: No such file or directory test@tgt: I did a search and the file libTAO_Utils.so.1.5a_p7 exists in the following locations:- Code:
/home/test/corba/ACE_wrappers/lib/libTAO_Utils.so.1.5a_p7 /home/test/corba/ACE_wrappers/TAO/tao/libTAO_Utils.so.1.5a_p7 Is it just a case that some reference needs to be set-up to point to this location, as being a WIndows programmer I assume its like a case of missing .LIb or .DLL file references. Many thanks, Andy. |
|
#2
|
||||
|
||||
|
You probably want to add /home/test/corba/ACE_wrappers/lib/ to SHLIB_PATH. To test this:
Code:
SHLIB_PATH=$SHLIB_PATH:/home/test/corba/ACE_wrappers/lib/ export SHLIB_PATH run_test.pl To make that permanent, add the first two lines to your .profile
__________________
According to Sod's Law, buttered toast lands butter side down, when dropped. Per nature, cats always land on their feet. So, what happens when you strap buttered toast to the back of a cat and throw it out a window?. |
|
#3
|
|||
|
|||
|
Quote:
Thanks for your post, I just tried it out, but still get the same error. I checked the following:- Code:
Sun Microsystems Inc. SunOS 5.9 Generic May 2002 testop@tgt15: echo $SHLIB_PATH /home/test/corba/ACE_wrappers/lib/ testop@tgt15: cd /home/testop/corba/ACE_wrappers/TAO/examples/Simple/time testop@tgt15: run_test.pl ld.so.1: server: fatal: libTAO_Utils.so.1.5a_p7: open failed: No such file or directory testop@tgt15: pwd /home/testop/corba/ACE_wrappers/lib ***** Properties of this Shared File ***** lrwxrwxrwx 1 testop testsystem 34 Apr 9 14:01 libTAO_Utils.so -> ../TAO/tao/libTAO_Utils.so.1.5a_p7 Any suggestions? Andy. |
|
#4
|
|||
|
|||
|
New setting that worked was:-
Code:
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ACE_ROOT/bin:$ACE_ROOT/lib This was in the .profile Andy. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Setting Access to Shared Object Files |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|