Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

need help with perl & CPAN, get build errors on everything

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
gnychis
Veteran
Veteran
User avatar
Posts: 1004
Joined: Wed Mar 23, 2005 5:03 am
Location: Pittsburgh, PA
Contact:
Contact gnychis
Website

need help with perl & CPAN, get build errors on everythi

  • Quote

Post by gnychis » Tue Aug 29, 2006 1:16 am

Hey guys,

When trying to install modules, I get errors like this:

Code: Select all

All tests successful, 2 tests skipped.                                                
Files=24, Tests=120,  1 wallclock secs ( 1.09 cusr +  0.12 csys =  1.21 CPU)          
  /usr/bin/make test -- OK                                                            
Running make install                                                                  
mkdir /afs/.cs.cmu.edu/local/perl5/@sys/5.6.1-1/lib/perl5/site_perl/5.6.1/arch/auto: Permission denied at /usr/local/lib/perl5/5.6.1/ExtUtil
s/Install.pm line 139
make: *** [pure_site_install] Error 255
  /usr/bin/make install  -- NOT OK
Doesnt matter what the module is, same thing

I obviously don't have permission on the directory, but in my config I have this as my build_dir:

Code: Select all

$CPAN::Config = {
  'build_cache' => q[10],
  'build_dir' => q[/usr1/gnychis/.cpan/build],
  'cache_metadata' => q[1],
  'cpan_home' => q[/usr1/gnychis/.cpan],
  'dontload_hash' => {  },
  'ftp' => q[/usr/local/bin/ftp],
  'ftp_proxy' => q[],
  'getcwd' => q[cwd],
  'gzip' => q[/usr/bin/gzip],
  'http_proxy' => q[],
  'inactivity_timeout' => q[0],
  'index_expire' => q[1],
  'inhibit_startup_message' => q[0],
  'keep_source_where' => q[/usr1/gnychis/.cpan/sources],
  'lynx' => q[/usr/bin/lynx],
  'make' => q[/usr/bin/make],
  'make_arg' => q[],
  'make_install_arg' => q[],
  'makepl_arg' => q[],
  'ncftpget' => q[/usr/bin/ncftpget],
  'no_proxy' => q[],
  'pager' => q[/usr/bin/less],
  'prerequisites_policy' => q[ask],
  'scan_cache' => q[atstart],
  'shell' => q[/bin/bash],
  'tar' => q[/bin/tar],
  'term_is_latin' => q[1],
  'unzip' => q[/usr/bin/unzip],
  'urllist' => [q[ftp://archive.progeny.com/CPAN/], q[ftp://carroll.cac.psu.edu/pub/CPAN/], q[ftp://cpan-du.viaverio.com/pub/CPAN/], q[ftp://cpan-sj.viaverio.com/pub/CPAN/], q[ftp://cpan.calvin.edu/pub/CPAN], q[ftp://cpan.cs.utah.edu/pub/CPAN/], q[ftp://cpan.cse.msu.edu/], q[ftp://cpan.erlbaum.net/CPAN/], q[ftp://cpan.glines.org/pub/CPAN/], q[ftp://cpan.hostrack.net/pub/CPAN], q[ftp://cpan.llarian.net/pub/CPAN/], q[ftp://cpan.mirrors.redwire.net/pub/CPAN/]],
  'wait_list' => [q[wait://ls6.informatik.uni-dortmund.de:1404]],
  'wget' => q[/usr/bin/wget],
};
1;
__END__
so, my build dir is local to my home directory, however for some reason its trying to use AFS.

Any ideas here?

Thanks!
George
<---- me and Richard Stallman :)
Top
Unne
l33t
l33t
User avatar
Posts: 616
Joined: Mon Jul 21, 2003 4:23 pm
Contact:
Contact Unne
Website

  • Quote

Post by Unne » Tue Aug 29, 2006 1:01 pm

It looks like build_dir is where the modules are compiled, which appears to be working fine. It's failing on the install, which means it's trying to copy already-built files to standard Perl locations. You don't have permissions on the folder it's trying to install to.

If you want to install modules as a local user via CPAN, item 5 in the CPAN FAQ http://search.cpan.org/~andk/CPAN-1.87/lib/CPAN.pm#FAQ explains how. You can also download the source for a module and compile it manually and put it into any directory you want, then use a BEGIN block in your Perl script to stick your directory into @INC (or use lib 'dir';) so perl can find it at runtime.
Obligatory hompage link.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic