PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Brazier Stephen F Civ 27 IS/SCOS <stephen dot brazier at langley dot af dot mil>
Subject: RE: Fatal Use Sybase::DBLib
Date: Jul 1 1999 6:55PM

David and Michael,
Thank you for your answers.  I have been away doing my homework - spured on
by 'The Idiot's Guide to Solving Perl CGI Problems' by Tom Christiansen.
But it was your answers that really led me to to the solution:

Mount the directory structure.  This effectively establishes the path to the
library files.  I too discovered (as you pointed out Michael) that Perl
looks for the library files before recognizing any settings such as 'set
LD_LIBRARY_PATH'.  And since Perl is located on a different server from the
applications - the mount point has seemed to be a reasonable fix.
 
With this said - I hope to soon recompile Sybperl (and Perl) and correctly
identify the path in the binary.  However, my next quest is to identify the
various Perl libraries/modules that are linked/installed into Perl.  As you
probably have guessed - I am new to this environment - and Perl (along with
Sybperl) was compiled, linked  and loaded by another programmer who has
since left my office.  Now I am trying to sort out what was done and how it
works.

Does anyone know how to identify exactly which Perl libraries (and/or
modules) have been linked into the basic Perl package?  (I know this is out
of place - here on the SybPerl Discussion List - but...)

Many Thanks!
Steve Brazier

-----Original Message-----
From: Michael Peppler [mailto:mpeppler@peppler.org]
Sent: Tuesday, June 08, 1999 10:16 AM
To: SybPerl Discussion List
Subject: RE: Fatal Use Sybase::DBLib


WORENKLEIN, David, GCM writes:
 > Try
 >   BEGIN {
 >     $ENV{LD_LIBRARY_PATH}=...
 >   }

That won't work. You *can't* set LD_LIBRARY_PATH for the current
process, only for children of this process.

 > 
 > Or, try putting your libsybdb.so in a more common place, like /usr/lib

Or using symlinks (/usr/local/lib should work fine).

 > 
 > Or, try building Sybase::DBlib with the -R option.

Normally this option is used by default. 

Michael

 > 
 > > -----Original Message-----
 > > From:	Brazier Stephen F Civ 27 IS/SCOS
 > > [mailto:stephen.brazier@langley.af.mil]
 > > Sent:	Tuesday, June 08, 1999 8:56 AM
 > > To:	SybPerl Discussion List
 > > Subject:	Fatal Use Sybase::DBLib
 > > 
 > > Hello,
 > > 
 > > I have been wrestling with this error to no avail:
 > > 
 > > "Can't load
 > >
'/opt/perl5/lib/site_perl/5.00551/sun4-solaris/auto/Sybase/DBlib/DBlib.so'
 > > for module Sybase::DBlib:  ld.so.1: /opt/perl5/bin/perl: fatal:
 > > libsybdb.so: can't open file: errno=2 at
 > > /opt/perl5/lib/5.00551/sun4-solaris/DynaLoader.pm line 168.     
 > > 
 > > ENV values (for reference)
 > > 
 > > SERVER_SOFTWARE: NCSA/1.4.2
 > > GATEWAY_INTERFACE: CGI/1.1
 > > HTTP_ACCEPT_LANGUAGE: en
 > > HTTP_ACCEPT_ENCODING: gzip
 > > SERVER_PROTOCOL: HTTP/1.0
 > > HTTP_ACCEPT_CHARSET: is0-8859-1,#,utf-8
 > > REQUEST_METHOD: GET
 > > SERVER_PORT: 80
 > > HTTP_USER_AGENT: Mozilla/4.5[en](X11;U;SunOS 5.6 sun4m)
 > > PATH: /usr/sbin:/usr/bin
 > > HTTP_CONNECTION: Keep-Alive    
 > > 
 > > perl -v   'This is perl, version 5.005_51 built for sun4-solaris'
 > > 
 > > perl -V  '   ...  Linker and Libraries:
 > >   		ld='gcc', ldflags =' -L/usr/local/lib'
 > > 		libpth=/usr/local/lib /lib /usr/lib /usr/ccs/lib
 > > 		libs=-lsocket -lnsl -ldl -lm -lc -lcrypt
 > > 		libc=/lib/libc.so, so=so, useshrplib=false,
 > > libperl=libperl.a
 > > 
 > > 	...  and more...  (I have to retype this because the error is on an
 > > internal LAN)
 > > 
 > > This seems to be a path issue.  When I set the
 > > LD_LIBRARY_PATH=/opt/sybase/lib at the command line the script runs at
the
 > > command line, but  it dies when called by the browser
 > > (Netscape 4.x)     Netscape runs as Nobody.  I have tried to set the
ENV
 > > var at the top of the script but Perl seems to want all of its paths
 > > resolved prior to seeing the script...  
 > > 
 > > Many thanks for all of your thoughts and time,
 > > 
 > > Steve Brazier
 > > stephen.brazier@langley.af.mil
 > > 
 > > 
 > 

