$OPENSRS_TLDS_REGEX is defined in ....client/etc/OpenSRS.conf and is required by 
XML_Client.pm to validate domain names.  As Chuck says, make sure you change the 
"<path_to_conf_file>" in XML_Client.pm (and the cgi's for that matter), to the actual 
location of OpenSRS.conf in your installation.  You'll find the string in the BEGIN 
section of those files.

Dan

Charles Daminato wrote:

> It *should* work out of the box...
>
> There's a config in XML_Client.pm - you have to tell it the location of
> your OpenSRS.conf file.  I'm not sure why the programmers did this, but
> that'll fix your error.
>
> I didn't have to move OPS.pm into the lib directory... (or maybe I did?)
> I'll have to check my setup.
>
> Thanks for the feedback, and goodluck!
>
> Charles Daminato
> OpenSRS Support Manager
> [EMAIL PROTECTED]
>
> On Tue, 5 Sep 2000, Gregory Neil Shapiro wrote:
>
> > Has anyone been able to get the 2.2 code working as shipped?
> >
> > After installing, verify_install.cgi (and manage.cgi) gives:
> >
> > Can't locate OPS.pm in @INC (@INC contains: /usr/local/www/test.retsiger.com/lib 
>/usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 
>/usr/local/lib/perl5/site_perl/5.005/i386-freebsd 
>/usr/local/lib/perl5/site_perl/5.005 .) at 
>/usr/local/www/test.retsiger.com/lib/OpenSRS/XML_Client.pm line 44.
> > BEGIN failed--compilation aborted at 
>/usr/local/www/test.retsiger.com/lib/OpenSRS/XML_Client.pm line 44.
> > BEGIN failed--compilation aborted at 
>/usr/local/www/test.retsiger.com/cgi-bin/secure/verify_install.cgi line 36.
> > [Tue Sep  5 22:36:20 2000] [error] [client 209.220.147.181] Premature end of 
>script headers: /usr/local/www/test.retsiger.com/cgi-bin/secure/verify_install.cgi
> >
> > So I symlink lib/OpenSRS/{OPS,XML_CODEM}.pm to lib/ so it can find those
> > files.  Alternatively, I could have added lib/OpenSRS to the search path.
> >
> > However, it still fails:
> >
> > Global symbol "$OPENSRS_TLDS_REGEX" requires explicit package name at 
>/usr/local/www/test.retsiger.com/lib/OpenSRS/XML_Client.pm line 558.
> > Compilation failed in require at 
>/usr/local/www/test.retsiger.com/cgi-bin/secure/verify_install.cgi line 36.
> > BEGIN failed--compilation aborted at 
>/usr/local/www/test.retsiger.com/cgi-bin/secure/verify_install.cgi line 36.
> > [Tue Sep  5 22:36:52 2000] [error] [client 209.220.147.181] Premature end of 
>script headers: /usr/local/www/test.retsiger.com/cgi-bin/secure/verify_install.cgi
> >
> > I would have assumed the code would work "as is" out of the box but I guess
> > not.  Is it just me?
> >

Reply via email to