Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I recently installed MacPorts and I think it might have messed up some of my libraries. Now when I try to run the Perl debugger I get this:

>perl -d -e 0
Cannot do `initialize' in Term::ReadLine::Gnu at /opt/local/lib/perl5/5.8.9/perl5db.pl line 6006
 at /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/Term/ReadLine/Gnu.pm line 716
    Term::ReadLine::Gnu::AU::AUTOLOAD('Term::ReadLine=HASH(0x8f8b94)') called at /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/Term/ReadLine/Gnu.pm line 240
    Term::ReadLine::Gnu::new('Term::ReadLine', 'perldb', 'GLOB(0x85c690)', 'GLOB(0x855750)') called at /opt/local/lib/perl5/5.8.9/perl5db.pl line 6006
    DB::setterm called at /opt/local/lib/perl5/5.8.9/perl5db.pl line 2235
    DB::DB called at -e line 1
Cannot do `initialize' in Term::ReadLine::Gnu at /opt/local/lib/perl5/5.8.9/perl5db.pl line 6006
END failed--call queue aborted at -e line 44.
 at -e line 44
Config::DESTROY(/opt/local/lib/perl5/5.8.9/darwin-2level/Config.pm:63):
63: sub DESTROY { }
IO::Handle::DESTROY(/opt/local/lib/perl5/5.8.9/darwin-2level/IO/Handle.pm:330):
330:    sub DESTROY {} 

I'm using readline 6.1. Anyone have any ideas?

Thanks

share|improve this question
    
How did you install readline - Macports perl will look for the macports readline – Mark Dec 17 '10 at 19:07

I had this problem on Ubuntu, and my solution was to install libterm-readline-gnu-perl in Ubuntu:

apt-get install libterm-readline-gnu-perl

Once this was installed in Ubuntu, Perl stopped giving me that error.

I am not familiar at all with the Mac, so if I am way off base, just let me know and I'll delete this answer. I just thought I could maybe point you in the right direction since I had this same problem yesterday. Hopefully there is something on the Mac where you can install something libterm/readline related?

Good luck!

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .