LWP::Simple Problem !!


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers LWP::Simple Problem !!
# 1  
Old 03-26-2011
Lightbulb LWP::Simple Problem !!

Hi All,
I'm having a problem when I run the following code for example

Code:
perl -e 'use LWP::Simple; getprint "http://google.com"'
Can't locate LWP/Simple.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at -e line 1.
BEGIN failed--compilation aborted at -e line 1.

Whats wrong here ??? I'm new to Unix and Perl so please explain what I can do to resolve this issue ... I'm on OS X 10.4.11

Cheers Smilie
# 2  
Old 03-26-2011
It means what it says: It can't find that module. You don't have it installed, probably.
# 3  
Old 03-27-2011
Thanks Corona,
Yeah I figured that out but I need a solution Smilie .... I tried to install it but then it said I dont hv a C-compiler .... I tried installing GCC but failed .... can someone guide me in simple steps what need to be done to have this running on my Mac OSX 10.4.11
Cheers
# 4  
Old 03-27-2011
did u try this ?
Code:
sudo perl -MCPAN -e 'install LWP::UserAgent'

# 5  
Old 03-27-2011
Tried doing that didnt work ...

I then tried doing

Code:
sudo perl -MCPAN -e shell

and then
Code:
cpan> install Bundle::CPAN

for upgrade

and at one point it stopped and said ....

Code:
 CPAN.pm: Going to build D/DA/DAGOLDEN/Module-Build-0.3800.tar.gz

    -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

Recursive dependency detected:
    Bundle::CPAN
 => ExtUtils::MakeMaker
 => M/MS/MSCHWERN/ExtUtils-MakeMaker-6.56.tar.gz
 => File::Spec
 => S/SM/SMUELLER/PathTools-3.33.tar.gz
 => File::Path
 => D/DL/DLAND/File-Path-2.08.tar.gz
 => File::Spec.
Cannot continue.

# 6  
Old 03-27-2011
Give a try from this link

Installing LWP (Perl & LWP)
# 7  
Old 03-27-2011
I get this :

Code:
 CPAN.pm: Going to build G/GA/GAAS/libwww-perl-6.01.tar.gz

Perl v5.8.8 required--this is only v5.8.6, stopped at Makefile.PL line 3.
Running make test
  Make had some problems, maybe interrupted? Won't test
Running make install
  Make had some problems, maybe interrupted? Won't install
Bundle summary: The following items in bundle Bundle::LWP had installation
problems:
  MIME::Base64 Digest::MD5 URI Net::FTP HTML::Tagset HTML::Parser
  HTML::HeadParser LWP 
Running install for module HTML::Tagset
Running make for P/PE/PETDANCE/HTML-Tagset-3.20.tar.gz
  Is already unwrapped into directory /Users/noel/.cpan/build/HTML-Tagset-3.20
  Has already been processed within this session
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible
Running make for G/GA/GAAS/HTML-Parser-3.68.tar.gz
  Is already unwrapped into directory /Users/noel/.cpan/build/HTML-Parser-3.68

  CPAN.pm: Going to build G/GA/GAAS/HTML-Parser-3.68.tar.gz

    -- NOT OK
Running make test
  Can't test without successful make
Running make install
  make had returned bad status, install seems impossible

---------- Post updated at 08:08 AM ---------- Previous update was at 08:01 AM ----------

Does this mean Perl 5.8.6 doesnt support LWP ... I dont think so , but I'm not a computer expert ... please could you provide more info to solve this problem Smilie
Cheers
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Using LWP without hard coding password

Hi, I would like to read content from a https site. I have decided to use LWP module in perl. but it throwed 401 Authorization required error. i dont want to hard code the password in my perl code. Is there any way to achieve the authentication without hardcoding the password. Thanks,... (1 Reply)
Discussion started by: pandeesh
1 Replies

2. Shell Programming and Scripting

parsing a webpage - perl lwp

I am requesting for the text parsing section below. Any helps are highly appreciated. <tr valign="top"><td nowrap>Source name</td> <td style="text-align: justify">Sample Name<br></td> I want Sample Name from above. In the same file, I have to search for another pattern like this <td><a... (1 Reply)
Discussion started by: jacobs.smith
1 Replies

3. Shell Programming and Scripting

lwp-request examples

Hi; Can i have ne sample examples of of using " lwp-request" in shell script. Is it necessary to have perl installed already in linux box for using this; Thnks; (2 Replies)
Discussion started by: ajaypadvi
2 Replies

4. Shell Programming and Scripting

Perl LWP user authentication

Hello all.. i am new to perl scripting.. i wanted to parse a text file, encode the parsed text and attach in url.. please point me to right resources if you know any..This is my major problem. Now i try to get a url running and save it in a text file using LWP module in perl, I used following... (0 Replies)
Discussion started by: empyrean
0 Replies

5. Shell Programming and Scripting

authentication using LWP

Can some one tell me how to post the username and password using perl LWP. An example is sufficient.. (0 Replies)
Discussion started by: Anjan1
0 Replies

6. Shell Programming and Scripting

Login using perl LWP module

Hi, Could some one tell me how to login to any web site and get that page using perl LWP. I heard that we can login to the site using LWP. I dont want to use WWW:Mechanize as I dont have that module installed on the server. Appreciate your early response. Thanks... (8 Replies)
Discussion started by: Anjan1
8 Replies

7. Shell Programming and Scripting

Help needed in Perl LWP module

Hi, I've a issue in writing a perl script that will automatically monitor the site availability. There are two different cookies are set in two consecutive flows to a URL and this second cookie has to be passed to the third step which actually gives permission to access based upon the cookie. ... (1 Reply)
Discussion started by: dayanandra
1 Replies

8. Solaris

oracle process and LWP on solaris 8 box

Hi all, Without oracle tunning I understand that oracle processes always run on a single CPU at a time (the prstat output always show 1 CPU number) even on multi-processor hardware. Is it correct? Regards, (1 Reply)
Discussion started by: solea
1 Replies

9. Solaris

decipher pstack with problem lwp

My company has a product that is running on JBoss on Solaris against Oracle 8.1.7. We are having an issue with the server process and high CPU utilization. During this time, and only during this time, we are experiencing database locks that will not let go. A 'ps -L' on the server process... (5 Replies)
Discussion started by: hosierdm
5 Replies

10. UNIX for Dummies Questions & Answers

LWP module ?

my host run on a Free bsd server and i have a cgi script that requires LWP module, but i my host say that that module is installed, so i would like to know if the is a command because i have telnet access to know if the module or which modules are installed on my account (itīs that the script donīt... (4 Replies)
Discussion started by: Beto
4 Replies
Login or Register to Ask a Question