Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Any monks care to help out a young Aussie starting out with Perl?

by zengargoyle (Deacon)
on Dec 18, 2002 at 03:34 UTC ( #220752=note: print w/replies, xml ) Need Help??


in reply to XML/XSLT resources

what you wish for can be done, it's just not easy to do nor to explain. the basic idea goes like this.

  • build on a development machine. you need to match architecture and OS.
  • build the needed libraries. static is best unless you want real pain.
  • build the perl module so that it uses the static library and installs in it's own directory.
  • copy your directory of perl modules up to your web space and use them from your scripts.

sounds easy, and sometimes it is.

$ cd /tmp/libfoo-0.0.1 $ ./configure --prefix=/tmp/support $ make $ make install $ ls /tmp/support/lib libfoo.a libfoo.so libfoo.so.1 $ rm /tmp/support/libfoo.so* $ cd /tmp/Foo-0.0.1 $ perl Makefile.PL PREFIX=/tmp/support $ make $ make test $ make install $ scp -r /tmp/support/lib/perl5 me@provider:public_html/ $ cat >/tmp/test.pl #!/path/to/providers/perl use lib '/path/to/me/public_html/perl5'; use Foo; print "Content-type: text/plain\r\n\r\nWoot!"; ^D $ chmod ugo+rx /tmp/test.pl $ scp /tmp/test.pl me@provider:cgi-bin/

cross fingers and try it out. be warned, it can be much harder than this would suggest and it's better to try it local first to make sure it works. be prepared for pain.

  • Comment on Re: Any monks care to help out a young Aussie starting out with Perl?
  • Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2022-05-18 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?