Re: CPAN module install error... can you guys help?

2002-12-17 Thread james lundeen
ok. that all sounds great, but i don't know enough about linux to do all of this.  the 
stuff i did
last night was all new to me.  i am in the process (this moment) of setting up RH8.0 
on a old
machine i had in the closet.  this is the very first time i've done a server from 
scratch.  it is
actually seeing the internet and i can actually get to it by IP address... so 
hopefully after
installing some items (mysql, etc) i can use it as a test server...thanks for 
all of your
input!  -jimmyjames


--- Wiggins d'Anconia [EMAIL PROTECTED] wrote:
 The script should work, but when building the module I believe you will 
 need access to the header files, etc. and possibly even when running it, 
 as the make process is trying to compile SSLeay.c file to use as part of 
 the SSLeay.xs module component.  So your script will work, but you won't 
 be able to build the module without the devel package.  Which if my 
 understanding is correct you have two options:
 
 1) Download the source for openssl and set the corresponding shell 
 variables (not sure what all you need, LD_LIBRARY_PATH, etc.) so that 
 the make process can find your version of openssl (in your home 
 directory, for instance)
 
 or...
 
 2) Build the module on a separate machine, preferably running the same 
 compiler versions, openssl versions, etc. and then upload the module to 
 the server and do a *ton* of testing to see if it still works in all its 
 glory.
 
 http://danconia.org
 
 (p.s. make sure to group reply so the list can help too)
 
 james lundeen wrote:
  I'm on an OLM server.  I think it's RH 7.2  - I updated Perl and the other
 bacomponentsmponants
  last night after I put this message out.  So I'm running 5.8.0 Perl now...   I'm 
trying to get
  this to work so that I can communicate with Authorize.Net.  The script I use works 
just fine
 on my
  RH 7.3 server.  I did an item-by-item comparison w/r/t the versions of OpenSSL, 
etc between
 the
  two servers and everything is the same.  That's why I'm s lost here.  I'm 
really running
  against a deadline too, so I'm starting to panic.  Anyone with suggestions, I'd 
really
 appreciate
  them...   JimmyJamesp.s.  the person who wrote the script said that as long as 
OpenSSL was
  installed with SSLeay, the script would work fine. And I am worked with the script 
enough on
 other
  servers that I believe this statement to be true.
  
  
  --- Wiggins d'Anconia [EMAIL PROTECTED] wrote:
  
 You need the openssl development stuff, not just the binary package, aka 
 it is looking for the headers, which are included in the source package, 
 or usually in a development package depending on your system.  Which 
 distro are you running?
 
 http://danconia.org
 
 james lundeen wrote:
 
 yes, openssl is installed at /usr/bin/openssl ... anything else i should look 
at?
 
 
 --- Dr. Poo [EMAIL PROTECTED] wrote:
 
 
 Do you have openssl installed? It's a prerequisuite. Hence the openssl/... no 
 such file or directory errors 
 
 hope that helps, sorry it's so vaguejust try to install openssl...
 
   -Chris
 
 
 On Sunday 15 December 2002 11:49 pm, james lundeen wrote:
 
 
 cpaninstall Net::SSLeay
 
 and everyhing went OK until this stuff happened...  i had tried a manual
 install of the module first and received thie error, then i tried using
 cpan for the first time -- which is cool!  -- but got the error again...  
 any advice would be appreciated!   --jimmyjames
 
 
 make[1]: Entering directory
 `/root/.cpan/build/Net_SSLeay.pm-1.21/Net-SSLeay-Handle-0.50' mkdir
 ../blib/lib/Net/SSLeay
 mkdir ../blib/arch/auto/Net/SSLeay/Handle
 mkdir ../blib/lib/auto/Net/SSLeay/Handle
 cp Handle.pm ../blib/lib/Net/SSLeay/Handle.pm
 Manifying ../blib/man3/Net::SSLeay::Handle.3pm
 make[1]: Leaving directory
 `/root/.cpan/build/Net_SSLeay.pm-1.21/Net-SSLeay-Handle-0.50' /usr/bin/perl
 -I/usr/lib/perl5/5.6.0/i386-linux -I/usr/lib/perl5/5.6.0
 /usr/lib/perl5/5.6.0/ExtUtils/xsubpp  -typemap
 /usr/lib/perl5/5.6.0/ExtUtils/typemap -typemap typemap SSLeay.xs 
 SSLeay.xsc  mv SSLeay.xsc SSLeay.c
 gcc -c -I/usr/include -I/usr/inc32 -fno-strict-aliasing
 -I/usr/local/include -O -DVERSION=\1.21\ -DXS_VERSION=\1.21\ -fPIC
 -I/usr/lib/perl5/5.6.0/i386-linux/CORE -DPERL5 SSLeay.c
 SSLeay.xs:83:25: openssl/err.h: No such file or directory
 SSLeay.xs:84:27: openssl/lhash.h: No such file or directory
 SSLeay.xs:85:26: openssl/rand.h: No such file or directory
 SSLeay.xs:86:28: openssl/buffer.h: No such file or directory
 SSLeay.xs:87:25: openssl/ssl.h: No such file or directory
 SSLeay.xs:88:74: openssl/comp.h: No such file or directory
 SSLeay.xs:89:93: openssl/md5.h: No such file or directory
 make: *** [SSLeay.o] Error 1
  /usr/bin/make  -- NOT OK
 Running make test
  Oops, make had returned bad status
 Running make install
  Oops, make had returned bad status
 
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 

