MacPort: how to port perl?

2008-09-07 Thread Vic Norton
I want to access https URLs on the web via LPW. To do this I need  
Crypt::SSLeay.


I have not been able to install Crypt::SSLeay directly so I tried  
MacPorts. Everything seemed to go fine, but LPW::UserAgent says  
Crypt::SSLeay is not installed:


   501 Protocol scheme 'https' is not supported (Crypt::SSLeay not  
installed)


I can see Crypt::SSLeay in two places:
   /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/Crypt/SSLeay
   /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/auto/Crypt/ 
SSLeay

Right now I've got
   PERL5LIB=/Library/Perl/5.8.6:/opt/local/lib/perl5/vendor_perl/ 
5.8.8/darwin-2level
LPW insists Crypt::SSLeay is not installed. I've tried various other  
PER5LIB strings that seemed appropriate. None worked.


How do I get Perl to recognize a Perl module ported via MacPorts? In  
particular, how do I get LPW::UserAgent to see Crypt::SSLeay?


Thanks for any advice you van give me.

Regards,

Vic



Re: MacPorts: how to port perl?

2008-09-07 Thread Vic Norton

I've solved the problem. The solution was simple.

As David Green suggested I was having a problem with Perl versions.  
The original script started with the shebang line

   #!/usr/bin/perl -w
I was running Perl 5.8.6 here; Crypt::SSLeay could not be found in  
this Perl's libraries. When I switched the shebang line to

   #!/opt/local/bin/perl -w
the corresponding Perl 5.8.8 had no trougle finding Crypt::SSLeay,  
and everything worked fine.


Thanks for your input!

Regards,

Vic


On Sep 7, 2008, at 10:09 AM, Vic Norton wrote:

I want to access https URLs on the web via LPW. To do this I need  
Crypt::SSLeay.


I have not been able to install Crypt::SSLeay directly so I tried  
MacPorts. Everything seemed to go fine, but LPW::UserAgent says  
Crypt::SSLeay is not installed:


   501 Protocol scheme 'https' is not supported (Crypt::SSLeay not  
installed)




Re: MacPort: how to port perl?

2008-09-07 Thread David Green
Do you have an issue of Perl versions here -- 5.8.6 having been  
upgraded to 5.8.8?  I never solved the issue myself; ultimately I  
just stayed with the OS X standard or 5.8.8 and removed MacPorts.   
Would love for some clued in explanations ;)


I can not remember the details of what I was trying but I guess it  
was less important then having a fully 'aware' Perl installation.


David





On 7 Sep, 2008, at 10:09, Vic Norton wrote:

I want to access https URLs on the web via LPW. To do this I need  
Crypt::SSLeay.


I have not been able to install Crypt::SSLeay directly so I tried  
MacPorts. Everything seemed to go fine, but LPW::UserAgent says  
Crypt::SSLeay is not installed:


   501 Protocol scheme 'https' is not supported (Crypt::SSLeay not  
installed)


I can see Crypt::SSLeay in two places:
   /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/Crypt/SSLeay
   /opt/local/lib/perl5/vendor_perl/5.8.8/darwin-2level/auto/Crypt/ 
SSLeay

Right now I've got
   PERL5LIB=/Library/Perl/5.8.6:/opt/local/lib/perl5/vendor_perl/ 
5.8.8/darwin-2level
LPW insists Crypt::SSLeay is not installed. I've tried various  
other PER5LIB strings that seemed appropriate. None worked.


How do I get Perl to recognize a Perl module ported via MacPorts?  
In particular, how do I get LPW::UserAgent to see Crypt::SSLeay?


Thanks for any advice you van give me.

Regards,

Vic





Re: MacPort: how to port perl?

2008-09-07 Thread Vic Norton

On Sep 7, 2008, at 11:42 AM, David Green wrote:

Do you have an issue of Perl versions here -- 5.8.6 having been  
upgraded to 5.8.8?  I never solved the issue myself; ultimately I  
just stayed with the OS X standard or 5.8.8 and removed MacPorts.   
Would love for some clued in explanations ;)


I can not remember the details of what I was trying but I guess it  
was less important then having a fully 'aware' Perl installation.


David


Hi David,

As far as I can tell Perl on a Mac pays absolutely no attention the  
environmental variable PERL5LIB. I have eliminated all PERL5LIB  
specifications on my machine.


Here are a couple of test scripts that illustrate my point.

Script 1
   [put either shebang line here]

   #!/usr/bin/perl -w
   #!/opt/local/bin/perl -w

   # test1.pl  - Test Perl constructs

   use strict;
   use Date::Format;

Script 2
   [put either shebang line here]

   #!/usr/bin/perl -w
   #!/opt/local/bin/perl -w

   # test2.pl  - Test Perl constructs

   use strict;
   use Crypt::SSLeay;

When I run Script 1, either from Terminal or from BBEdit, nothing  
happens with the top shebang line (Date::Format is in my /usr/bin/ 
perl [5.8.6] tree), but I get an error message listing @INC with the  
bottom shebang line (Date::Format is not in my /opt/local/bin/perl  
[5.8.8] tree).


Just the opposite situation occurs when I run Script 2, either from  
Terminal or from BBEdit. I get an error message listing @INC with top  
bottom shebang line (Crypt::SSLeay is not in my /usr/bin/perl [5.8.6]  
tree), but nothing happens with the bottom shebang line  
(Crypt::SSLeay is in my /opt/local/bin/perl [5.8.8] tree).


I have found no way of running a module in one Perl tree with the  
other version of Perl.


Regards,

Vic



Re: MacPort: how to port perl?

2008-09-07 Thread Doug McNutt
At 18:23 -0400 9/7/08, Vic Norton wrote:
As far as I can tell Perl on a Mac pays absolutely no attention the  
environmental variable PERL5LIB. I have eliminated all PERL5LIB  specifications 
on my machine.

You WILL have that problem if you try to define PERL5LIB as an environment 
variable in your .profile or one of the *rc scripts.

If you define it in $HOME/.MacOSX/environment.plist it will actually be read at 
log in to aqua time and will be reflected in whatever shell script or bbedit 
worksheet that you open after that.

A login to MacOS neXt bears no resemblance to a login via ssh.

-- 
-- If  it's not  on  fire  it's  a  software  problem. --