RE: Problem wit loading CTLib via CGI on WinXp

"Julian Thomas" <[email protected]> Wed, 4 Feb 2009 09:09:08 -0000
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C986A8.3C823FD9
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Any ideas

________________________________

From: [email protected] [mailto:[email protected]]
On Behalf Of Julian Thomas
Sent: 18 December 2008 12:08
To: [email protected]
Subject: Problem wit loading CTLib via CGI on WinXp


Hi=20
=20
The scripts work perfectly when run via  acommand prompt or through an
IDE
But when I try to run them via Apache2.2 I get the following errors.
=20

Software error:

Can't load 'D:/perl.5.8.8/site/lib/auto/Sybase/CTlib/CTlib.dll' for
module Sybase::CTlib: load_file:The specified module could not be found
at D:/perl.5.8.8/lib/DynaLoader.pm line 229.
 at D:/Apps/Apache2.2/cgi-bin/simple.cgi line 20
Compilation failed in require at D:/Apps/Apache2.2/cgi-bin/simple.cgi
line 20.
BEGIN failed--compilation aborted at
D:/Apps/Apache2.2/cgi-bin/simple.cgi line 20.

if i print the Environment out before the use Sybase::CTLib call I get
COMSPEC=3D C:\WINDOWS\system32\cmd.exe

DOCUMENT_ROOT=3D D:/Apps/Apache2.2/htdocs

GATEWAY_INTERFACE=3D CGI/1.1

