Gossamer Forum
Home : General : Perl Programming :

LWP module substitute?

Quote Reply
LWP module substitute?
I can't fight with it anymore.

VirtualAve.net is a whole mess, it looks like the only module they installed is CGI.pm

Is there a way to substitute LWP.pm with some Perl code? Like emulate the process of LWP.
Many people (including me) on VirtualAve.net need LWP. Please, if any one knows the solution, help.

Thank you in advance.

Pasha

------------------
find.virtualave.net
Quote Reply
Re: LWP module substitute? In reply to
I don't understand. VirtualAve.net is on BSD (Unix), it can't have ActiveState installed.

Can you explain to me how you installed LWP? Step by step. Please Smile

Thank you!

Pasha

------------------
find.virtualave.net
Quote Reply
Re: LWP module substitute? In reply to
    You are not installing the LWP module, you are copying them to the server. Is not as good as installing it, but it helps...

As I said. In the modules dir in the ActiveState Perl version, that is a dir called LWP. Copy it to the server.
Copy the dir "auto" too...
Just that...
Quote Reply
Re: LWP module substitute? In reply to
There is no Perl code per se (not that I know of) that will replace the lwp module. But it could be done using sockets. The Fluid Dynamics Search Engine script does this:


http://www.xav.com/scripts/search/


A better and more practical solution would be to move to new server instead of trying to re-work Links to suit your server. It should be the other way around. You will run into other problems.

Dan Smile
Quote Reply
Re: LWP module substitute? In reply to
   I have LWP installed on VirtualAve.net!!!
If you have the ActiveState Perl on Window, you can do it ad I have done.
Just send all inside the dir LWP inside the Perl\site\lib and the dir auto inside that dir too.

Then put this code in your CGI: use lib '/home/user/public_html'; this /home/user is the dir where you uploaded all the files!

Mine is installed under /home/tmoretti/public_html if you can use this...
Quote Reply
Re: LWP module substitute? In reply to
Good method! It works.

ActiveState got all of them, but not the Fcntl. Here's what I need:
Code:
use CGI;
use LWP::UserAgent;
use URI::Escape;
use HTTP::Request;
use HTTP::Response;
use Fcntl;

I've searched CPAN sites, but Fcntl is not listed anywhere.
Have any one got it on hard drive? Please sent it to pasha@theflyingcranes.com .


Thank you.

Pasha

------------------
find.virtualave.net
Quote Reply
Re: LWP module substitute? In reply to
   Iīm happy that you got it to work!!!
But sorry, you are wrong! The Fcntl module exists in the activestate perl !! Itīs under Perl\lib and not Perl\site\lib as you may have searched, but if you donīt have anyway, ask me then I will send it to you by mail..
Quote Reply
Re: LWP module substitute? In reply to
Then something is wrong somewhere, because I copied the one Fcntl that is located in c:\Perl\lib to my server too.
And right now I think that LWP didn't work at the first time. Take a look at http://find.virtualave.net/cgi-bin/altavista.cgi

Pasha

------------------
find.virtualave.net
Quote Reply
Re: LWP module substitute? In reply to
Have you put the
use lib '/home/user/modules';

??

maybe thats the problem!
Quote Reply
Re: LWP module substitute? In reply to
Yep, take a look at this:
http://find.virtualave.net/cgi-bin/altavista.cgi

Pasha

------------------
find.virtualave.net
Quote Reply
Re: LWP module substitute? In reply to
Not knowing anything about virtualave...

Did you check file permissions ?? Smile

Is the path to LWP correct? (does perl know where to find it).

Did you upload the file in proper form -- bindary or ascii depending on what it is??

Quote Reply
Re: LWP module substitute? In reply to
Does HyperMart.net has these modules installed?
May be there's a reason to move to HyperMart.

Thank you.

Pasha

------------------
find.virtualave.net