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

2

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

2565 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

  • 44853a71b7382a02c399404e4a38a243

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

  • None

    Jesus, you life saver, I'm crying, seriously. Tears dropping out of my eyes.

  • I__huhr3_normal

    Rock on. Exactly what I was looking for.

Add a comment