Trying to make LWP work with httpS

2004-01-03 Thread Tim Murphy
Hi,

I just got finished force installing Crypt::SSLeay to my OSX 10.3.2 box.

When I try to run a perl code that calls https, instead of my previous  
error message of:
 501 Protocol scheme 'https' is not supported

I now post SSLeay install get:

dyld: perl Undefined symbols:
/Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Crypt/SSLeay/ 
SSLeay.bundle undefined reference to _OpenSSL_add_all_algorithms  
expected to be defined in a dynamic image
Trace/BPT trap

I googled the error message, and didn't get anything.. It's a bad  
message when google doesn't even come back with a hit.. But I stumbled  
across your list serv, and was hoping a perl guru might be able to lend  
me some help..

I haven't had great luck with CPAN.. is there another way to install  
modules?

any ideas?
thanks
tim
my https code below.. straight copy pasted from elsewhere..
---
#!/usr/bin/perl -w
use LWP::Simple;
  my $url = 'https://www.site.com/cgi-bin/ip.pl';
  my $content = get $url;
  die Couldn't get $url unless defined $content;
  print $content;


Re: Trying to make LWP work with httpS

2004-01-03 Thread Oliver Schnarchendorf
On Fri, 2 Jan 2004 06:39:07 -0500, Tim Murphy wrote:
 dyld: perl Undefined symbols:
 /Library/Perl/5.8.1/darwin-thread-multi-2level/auto/Crypt/SSLeay/SSLeay.bundle 
 undefined reference to _OpenSSL_add_all_algorithms expected to be 
 defined in a dynamic image
 Trace/BPT trap
 
 I googled the error message, and didn't get anything.. It's a bad 
 message when google doesn't even come back with a hit.. But I 
 stumbled across your list serv, and was hoping a perl guru might be 
 able to lend me some help..
Tim,

it seems that perl can't access some library functions that it needs to make 
SSLeay work.

You might want to do the following:
Search for OPENSSL, e.g.:
sudo find / openssl | grep openssl

Depending on if you installed the Developer Tools or not you get 2 or 
1 location(s) for the main file returned. E.g.:
/usr/include/openssl

Now... take a look at your PATH, e.g.:
set | grep PATH

Are the directories for the openssl main directory included in the 
PATH?
If not you have two choices:

a) add the openssl main directory to the path
PATH=$PATH:/usr/openssl
b) add INCLUDE tags for openssl
export OPENSSL_INCLUDE=/usr/openssl/include

Hope this helps.

thanks
/oliver/



Re: Trying to make LWP work with httpS

2004-01-03 Thread Sherm Pendley
On Jan 2, 2004, at 6:39 AM, Tim Murphy wrote:

I just got finished force installing Crypt::SSLeay
There's the problem, right there. Using force install doesn't solve 
compile problems, it simply tells the CPAN shell to ignore them and 
install the module anyway.

What error messages did you get when you compiled the module? When it 
asked what openssl library to use, did you tell it to use the one in 
/usr (the default), or did you specify a different one?

I haven't had great luck with CPAN.. is there another way to install 
modules?
CPAN neither causes nor prevents compile errors. All it does is 
download the module, unwrap the tarball, and run perl Makefile.PL; 
make; make test; make install. If that sequence of commands fails 
under CPAN, it will fail in the same way if you run it manually.

sherm--



Re: Missing files in /usr/local

2004-01-03 Thread Sherm Pendley
On Jan 3, 2004, at 10:43 AM, Gohaku wrote:

I know ImageMagick is not part of the Mac OS X install but I know Lynx 
is, and I also know lynx is required for CPAN.
Lynx is neither included with Mac OS X nor required by CPAN.

Can anybody tell me what other files I could be missing from /usr/local
Honestly, no, we can't.

No files are installed under /usr/local by Apple. The only things 
installed there are things you installed yourself. Without resorting to 
ESP or some other psychic means, there's no way for anyone here to know 
what that was.

sherm--



Re: Missing files in /usr/local

2004-01-03 Thread Gohaku
On Jan 3, 2004, at 10:54 AM, Sherm Pendley wrote:

On Jan 3, 2004, at 10:43 AM, Gohaku wrote:

I know ImageMagick is not part of the Mac OS X install but I know 
Lynx is, and I also know lynx is required for CPAN.
Lynx is neither included with Mac OS X nor required by CPAN.

During CPAN's initial setup, I recall a prompt asking where lynx and 
ncftp is.
If that's not the case, my mistake.
Can anybody tell me what other files I could be missing from 
/usr/local
Honestly, no, we can't.

No files are installed under /usr/local by Apple. The only things 
installed there are things you installed yourself. Without resorting 
to ESP or some other psychic means, there's no way for anyone here to 
know what that was.
That's good to know that System Type files were not deleted.
Thanks again.

sherm--




Re: Missing files in /usr/local

2004-01-03 Thread Chris Devers
On Sat, 3 Jan 2004, Gohaku wrote:

 On Jan 3, 2004, at 10:54 AM, Sherm Pendley wrote:

  On Jan 3, 2004, at 10:43 AM, Gohaku wrote:
 
  I know ImageMagick is not part of the Mac OS X install but I know
  Lynx is, and I also know lynx is required for CPAN.
 
  Lynx is neither included with Mac OS X nor required by CPAN.

 During CPAN's initial setup, I recall a prompt asking where lynx and
 ncftp is.
 If that's not the case, my mistake.

But that's just a standard part of the configuration process. The setup
program is written in such a way that it tries to probe what resources you
have available and where they might be, and then the tool makes use of the
resources it was able to discover.

In other words, it'll always ask, on every platform, whether you have
programs like lynx  ncftp, whether or not you actually have a copy.

Whether or not you have copies of the programs it's looking for is a
different matter entirely. Some of these things will come with your
system, depending on what system you're using, while others may be things
you installed manually. OSX happens not to come with either lynx or ncftp
by default (though I have a vague memory that 10.1 or 10.2 did have ncftp,
but 10.3 doesn't seem to have a copy), but you may have put a copy of your
own somewhere like /usr/local or /sw.

The thing to keep in mind though is that the local in /usr/local is
meant to suggest that this directory is set aside by the vendor for the
local user to do with as s/he sees fit. Apple should *never* install
anything in /usr/local, and as far as I know, they never have. Other
vendors like Sun, Red Hat, SGI, SuSE, etc also leave /usr/local alone.

Therefore, if /usr/local was not empty on your system, then whatever was
in there was put there by you, and no one else is likely to know what you
would have decided to install there.

Make sense?


-- 
Chris Devers


Re: Missing files in /usr/local

2004-01-03 Thread Gohaku
On Jan 3, 2004, at 12:41 PM, Chris Devers wrote:

Therefore, if /usr/local was not empty on your system, then whatever 
was
in there was put there by you, and no one else is likely to know what 
you
would have decided to install there.

Make sense?
Yes.
Thanks again.