Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

LD_LIBRARY_PATH error

by yelekeri (Novice)
on Jul 17, 2006 at 17:53 UTC ( [id://561800]=perlquestion: print w/replies, xml ) Need Help??

yelekeri has asked for the wisdom of the Perl Monks concerning the following question:

All,
Having a strange problem with this path variable, here is the code:
#!/var/tmp/faptdt/bin/perl BEGIN { $ENV{LD_LIBRARY_PATH} = "/apps/sybcli/12/xappdefaults/lib"; print "LD_LIBRARY_PATH = " . $ENV{LD_LIBRARY_PATH} . "\n"; } use DBD::Sybase; ......
This works fine if the LD_LIBRARY_PATH is already set in the command line. Since I have to use it from CGI, i need to set it in the BEGIN block of script itself, but its not working. In fact the code worked fine but at the end throwing up some error message. Also according to the print statement, the path seems to be fine.

The error message is :

ld.so.1: test.pl: fatal: relocation error: file /apps/sybcli/12/lib/li +btli_r.so: symbol comn_yield: referenced symbol not found Killed
regards

Janitored by tye: Preserve formatting

2006-07-18 Retitled by planetscape, as per Monastery guidelines

( keep:1 edit:12 reap:0 )

Original title: 'LB_LIBRARY_PATH error'

Replies are listed 'Best First'.
Re: LD_LIBRARY_PATH error
by Zaxo (Archbishop) on Jul 17, 2006 at 18:34 UTC

    You can set environment variables prior to perl loading with the SetEnv directive in apache configuration. See the apache manual for details.

    After Compline,
    Zaxo

Re: LD_LIBRARY_PATH error (search)
by tye (Sage) on Jul 17, 2006 at 18:35 UTC
      Thank you very much guys, I read that earlier but probably didn't read it closely. Yes, the solution worked pretty good.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://561800]
Approved by willyyam
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-19 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found