Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Installing binary-dependant module on shared hosting (Time::Piece)

by dana (Monk)
on Apr 17, 2007 at 21:06 UTC ( [id://610647]=note: print w/replies, xml ) Need Help??

in reply to Installing binary-dependant module on shared hosting (Time::Piece)

You can specify the installation directory by following the directions at the bottom of the following:

Then specify which lib to use at the top of your perl script:
use lib qw( /this/is/the/path/to/my/installed/module/ )

  • Comment on Re: Installing binary-dependant module on shared hosting (Time::Piece)

Replies are listed 'Best First'.
Re^2: Installing binary-dependant module on shared hosting (Time::Piece)
by isync (Hermit) on Apr 17, 2007 at 22:22 UTC
    Does this comment imply I should stop manualy extracting module tars into my script dirs and instead modify the cpan workings to use a dir in my directory domain (and finally solve the permission problem)?


      You can use CPAN, writing to a directory of your choice to which you have access, then reference that directory in a 'use lib' statement.

        OK then, I made all the modifications to cpan and could install various modules to my private /lib path.

        But then: problems with Time::Piece again... The snippet from cpan: Going to build M/MS/MSERGEANT/Time-Piece-1.11.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Time::Piece cp blib/lib/Time/ cp blib/lib/Time/ /usr/local/bin/perl -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 /usr +/share/perl/5.6.1/ExtUtils/xsubpp -typemap /usr/share/perl/5.6.1/Ext +Utils/typemap Piece.xs > Piece.xsc && mv Piece.xsc Piece.c cc -c -DDEBIAN -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE +_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.11\" -DXS_VERSION= +\"1.11\" -fPIC -I/usr/lib/perl/5.6.1/CORE Piece.c Running Mkbootstrap for Time::Piece () chmod 644 rm -f blib/arch/auto/Time/Piece/ LD_RUN_PATH="" cc -shared -L/usr/local/lib Piece.o -o blib/arch/auto +/Time/Piece/ chmod 755 blib/arch/auto/Time/Piece/ cp blib/arch/auto/Time/Piece/ chmod 644 blib/arch/auto/Time/Piece/ Manifying blib/man3/Time::Seconds.3pm Manifying blib/man3/Time::Piece.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/li +b/perl/5.6.1 -I/usr/share/perl/5.6.1 -e 'use Test::Harness qw(&runtes +ts $verbose); $verbose=0; runtests @ARGV;' t/*.t t/01base............ok t/02core............ok t/03compare.........ok t/04mjd.............ok t/05overload........ok t/06subclass........FAILED tests 1-10 Failed 10/10 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +---------- t/06subclass.t 10 10 100.00% 1-10 Failed 1/6 test scripts, 83.33% okay. 10/128 subtests failed, 92.19% o +kay. make: *** [test_dynamic] Error 29 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force

        I used this command to alter my cpan conf:
        o conf makepl_arg "LIB=/myhome/myperl/lib \ INSTALLMAN1DIR=/myhome/myperl/man/man1 \ INSTALLMAN3DIR=/myhome/myperl/man/man3"

        Did I miss to define the path for binaries, as it seems from what cpan spit out??
      The CPAN config allows you to establish your own lib in your home file space (or anyplace you can write to). After which you can simply "use lib("path_to_your_cpan_libs") at the top of your perl code. So yes, that is the route that I go when I can't install to the system lib location for Perl. Another method with detail is described here ->

      The easiest way to get what you want is to

      $>perl -MCPAN -e sh


      cpan> o conf init

      Details here->

      hope that helps....

      ...the majority is always wrong, and always the last to know about it...

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-06-13 00:41 GMT
Find Nodes?
    Voting Booth?

    No recent polls found

    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.