2 Code Interpretation ?s

2002-12-17 Thread Will
Greets Folks,

2 Questions here...

1.) I am self taught, so I dont know all the formal
details of Perl coding, but every now and then I run
across code that reads like alphabet soup...  for
instance, lines like (taken at random):

The conditional here...

if ($cgi-param('forum') =~ /^(\d+)$/)) 

Or, like:

sub trim
{
my $str = shift;

return  if ! defined $str;
$str =~ s/^\s+//;
$str =~ s/\s+//;
return($str);
}

I dont understand how to read whats happening in those
sections.  I think it's called parsing, but I need
some sort of confirmation and direction there...  I
mean, its not just a question of how to do it, but
also why and when to parse input...

Anyway, is parsing what I need to learn to understand
code like the examples above?   And, if it is, then
where could I begin to learn how to parse effectively
enough to get a real grip on it?

Thanks,

Will

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: 2 Code Interpretation ?s

2002-12-17 Thread Kipp, James


 2 Questions here...
 
 1.) I am self taught, so I dont know all the formal
 details of Perl coding, but every now and then I run
 across code that reads like alphabet soup...  for
 instance, lines like (taken at random):
 
 The conditional here...
 
 if ($cgi-param('forum') =~ /^(\d+)$/)) 

Start reading :-)
perldoc CGI;
or if you like it on the web:
http://stein.cshl.org/WWW/CGI/

also read up on regex: perldoc perlre



 
 Or, like:
 
 sub trim
 {
 my $str = shift;
 
 return  if ! defined $str;
 $str =~ s/^\s+//;
 $str =~ s/\s+//;
 return($str);
 }

again regex and 'perldoc perlsub'

after reading through these, i think you will understand and it is far
better this way then somebody just telling you what the code does 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: 2 Code Interpretation ?s

2002-12-17 Thread wiggins
One more that the other poster didn't mention:

perldoc perlretut

This goes over Regular Expressions in a slightly higher level than just Perl's 
thoughts on the subject.

http://danconia.org


On Tue, 17 Dec 2002 05:41:57 -0800 (PST), Will [EMAIL PROTECTED] wrote:

 Greets Folks,
 
 2 Questions here...
 
 1.) I am self taught, so I dont know all the formal
 details of Perl coding, but every now and then I run
 across code that reads like alphabet soup...  for
 instance, lines like (taken at random):
 
 The conditional here...
 
 if ($cgi-param('forum') =~ /^(\d+)$/)) 
 
 Or, like:
 
 sub trim
 {
 my $str = shift;
 
 return  if ! defined $str;
 $str =~ s/^\s+//;
 $str =~ s/\s+//;
 return($str);
 }
 
 I dont understand how to read whats happening in those
 sections.  I think it's called parsing, but I need
 some sort of confirmation and direction there...  I
 mean, its not just a question of how to do it, but
 also why and when to parse input...
 
 Anyway, is parsing what I need to learn to understand
 code like the examples above?   And, if it is, then
 where could I begin to learn how to parse effectively
 enough to get a real grip on it?
 
 Thanks,
 
 Will
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 -- 
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




solved (was Re: any idea to solve this problem?)

2002-12-17 Thread Admin-Stress
Hi,

It solved by putting this codes for flushing cgi output :

   $|=1;
   sleep 5;

It was suggested by someone.
Anyone can explain, what does $|=1 means?

kapot

--- Larry Coffin [EMAIL PROTECTED] wrote:
 I was wondering if I can 'flush' the cgi operation, so in SAVE_CONFIG.PL
 will be like this :
 
   Ok Configuration saved.;
 
   flush_cgi_operation;
   # so, cgi output is written in the user browser
 
   How about just closing STDOUT -- 'close(STDOUT);'? That should
 close the filehandle and flush the output. Whether that results in the
 output getting pushed on through to the web client and the connection being
 closed or not may depend on the server software you are using.
 
   ---Larry


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: solved (was Re: any idea to solve this problem?)

2002-12-17 Thread Mystik Gotan
$| is a system-variabele for buffering. With 1, you're activcating it.

--
Bob Erinkveld (Webmaster Insane Hosts)
www.insane-hosts.net
MSN: [EMAIL PROTECTED]





From: Admin-Stress [EMAIL PROTECTED]
To: perl cgi [EMAIL PROTECTED]
Subject: solved (was Re: any idea to solve this problem?)
Date: Tue, 17 Dec 2002 07:52:25 -0800 (PST)

Hi,

It solved by putting this codes for flushing cgi output :

   $|=1;
   sleep 5;

It was suggested by someone.
Anyone can explain, what does $|=1 means?

kapot

--- Larry Coffin [EMAIL PROTECTED] wrote:
 I was wondering if I can 'flush' the cgi operation, so in 
SAVE_CONFIG.PL
 will be like this :

   Ok Configuration saved.;
 
   flush_cgi_operation;
   # so, cgi output is written in the user browser

 	How about just closing STDOUT -- 'close(STDOUT);'? That should
 close the filehandle and flush the output. Whether that results in the
 output getting pushed on through to the web client and the connection 
being
 closed or not may depend on the server software you are using.

 	---Larry


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


_
Ontvang je Hotmail  Messenger berichten op je mobiele telefoon met Hotmail 
SMS http://www.msn.nl/jumppage/


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]