HTTP_ACCEPT=3D */*

HTTP_ACCEPT_ENCODING=3D gzip, deflate

HTTP_ACCEPT_LANGUAGE=3D en-gb

HTTP_CONNECTION=3D Keep-Alive

HTTP_HOST=3D ldn1dpc383.globeop.com

HTTP_UA_CPU=3D x86

HTTP_USER_AGENT=3D Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; =
.NET
CLR 2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR
3.0.04506.648)

LD_LIBRARY_PATH=3D Z:\Apps\sybase\OCS-12_5\dll

LIB=3D Z:\Apps\sybase\OCS-12_5\lib

PATH=3D
D:\Perl.5.8.8\bin;D:\Perl.5.8.8\site\bin;D:\Perl.5.8.8\bin;z:\Apps\sybas
e\odbc\ODBC;C:\Program Files\ActiveState Komodo Edit
4.2\;C:\Python25\;D:\Perl\bin;z:\Apps\sybase\OCS-12_5\lib3p;z:\Apps\syba
se\OCS-12_5\dll;z:\Apps\sybase\OCS-12_5\bin;C:\WINDOWS\system32;C:\WINDO
WS;C:\WINDOWS\System32\Wbem

PATHEXT=3D .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyw

QUERY_STRING=3D=20

REMOTE_ADDR=3D 172.27.40.242

REMOTE_PORT=3D 3595

REQUEST_METHOD=3D GET

REQUEST_URI=3D /cgi-bin/printenv.cgi

SCRIPT_FILENAME=3D D:/Apps/Apache2.2/cgi-bin/printenv.cgi

SCRIPT_NAME=3D /cgi-bin/printenv.cgi

SERVER_ADDR=3D 172.27.40.242

SERVER_ADMIN=3D [email protected]

SERVER_NAME=3D ldn1dpc383.globeop.com

SERVER_PORT=3D 80

SERVER_PROTOCOL=3D HTTP/1.1

SERVER_SIGNATURE=3D=20

SERVER_SOFTWARE=3D Apache/2.2.10 (Win32)

SYBASE=3D Z:\Apps\sybase

SYBASE_JRE=3D Z:\Apps\sybase\shared-1_0\JRE-1_3

SYBASE_OCS=3D OCS-12_5

SYSTEMROOT=3D C:\WINDOWS

WINDIR=3D C:\WINDOWS

Now this used to work so somthing has changed.
=20
I attach the http.conf file
=20
Any help would be appreciated
=20
Rgds
=20
Julian
=20
=20
=20
________________________________

This email with all information contained herein or attached hereto may
contain confidential and/or privileged information intended for the
addressee(s) only. If you have received this email in error, please
contact the sender and immediately delete this email in its entirety and
any attachments thereto.
(H1)
=20

-------------------------------------------------------------------------=
-
This email with all information contained herein or attached hereto may =
contain confidential and/or privileged information intended for the =
addressee(s) only. If you have received this email in error, please =
contact the sender and immediately delete this email in its entirety and =
any attachments thereto.
(H1)
=20

------_=_NextPart_001_01C986A8.3C823FD9
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 =
Transitional//EN"><HTML><head><META content=3D"text/html; =
charset=3Dutf-8" http-equiv=3D"Content-Type">





<META content=3D"text/html; charset=3Dutf-8" http-equiv=3DContent-Type>
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR></head><BODY>
<DIV>
<DIV align=3Dleft dir=3Dltr><SPAN class=3D353560809-04022009><FONT =
color=3D#0000ff face=3DArial size=3D2>Any ideas</FONT></SPAN></DIV><BR>
<DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr lang=3Den-us>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> [email protected]=20
[mailto:[email protected]] <B>On Behalf Of </B>Julian=20
Thomas<BR><B>Sent:</B> 18 December 2008 12:08<BR><B>To:</B>=20
[email protected]<BR><B>Subject:</B> Problem wit loading CTLib via =
CGI on=20
WinXp<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>Hi=20
</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>The =
scripts work=20
perfectly when run via&nbsp; acommand prompt or through an=20
IDE</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>But =
when I try to=20
run them via Apache2.2 I get the following errors.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>
<H1>Software error:</H1><PRE>Can't load =
'D:/perl.5.8.8/site/lib/auto/Sybase/CTlib/CTlib.dll' for module =
Sybase::CTlib: load_file:The specified module could not be found at =
D:/perl.5.8.8/lib/DynaLoader.pm line 229.
 at D:/Apps/Apache2.2/cgi-bin/simple.cgi line 20
Compilation failed in require at D:/Apps/Apache2.2/cgi-bin/simple.cgi =
line 20.
BEGIN failed--compilation aborted at =
D:/Apps/Apache2.2/cgi-bin/simple.cgi line 20.
</PRE></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>if i =
print the=20
Environment out before the use Sybase::CTLib call I =
get</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>
<P>COMSPEC=3D C:\WINDOWS\system32\cmd.exe</P>
<P>DOCUMENT_ROOT=3D D:/Apps/Apache2.2/htdocs</P>
<P>GATEWAY_INTERFACE=3D CGI/1.1</P>
<P>HTTP_ACCEPT=3D */*</P>
<P>HTTP_ACCEPT_ENCODING=3D gzip, deflate</P>
<P>HTTP_ACCEPT_LANGUAGE=3D en-gb</P>
<P>HTTP_CONNECTION=3D Keep-Alive</P>
<P>HTTP_HOST=3D ldn1dpc383.globeop.com</P>
<P>HTTP_UA_CPU=3D x86</P>
<P>HTTP_USER_AGENT=3D Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; =
.NET CLR=20
2.0.50727; .NET CLR 3.0.04506.30; InfoPath.1; .NET CLR =
3.0.04506.648)</P>
<P>LD_LIBRARY_PATH=3D Z:\Apps\sybase\OCS-12_5\dll</P>
<P>LIB=3D Z:\Apps\sybase\OCS-12_5\lib</P>
<P>PATH=3D=20
D:\Perl.5.8.8\bin;D:\Perl.5.8.8\site\bin;D:\Perl.5.8.8\bin;z:\Apps\sybase=
\odbc\ODBC;C:\Program=20
Files\ActiveState Komodo Edit=20
4.2\;C:\Python25\;D:\Perl\bin;z:\Apps\sybase\OCS-12_5\lib3p;z:\Apps\sybas=
e\OCS-12_5\dll;z:\Apps\sybase\OCS-12_5\bin;C:\WINDOWS\system32;C:\WINDOWS=
;C:\WINDOWS\System32\Wbem</P>
<P>PATHEXT=3D =
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py;.pyw</P>
<P>QUERY_STRING=3D </P>
<P>REMOTE_ADDR=3D 172.27.40.242</P>
<P>REMOTE_PORT=3D 3595</P>
<P>REQUEST_METHOD=3D GET</P>
<P>REQUEST_URI=3D /cgi-bin/printenv.cgi</P>
<P>SCRIPT_FILENAME=3D D:/Apps/Apache2.2/cgi-bin/printenv.cgi</P>
<P>SCRIPT_NAME=3D /cgi-bin/printenv.cgi</P>
<P>SERVER_ADDR=3D 172.27.40.242</P>
<P>SERVER_ADMIN=3D [email protected]</P>
<P>SERVER_NAME=3D ldn1dpc383.globeop.com</P>
<P>SERVER_PORT=3D 80</P>
<P>SERVER_PROTOCOL=3D HTTP/1.1</P>
<P>SERVER_SIGNATURE=3D </P>
<P>SERVER_SOFTWARE=3D Apache/2.2.10 (Win32)</P>
<P>SYBASE=3D Z:\Apps\sybase</P>
<P>SYBASE_JRE=3D Z:\Apps\sybase\shared-1_0\JRE-1_3</P>
<P>SYBASE_OCS=3D OCS-12_5</P>
<P>SYSTEMROOT=3D C:\WINDOWS</P>
<P>WINDIR=3D C:\WINDOWS</P></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>Now =
this used to=20
work so somthing has changed.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>I =
attach the=20
http.conf file</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D289475911-18122008>Any =
help would be=20
appreciated</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008>Rgds</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008>Julian</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D289475911-18122008></SPAN></FONT>&nbsp;</DIV></DIV>
<DIV>
<HR>
</DIV>
<DIV style=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New">This email with =
all=20
information contained herein or attached hereto may contain confidential =
and/or=20
privileged information intended for the addressee(s) only. If you have =
received=20
this email in error, please contact the sender and immediately delete =
this email=20
in its entirety and any attachments thereto.</DIV>
<DIV style=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New">(H1)</DIV>
<DIV style=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier =
New">&nbsp;</DIV></DIV>
<DIV>
<HR>
</DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New">This email with =
all information contained herein or attached hereto may contain =
confidential and/or privileged information intended for the addressee(s) =
only. If you have received this email in error, please contact the =
sender and immediately delete this email in its entirety and any =
attachments thereto.</DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier New">(H1)</DIV>
<DIV STYLE=3D"FONT-SIZE: 9pt; FONT-FAMILY: Courier =
New">&nbsp;</DIV></BODY></HTML>

------_=_NextPart_001_01C986A8.3C823FD9--