Up Prev Next
From: STattitali at Paragon-Mcs dot com (Sandesh Tattitali)
Subject: RE: Wrapper for scripts
Date: Oct 16 1997 6:33PM
Yes , I did install the perl binaries on the same machine where I built them .However the Perl binaries are not in the standard directory viz. /usr/local/bin , /usr/local/lib etc., but are on a user directory viz. /devdb_dump/perl/.......
Sybase libraries are located in /sybase1102/lib.The Web server cgi-bin directory is /devdb_dump/httpd/cgi-bin. Without the wrapper scripts the following error (form the Web server error log) is obtained :
The context allocation routine failed when it tried to load localization files!!
One or more following problems may caused the failure
Your sybase home directory is /home/sybase. Check the environment variable SYBASE if it is not the one you want!
Cannot access file /home/sybase/config/objectid.dat
Sybase::CTlib initialize: cs_ctx_alloc() failed at /devdb_dump/perl/lib/sun4m/5.00401/DynaLoader.pm line 172.
BEGIN failed--compilation aborted at /devdb_dump/httpd/cgi-bin/employee.pl line 9.
[Tue Oct 14 13:03:36 1997] access to /devdb_dump/httpd/cgi-bin/employee.pl failed for sandesh, reason: Premature end of script headers
So is it just a problem with SYBASE not being set ? Or would it be a problem with all environment variables ?? I wrote a test script to print out all the ENV variables and I did find that SYBASE and LD_LIBRARY_PATH weren't set .
From: Michael Peppler[SMTP:firstname.lastname@example.org]
Sent: Thursday, October 16, 1997 1:58 PM
Subject: Re: Wrapper for scripts
Sandesh Tattitali wrote:
> I am on Solaris 2.5.1 . It would be better I guess to install sybperl and perl so that they don't need the LD_LIBRARY_PATH rather than writing wrapper scripts all over the place. Can U show me how ??
Normally you don't have to do anything at all.
Do you install the perl binaries on the same machine where you
build them? Is the location of the SYbase libraries different?
> Thanks and regards
> From: Michael Peppler[SMTP:email@example.com]
> Sent: Wednesday, October 15, 1997 6:19 PM
> To: SYBPERL-L@trln.lib.unc.edu
> Subject: Re: Wrapper for scripts
> Sandesh Tattitali wrote:
> > Hi everybody,
> > I am quite new to Sybperl and I apologize if I am repeating an oft discussed topic.
> > I am using Sybperl to write a CGI script to return some data from my database. I read in the Sybperl FAQ that it wasn't possible to set the environment from within the script and that I would need to have a 'wrapper' script to set the environment (most notably LD_LIBRARY_PATH). So am I to infer that all CGI scripts called from my HTML page would need to be either Bourne or C or Korn shell scripts that would set the environment and then invoke the appropriate Sybperl script ??
> Yes you are correct.
> However - what environment are you on? What OS/hardware platform?
> It is usually possible to install perl & sybperl in such a fashion that
> LD_LIBRARY_PATH is not required, and this would speed up your CGI
> quite a bit!
> Michael Peppler -||- Data Migrations Inc.
> firstname.lastname@example.org -||- http://www.mbay.net/~mpeppler
Michael Peppler -||- Data Migrations Inc.
email@example.com -||- http://www.mbay.net/~mpeppler