-- 
Michael Peppler         -||-  Data Migrations Inc.
mpeppler@peppler.org    -||-  http://www.mbay.net/~mpeppler
Int. Sybase User Group  -||-  http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com

begin 600 winmail.dat
M>)\^(@H2`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<`
M&````$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`06``P`.````SP<'``$`
M#@`W``P`!``S`0$@@`,`#@```,\'!P`!``X`-P`(``0`+P$!"8`!`"$````T
M-C5!,44R0D-&,D9$,S$Q035&.#`P,C`T.#`T14(T-0`:!P$$@`$`'````%)%
M.B!&871A;"!5(R`T-T97@%00$#`??_"H`"I`/D!Q,"@`_S`%`$5C\(
M50>R$24.40,!`@!C:.$*P'-E=#(&``;#$27V,P1&$[V.Q@?
M#C`U$2(,8&,`4+,+"0%D,S864`NG8P$P@"!$879I9"``<(T=<$T-X!/@96PL
M"J*%"H!4$^!N:R!Y"&"^(`(0!<`?$07``'%W!)!`
ML"#0261I;W0GF00@1W4=8"#0=&\&`#<&\!U0(<%0!)`#($-'#2"`4`-@`F!E
M;7,G+2-B5`-P$B!H!1!S=$\',`"`"?`@44)U!4!I_P5`(5`$(!^:),`3X`5`
M&"#]!T!L(7`F4!UP!X`DPBK"G2/!0`9%L!``CP"ER
M(-#/"K`ID"KF,!!B<@K`(7#^9@,0!Y`@4R30).`D``3P]F\@P","*"B4,+`A
MH0ZP=R,A*"$=U2DIA"6#%[!O_FL$(!]2,4\@X1]1(-`MB&R`'`M
MT10@]R=P(<`$(',:T##P*)$D0`$4("!,1%],24(`4D%265]0050T2"<@44$=
MH0"0;F-O(-`E@R[1%[!C*;`C%&'?+4$O$1@@+.$4$'(S,1]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@0U5U?R=V@3@X+B!T<.E`+W>_/,"JD%*02L!+P+S@?CIVOX,4
M.="?T;+4LH*F($=5,+9U)!`[[RYM4"X`+A8AQV^E/N1M$VYU>$N`=1'_E2+K
M\+>P<]#`$?]P0J)$`16WL$!!''U%L``>`$(0`0```"T````\,30Q-S,N.34T
M-2XX-#``&`""`&``````#`````````1@````!4
MA0```0````0````X+C4``P`#@`@@!@``````P````````$8``````84`````
M```+``6`""`&``````#`````````1@`````.A0````````,`!H`((`8`````
M`,````````!&`````!"%`````````P`'@`@@!@``````P````````$8`````
M$84````````#``F`""`&``````#`````````1@`````8A0```````!X`"H`(
M(`8``````,````````!&`````#:%```!`````0`````````>``N`""`&````
M``#`````````1@`````WA0```0````$`````````'@`,@`@@!@``````P```
M`````$8`````.(4```$````!``````````L`#8`+(`8``````,````````!&
M``````"(````````"P`.@`L@!@``````P````````$8`````!8@````````+
M``*`""`&``````#`````````1@`````&A0```````$``.0!`1JD_\\.^`0,`
M\3\)!```'@`Q0`$````*````0E)!6DE%4E-&`````P`:0``````>`#!``0``
M``H```!"4D%:24524T8````#`!E```````,`_3_D!````P`F```````#`#8`
M``````,`@!#_____`@%'``$````N````8SU54SMA/41-4SML/4Q&22U-4RTP
M,C4M,"TY.3`W,#$Q.#4U,3):+3FEEFEE`!T.`0```!@```!&871A;"!5`#40`0``
M`$8````\-#DQ-30R0S1#,C5&1#(Q,4$U0T$P,#(P-#@P-$5"-#4P03,T,3)`
M;&9I+6US+3`R-2TP,2YL86YG;&5Y+F%F+FUI;#X````+`"D```````L`(P``
M`````P`&$)@;5-L#``<0!@P```,`$!```````P`1$``````>``@0`0```&4`
M``!$059)1$%.1$U)0TA!14PL5$A!3DM93U5&3U)93U5204Y35T524TE(059%
M0D5%3D%705E$3TE.1TU92$]-15=/4DLM4U!54D5$3TY"651(14E$24]44T=5
M241%5$]33TQ624Y'``````(!?P`!````1@```#PT.3$U-#)#-$,R-49$,C$Q
M035#03`P,C`T.#`T14(T-3!!,S0Q,D!L9FDM;7,M,#(U+3`Q+FQA;F=L97DN
,868N;6EL/@```.!R
`
end