On Wed, Mar 16, 2011 at 4:21 AM, Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <da...@cpan.org> wrote:
> > I found that I need > > to run cpan -i Module as root > This is not a good idea. Instead configure the cpan options > `make_install_make_command` and `mbuild_install_build_command` to employ > sudo. > <http://p3rl.org/CPAN#Config_Variables> > > > Does that mean that this 'make' step needs to be done as > > root? > No, normally only the `make install` step of each dist needs elevated > privileges. If distributions try to create directories in system locations > during other steps, then this is a bug. > Probably you've already run this as root (or via sudo) and paths have been created with root ownership. Your normal user isn't allowed to frob those. Our process is: - hg fetch <= get latest from repository - script/*server.pl -d <= test localhost:3000 - perl Makefile.PL && make manifest <= build into blib - make && make test <= confirm - sudo make install <= let 'er rip We too had done "sudo" in the wrong spots a few times but a "sudo make distclean" made it all sparkly again. You can sidestep the difficulties coming from the need to install to system > locations by using local::lib. <http://p3rl.org/local::lib> > For a possible bootstrapping approach to getting your own private CPAN library up and running: http://search.cpan.org/~apeiron/local-lib-1.008004/lib/local/lib.pm#The_bootstrapping_technique You may need to download an older version of the library if you run into dependency-build errors tho. -- The first step towards getting somewhere is to decide that you are not going to stay where you are. -- J.P.Morgan
_______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/