f161 CPAN problem - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old September 16th, 2012, 14:19
atmosx atmosx is offline
Junior Member
 
Join Date: Jul 2012
Location: Brno, Czech Republic
Posts: 52
Thanks: 13
Thanked 3 Times in 3 Posts
Default CPAN problem

Hello,

My cpan is broken...


Quote:
[atma@comodino ~]$ cpan
Cannot load ExtUtils::MakeMaker: Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.12.4/mach /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.4/mach /usr/local/lib/perl5/5.12.4 /usr/home/atma) at (eval 9) line 1.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.12.4/BSDPAN/ExtUtils/MakeMaker.pm line 17.
Compilation failed in require at /usr/local/lib/perl5/5.12.4/CPAN.pm line 46.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.12.4/CPAN.pm line 46.
Compilation failed in require at /usr/local/lib/perl5/5.12.4/App/Cpan.pm line 183.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.12.4/App/Cpan.pm line 183.
Compilation failed in require at /usr/local/bin/cpan line 8.
BEGIN failed--compilation aborted at /usr/local/bin/cpan line 8.
I don't use perl or cpan, directly. I was trying to use irssi + sasl which needs cpan. Now I'm good with 'weechat-curses' but still many programs need cpan fixed.

Do I have uninstall recompile perl do this? I'm not sure what to do, I can't even remember if I installed the pkg using pkg_add or ports (does it make any diff anyway?).

I can't find cpan as a standalone pkg using 'make search key="cpan"' I get lots and lots of output as you can imagine.

Any ideas are more than welcome!
__________________
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. - Soren Kierkegaard
Reply With Quote
  #2  
Old September 17th, 2012, 18:30
chatwizrd chatwizrd is offline
Member
 
Join Date: Jul 2012
Posts: 141
Thanks: 7
Thanked 13 Times in 11 Posts
Default

Install devel/p5-ExtUtils-MakeMaker
Reply With Quote
  #3  
Old September 18th, 2012, 17:01
atmosx atmosx is offline
Junior Member
 
Join Date: Jul 2012
Location: Brno, Czech Republic
Posts: 52
Thanks: 13
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by chatwizrd View Post
Code:
[root@comodino /usr/ports/devel/p5-ExtUtils-MakeMaker]# make install clean
===>   p5-ExtUtils-MakeMaker-6.62 depends on package: p5-ExtUtils-Manifest>=1.58 - not found
===>    Verifying install for p5-ExtUtils-Manifest>=1.58 in /usr/ports/devel/p5-ExtUtils-Manifest
===>   p5-ExtUtils-Manifest-1.60 depends on file: /usr/local/bin/perl5.12.4 - found
===>  Configuring for p5-ExtUtils-Manifest-1.60
Cannot load ExtUtils::MakeMaker: Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.12.4/mach /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.4/mach /usr/local/lib/perl5/5.12.4 .) at (eval 1) line 1.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.12.4/BSDPAN/ExtUtils/MakeMaker.pm line 17.
Compilation failed in require at ./Makefile.PL line 7.
BEGIN failed--compilation aborted at ./Makefile.PL line 7.
*** Error code 2

Stop in /usr/ports/devel/p5-ExtUtils-Manifest.
*** Error code 1

Stop in /usr/ports/devel/p5-ExtUtils-MakeMaker.
__________________
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. - Soren Kierkegaard
Reply With Quote
  #4  
Old September 18th, 2012, 17:03
atmosx atmosx is offline
Junior Member
 
Join Date: Jul 2012
Location: Brno, Czech Republic
Posts: 52
Thanks: 13
Thanked 3 Times in 3 Posts
Default

and this
Code:
[root@comodino /usr/ports/devel/p5-ExtUtils-MakeMaker]# perl /usr/local/lib/perl5/5.12.4/BSDPAN/ExtUtils/MakeMaker.pm
Cannot load ExtUtils::MakeMaker: Can't locate ExtUtils/MakeMaker.pm in @INC (@INC contains: /usr/local/lib/perl5/site_perl/5.12.4/mach /usr/local/lib/perl5/site_perl/5.12.4 /usr/local/lib/perl5/5.12.4/mach /usr/local/lib/perl5/5.12.4 .) at (eval 1) line 1.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/5.12.4/BSDPAN/ExtUtils/MakeMaker.pm line 17.
[root@comodino /usr/ports/devel/p5-ExtUtils-MakeMaker]#
__________________
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. - Soren Kierkegaard
Reply With Quote
  #5  
Old November 5th, 2012, 14:11
nORKy nORKy is offline
Member
 
Join Date: Nov 2008
Posts: 263
Thanks: 10
Thanked 17 Times in 11 Posts
Default

do you find the solution please ?
I have the same error. A loop beetween CPAN-Meta-Requirement and MakeMaker
Reply With Quote
  #6  
Old November 5th, 2012, 19:36
fmw's Avatar
fmw fmw is offline
Member
 
Join Date: Feb 2010
Location: Stuttgart, Germany
Posts: 101
Thanks: 3
Thanked 2 Times in 2 Posts
Default

Check if the missing file is elswhere on your system # find /usr/local/lib/ -name "MakeMaker.pm" and copy/move it or create a symlink to @INC/ExtUtils (you can pick any path from @INC for this). If you don't have it, you can download it from the CPAN web site. Chances are this won't be the only missing file; I've had to do this a few times following a perl upgrade.
Reply With Quote
  #7  
Old November 6th, 2012, 01:10
atmosx atmosx is offline
Junior Member
 
Join Date: Jul 2012
Location: Brno, Czech Republic
Posts: 52
Thanks: 13
Thanked 3 Times in 3 Posts
Default

Hello,

I used portmanager to reinstall perl and worked out fine.
__________________
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. - Soren Kierkegaard
Reply With Quote
Reply

Tags
cpan, freebsd

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cpan::GD, libgd problem a129878 Installing & Upgrading 6 March 26th, 2010 12:17
Samba-problem 1:doesn't start, 2:host-related problem naguz Web & Network Services 7 September 29th, 2009 15:40
geometry problem maby? boot problem gulanito Installing & Upgrading 6 August 13th, 2009 16:19
Problem with configuration of 2’nd DSL link on FreeBSD 7.2 (gateway problem?) fanz Networking 1 August 13th, 2009 04:04


All times are GMT +1. The time now is 12:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0