Where developers come to connect, share, build and be inspired.

5

Perl: Install Term::ReadLine::Gnu on OSX

1501 views

Assuming, homebrew is installed, first do:

brew install readline
cpan Term::ReadLine
cpan

Now comes the tricky part. Inside the cpan shell:

look Term::ReadLine::Gnu
perl Makefile.PL --includedir=$(brew info readline|egrep '[[:digit:]]+ files,'|awk '{print $1}')/include/ --libdir=$(brew info readline|egrep '[[:digit:]]+ files,'|awk '{print $1}')/lib/
make install
^D # to quit sub-shell
quit

Done.

I suggest using perlbrew as well.

Comments

  • Blank-mugshot
    seebi

    excellent! thank you very much for this solution ...

Add a comment