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

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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

In reply to Re: Is it possible to use modules without installing them? by sharkey
in thread Is it possible to use modules without installing them? by Nemp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-03-29 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found