[Thread Prev][Thread Next]   >Date Index >Thread Index

Re: local cpan config

Robin Clarke - Thu Dec 02 11:18:49 2010

Also no luck, BUT... it seems that this error is from writing the HTML
docs, because now I get a similar, but slightly different error:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
ERROR: Can't create
'/home/swmdev/perl/ActivePerl-5.12.1.1201-i686-linux-glibc-2.3.2-292674/html/site/lib/Class'


I can't find what the appropriate INSTALL... argument for the html is...
or alternatively, how to not install the HTML...

The perl-brew isn't so easy here either... I tried it but:
1. Not enough space available
2. When I shunted enough out of the way to get it to compile once, the
bash sources which are required to switch back and forth didn't work...
maybe designed for a newer bash? :-/

Best winds,
-Robin-



On Thu, December 2, 2010 11:00, Richard Foley wrote:
> Hi Robin,
>
> Notwithstanding Gabi's excellent advice, here's an alternative stanza you
> might try:
>
> 	o conf makepl_arg "LIB=~/myperl/lib \
> 		INSTALLMAN1DIR=~/myperl/man/man1 \
> 		INSTALLMAN3DIR=~/myperl/man/man3 \
> 		INSTALLSCRIPT=~/myperl/bin \
> 		INSTALLBIN=~/myperl/bin"
>
> 	o conf mbuildpl_arg "--lib=~/myperl/lib \
> 		--installman1dir=~/myperl/man/man1 \
> 		--installman3dir=~/myperl/man/man3 \
> 		--installscript=~/myperl/bin \
> 		--installbin=~/myperl/bin"
>
> etc.
>
> --
> Richard Foley
> Ciao - shorter than aufwiedersehen
>
> http://www.rfi.net/
>
> On Tuesday 30 November 2010 19:22:08 gabi wrote:
>> hi robin,
>>
>> if nothing works and you don't want to spend too much time with
>> troubleshooting i'd suggest you try App::perlbrew. it installed
>> (including local::lib) smoothly for me and you can furthermore switch
>> between different perl versions very easily.
>>
>> if you want to troubleshoot this, i'd suggest to try
>>
>>  strace -e trace=file perl -I .cpan -MCPAN::MyConfig -e ''
>>
>> my output at the very end is
>>
>> ---------------------------------------------
>> stat64("/usr/local/lib/site_perl/i486-linux-gnu-thread-multi",
>> 0xbf8e9f60) = -1 ENOENT (No such file or directory)
>> open("/dev/null", O_RDONLY|O_LARGEFILE) = 3
>> stat64(".cpan/CPAN/MyConfig.pmc", 0xbf8e9af0) = -1 ENOENT (No such file
>> or directory)
>> stat64(".cpan/CPAN/MyConfig.pm", {st_mode=S_IFREG|0644,
>> st_size=3274, ...}) = 0
>> open(".cpan/CPAN/MyConfig.pm", O_RDONLY|O_LARGEFILE) = 4
>> -----------------------------------------------
>>
>> when the right config file is accessed you could do a
>>
>>  strace -e trace=file cpan Class::OOorNO
>>
>> and check what happens there.
>>
>> last but not least it might be a good idea to post your MyConfig.pm
>>
>> cu, gabi
>>
>> On Tue, 2010-11-30 at 10:27 +0100, Robin Clarke wrote:
>> > Nope... still same problem...
>> >
>> > !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
>> > ERROR: Can't create '/site/lib/Class'
>> >
>> > (for install Class::OOorNO)
>> >
>> > Best winds,
>> > -Robin-
>> >
>> > On Mon, November 29, 2010 17:30, Richard Foley wrote:
>> > > Hey Robin,
>> > >
>> > > If you're still after the local install of modules via CPAN, these
>> > > might help:
>> > >
>> > > 	cpan> o conf makepl_arg INSTALL_BASE=$HOME/libs
>> > > 	cpan> o conf mbuild_arg --install_base $HOME/libs
>> > > 	cpan> o conf commit
>> > >
>> > > --
>> > > Richard Foley
>> > > Ciao - shorter than aufwiedersehen
>> > >
>> > > http://www.rfi.net/
>> > >
>> > > On Monday 29 November 2010 16:58:53 Robin Clarke wrote:
>> > >> On Fri, November 26, 2010 16:01, William Travis Holton wrote:
>> > >> > Well, first of all, sudo privileges shouldn't be a factor since
>> what
>> > >> > I
>> > >>
>> > >> sent is made to be installed under your $HOME directory under
>> > >> something like
>> > >>
>> > >> > ~/local_libraries
>> > >>
>> > >> Yes - that's exactly what I wanted, and set up.
>> > >>
>> > >> > What version of CPAN are you using? I don't know that it
>> necessarily
>> > >>
>> > >> makes a difference, but I'm running 1.942.
>> > >> 1.9456
>> > >>
>> > >> > I'm assuming you've also replaced some of the default directories
>> I
>> > >>
>> > >> sent
>> > >>
>> > >> earlier with your own architecture stuff.
>> > >> Of course!
>> > >>
>> > >> > on my system
>> > >> > PERLARCH=x86_64-linux-gnu-thread-multi
>> > >>
>> > >> I have same (thanks for the how-to Gabi!)
>> > >>
>> > >> > Also see what happens when you do
>> > >> > perl -I .cpan -MCPAN::MyConfig -e ''
>> > >>
>> > >> No errors...
>> > >>
>> > >> On Fri, November 26, 2010 19:44, gabi wrote:
>> > >> >> ActivePerl
>> > >> >
>> > >> > Windows?
>> > >>
>> > >> Nope.  Linux.  But no sudo or other root access.
>> > >>
>> > >> Best winds,
>> > >> -Robin-
>
>
>


Next: