Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: which perl gui toolkit to use?

by BrowserUk (Patriarch)
on Feb 15, 2005 at 12:56 UTC ( [id://431145]=note: print w/replies, xml ) Need Help??


in reply to which perl gui toolkit to use?

The big question here may be:"Why doesn't CPAN work?".

That said, a very astute guy with respect to installing and building perl modules, once showed me how much quicker it is to use wget to fetch the tar.gz, and gunzip/tar to unpack it, then follow the usual 4 stanza blessing to build and install it. I never looked back.

Whilst it's true that you have to work out any dependancies yourself, it still worked whenever CPAN or CPANPLUS wouldn't.


Examine what is said, not who speaks.
Silence betokens consent.
Love the truth but pardon error.

Replies are listed 'Best First'.
Re^2: which perl gui toolkit to use?
by Anonymous Monk on Feb 15, 2005 at 13:06 UTC
    Most likely due to network restrictions, or certain helper software not available. CPAN has sometimes a hard time getting out of a firewall (which is sometimes caused by the person configuring CPAN not knowing what to answer to all the questions). Also, to get out, CPAN is geared towards LWP - which - *grumble* *grumble* isn't part of the core. And where getting out with LWP might be possible, it won't be possible with ftp, or whatever CPAN tries if LWP isn't there.

    But as you said, downloading it yourself and running perl Makefile.PL, make, make test, make install is fairly simple. I don't know about other GUIs, but Tk doesn't have dependencies. It takes a few minutes due to all the compiling, but installing Tk is simple. In fact, it's easier to install by hand than from CPAN - if you install from CPAN, you compile/test running as the same user you're going to install the modules with. And that's not necessary the same user as you're normally running under. Which, at least in my setup, means that the user making/testing Tk doesn't have permission to display widgets on the screen. Resulting in a test failure, and an aborted install.

Re^2: which perl gui toolkit to use?
by gaal (Parson) on Feb 15, 2005 at 15:28 UTC
    You should try installing Maypole on a virgin system with that approach. :-/

      I assume you mean that Maypole has a lot of dependancies and would therefore require a lot of work to install manually. But if CPAN doesn;t work for the simple case, it certainly won't work for the complex ones.

      The manual method may be tedious, but provided wget works, then the manual process will work.


      Examine what is said, not who speaks.
      Silence betokens consent.
      Love the truth but pardon error.
        Yes, of course.

        The problem installing Maypole is not just the number of dependencies, but their depth. Without something that helps you keep track of the recursive dependencies, it's easy to lose your mental stack pointer and give up somewhere in the n-teenth module.

        Even with CPAN, sometimes things break. My only half-joking workaround:

            system("cpan Maypole") while ! eval { require Maypole };

        (But to be fair, it's been a few months since I last touched Maypole. Things may have drastically improved!)

        ... if CPAN doesn;t work ... but provided wget works ...

        In my experience, recent versions of CPAN.pm will use wget in the absence of LWP. So if wget works then CPAN.pm should work too. Perhaps a manual install of the latest CPAN.pm should be the first step.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://431145]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (3)
As of 2024-04-24 21:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found