in reply to Re^3: PDL installation problem
in thread PDL installation problem

thanks rob, tried it again and PDL needs Astro::FITS::Header started with Astro::FITS::Header
export PERL5LIB=/home/my_fodler/lib 1.: perl Build.PL INSTALL_BASE=/home/my_folder/lib 2.: ./Build -> OK ./Build test -> OK ./Build install -> Warning: You do not have permissions to install + into /usr/local/lib/perl5/site_perl/5.8.8 at /usr/local/lib/perl5/5. +8.8/ExtUtils/Install.pm line 114. mkdir /usr/local/lib/perl5/site_perl/5.8.8/Astro: Permission denied at + /usr/local/lib/perl5/5.8.8/ExtUtils/Install.pm line 176
I set the path but he wants to install again on usr/.... ??????

Replies are listed 'Best First'.
Re^5: PDL installation problem
by syphilis (Archbishop) on Jun 24, 2011 at 08:53 UTC
    In addition to Anonymous Monk's reply, I notice there's also a typo in what you've tried. In the PERL5LIB setting you specified "fodler" instead of "folder".
    Also, if you run
    perl Makefile.PL INSTALL_BASE=/home/my_folder/lib
    I think you'll find that PERL5LIB would need to be set to
    /home/my_folder/lib/lib/perl5
    and it's probably the same with Build.PL and --install_base.
    Anyway, see how you go - you can always amend your PERL5LIB setting as necessary.

    Cheers,
    Rob
      Now I think i destroyed something....I tried to install local:lib with that instruction: http://perl.jonallen.info/writing/articles/install-perl-modules-without-root after setting: echo 'eval $(perl -I$HOME/local-lib-1.008004/lib -Mlocal::lib)' >>~/.bashrc something is wrong. Each time if I open a new terminal i got this message inside the terminal (and also all colleagues who are working under that username)
      Can't locate local/lib.pm in @INC (@INC contains: /home/XXX compilation aborted
      how can i desinstall or cancel this local::lib stuff????

        Edit your (resp. the target users) ~/.bashrc and remove the local::lib line again.

        Also, consider learning a bit about the shell(s) you are working under, especially if you are modifying the environment of a user account that is shared among several people.

        how can i desinstall or cancel this local::lib stuff????

        Undo what you did.

        What did you do? Do you know? You edited .bashrc, you appended stuff to it

        Append this instead

        export PERL5LIB=/home/user/stuff/lib/perl5

        export PERL_MB_OPT=--install_base /home/user/stuff

        export PERL_MM_OPT=INSTALL_BASE=/home/user/stuff

Re^5: PDL installation problem
by Anonymous Monk on Jun 24, 2011 at 08:23 UTC