Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Perl / August 2007



Tip: Looking for answers? Try searching our database.

LWP install error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marek Stepanek - 28 Aug 2007 14:08 GMT
Hello all,

Have a new MBP, 17 inch :-) I need to install many many things new.

First I installed a new Perl 5.8.8 in /usr/local/ - Apple's OSX is
up-to-date and Xcode installed!

First something, where I am not sure about: I made

% mv /usr/bin/perl /usr/bin/perl_out
% ln /usr/local/bin/perl5.8.8 /usr/bin/perl

Is this right?

Now, my question about installing LWP: I tried to install LWP with cpan, but
got some test-errors (end of posting).

Then I tried to install everything by hand. The modules, which are needed
before the install of LWP I installed by hand:

 URI
 MIME-Base64
 HTML-Parser
 libnet
 Digest-MD5
 Compress-Zlib

Out of my folder: /usr/local/src/

But now the same errors from "make test" as before (end of posting). I
thought probably I have to switch on the Apache-Server and I started the
"Personal File Sharing" in my Sharing-Pref-Panel. Same errors!

Could be somebody help me out? Thank you in advance!

marek

...

live/apache-listing....ok
live/apache............FAILED test 1
       Failed 1/1 tests, 0.00% okay
live/jigsaw-auth-b.....ok
live/jigsaw-auth-d.....ok
live/jigsaw-chunk......ok
live/jigsaw-md5-get....FAILED test 2
       Failed 1/2 tests, 50.00% okay
live/jigsaw-md5........FAILED test 2
       Failed 1/2 tests, 50.00% okay
live/jigsaw-neg-get....ok
live/jigsaw-neg........ok
live/jigsaw-te.........ok
Failed Test           Stat Wstat Total Fail  List of Failed
----------------------------------------------------------------------------
---
live/apache.t                        1    1  1
live/jigsaw-md5-get.t                2    1  2
live/jigsaw-md5.t                    2    1  2
Failed 3/41 test scripts. 3/831 subtests failed.
Files=41, Tests=831, 73 wallclock secs ( 2.66 cusr +  0.59 csys =  3.25 CPU)
Failed 3/41 test programs. 3/831 subtests failed.
make: *** [test] Error 2

       
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
Trey Harris - 28 Aug 2007 14:35 GMT
In a message dated Tue, 28 Aug 2007, Marek Stepanek writes:
> First I installed a new Perl 5.8.8 in /usr/local/ - Apple's OSX is
> up-to-date and Xcode installed!
[quoted text clipped - 5 lines]
>
> Is this right?

"Right" in what sense?  This will have the effect of "/usr/bin/perl", or
just "perl" in most PATHs, using your install rather than the Apple
install, if that's what you mean by "right".

However, you now have Apple code running against a Perl it wasn't tested
with, and you are keeping around all of a Perl version that is no longer
usable, just wasting disk space (since, to my knowledge, no programs start
with #!/usr/bin/perl_out).

I personally would undo your last two steps, and just write your programs
to use #!/usr/local/bin/perl, and adjust your PATH so that /usr/local/bin
comes before /usr/bin.  That way, code written for Macs that expects
#!/usr/bin/perl to be the Apple-supplied Perl will continue to work as
expected.

Trey
Sherm Pendley - 28 Aug 2007 14:36 GMT
> Have a new MBP, 17 inch :-) I need to install many many things new.
>
[quoted text clipped - 7 lines]
>
> Is this right?

Yes, that's normal. In fact, /usr/bin/perl is by default just a link  
to /usr/bin/perl5.8.8.

> live/apache.t                        1    1  1
> live/jigsaw-md5-get.t                2    1  2
> live/jigsaw-md5.t                    2    1  2
> Failed 3/41 test scripts. 3/831 subtests failed.

I recall some talk about server-side problems with some of LWP's  
"live" tests. If I recall right, when you're configuring the module  
there's a prompt about whether to skip those or run them.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Marek Stepanek - 29 Aug 2007 16:01 GMT
>> live/apache.t                        1    1  1
>> live/jigsaw-md5-get.t                2    1  2
[quoted text clipped - 6 lines]
>
> sherm--

Thank you Sherm!

This was it:

%
You appear to be directly connected to the Internet.  I have some tests
that tries to access some sites on the net to verify that the new HTTP/1.1
support works as it should.

Do you want to enable these tests? [y] n

:-)

One little supplemental question:

%% echo $PATH
/sw/bin:/sw/sbin:/sw/include:/usr/local/bin:/usr/local/mysql/bin:/bin:/sbin:
/usr/bin:/usr/sbin:/usr/local/bin:/usr/texbin:/usr/X11R6/bin

Where is the $PATH-file to push the /sw to the end? The path is not saved in
.tcshrc nor .profile ... If I remember well it was somewhere in /Library?
May I edit this file by hand?

Thank you again

Marek

   
   
       
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
Sherm Pendley - 29 Aug 2007 16:06 GMT
> One little supplemental question:
>
[quoted text clipped - 8 lines]
> Library?
> May I edit this file by hand?

Fink usually installs a line in your .profile that sources the Fink  
startup script.

You could save $PATH t o $OLD_PATH before sourcing Fink's startup  
script, then after it runs just do $PATH="$OLD_PATH:/sw/
sbin:...etc..." with the additions at the end.

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.