installing LWP library on remote host...

They have: 447 posts

Joined: Oct 1999

hi, I am currently using a free hosting service for my site and I would like to use LWP::Simple, however, the host does not have this module installed.

Now, I have tried uploading all LWP modules to my cgi bin and chmodin em to 777 which did not work.

I tried adding my cgi-bin to @inc like so:
use lib '/path_to_cgi/cgi-bin';
it did not work.

I tried putting the entire collection in a directory named LWP (chmod everything to 777) and adding that dir to @inc, did not work.

and in all of the above attempts, simply commenting out the line
#use LWP::Simple;
eliminated any errors so I know that was the problem.

This should be possible, right? what the heck am i doin wrong? I sent an email to the sitemaster 4 days ago and havnt heard anything back so I dont know if hell cooperate and install it for me. Any suggestions?

They have: 568 posts

Joined: Nov 1999

Well, for LWP to work correctly you need to compile it in telnet. You can usually do this using the CPAN module, that will download all the files needed to your computer.

I seriously doubt that your host will let you do this... A lot of server admins are paranoid about LWP being a "security" hazord.

You could use sockets instead.

They have: 447 posts

Joined: Oct 1999

Thanks for the reply.

Now Ive been looking for info on sockets, and I cant seem to find any good tuitorials. The books I have dont provide a whole lot of info and all the examples I find use LWP. Can someone point me towards a simple script that will allow me to fetch a webpage? Cgi-resources doesnt have any.

Thanks

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.