Perl: Install Term::ReadLine::Gnu on OSX
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.
Written by Karsten Silkenbäumer
Related protips
3 Responses
excellent! thank you very much for this solution ...
over 1 year ago
·
Jesus, you life saver, I'm crying, seriously. Tears dropping out of my eyes.
over 1 year ago
·
Rock on. Exactly what I was looking for.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Perl
Authors
janosgyerik
25.16K
Jean-Remy Duboc
12.25K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#