Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Is it possible to use modules without installing them?

by sharkey (Scribe)
on Aug 31, 2002 at 19:22 UTC ( #194376=note: print w/replies, xml ) Need Help??

in reply to Is it possible to use modules without installing them?

If you're only problem is being able to type 'make install', you can still easily use the module.

Assuming you have a shell account on the ISP, do the usual:
UPDATE: see the reply. Those steps work even better.

tar -zxvf GD-1.41.tar.gz cd GD-1.41 perl Makefile.PL make make test
(If you didn't make it this far because of missing libs, etc, you're out of luck, unless you can download and build those in your shell directory too. And yes, GD does use XS: notice the GD.xs file in the distribution.)

Now, in the top of your scripts which want to use GD, do this:

use lib '/home/neil/GD-1.41/blib/lib','/home/neil/GD-1.41/blib/arch'; use GD;
You'll see a line like this at the top of the test file, since the tests have to run without the module being installed.

BTW, use lib is like the following, but with more error-checking:

BEGIN { unshift (@INC, 'directory'); }
~ John Williams

Replies are listed 'Best First'.
(jeffa) Re: Is it possible to use modules without installing them?
by jeffa (Bishop) on Sep 01, 2002 at 13:17 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194376]
[stevieb]: ++ atcroft
[atcroft]: .oO(Then there is the effect if a site changes their timezone, such as when the International Date Line was moved by the purchase of Alaska by the US from Russia in 1867, or several places (I cannot recall off-hand) that moved from one side of the Date
[atcroft]: Line to the other recently....)

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2017-04-29 04:49 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (531 votes). Check out past polls.