UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old April 15th, 2008, 11:41 AM
andy101 andy101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: UK
Posts: 110 andy101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 45 m 36 sec
Reputation Power: 4
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.

Reply With Quote
  #2  
Old April 15th, 2008, 01:36 PM
Ehlanna's Avatar
Ehlanna Ehlanna is offline
Not a clue what to put ...
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: in front of this keyboard
Posts: 814 Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level)Ehlanna User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Weeks 2 Days 5 h 8 m 11 sec
Reputation Power: 243
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?
.

Reply With Quote
  #3  
Old April 16th, 2008, 03:16 AM
andy101 andy101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: UK
Posts: 110 andy101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 45 m 36 sec
Reputation Power: 4
Quote:
Originally Posted by Ehlanna
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


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.

Reply With Quote
  #4  
Old April 18th, 2008, 05:55 AM
andy101 andy101 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: UK
Posts: 110 andy101 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 18 h 45 m 36 sec
Reputation Power: 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > Setting Access to Shared Object Files


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway