-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME-MacOSX
49 lines (36 loc) · 1.45 KB
/
README-MacOSX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
------------------------------------------------------------------------
On MacOSX, /usr/lib/libreadline.dylib may actually be (a symlink to)
libedit. Term::ReadLine::Gnu will not compile against libedit.
You will need to install the real readline using either (2010-05-29):
* macports:
$ sudo port install readline-5 # for readline 5
$ sudo port install readline # for readline 6
* fink:
$ sudo apt-get install readline5
* gcc:
$ VERSION=6.1
$ curl -O ftp://ftp.gnu.org/pub/gnu/readline/readline-$VERSION.tar.gz
$ tar zxvf readline-$VERSION.tar.gz
$ cd readline-$VERSION
$ perl -i.bak -p -e "s{SHLIB_LIBS=.*}
{SHLIB_LIBS='-lSystem -lncurses -lcc_dynamic'}g" support/shobj-conf
$ ./configure
$ make
$ sudo make install
------------------------------------------------------------------------
To install Term::ReadLine::Gnu, you could use either:
* macports:
$ sudo port install p5-term-readline-gnu
* fink (depending on your perl version):
$ sudo apt-get install term-readline-gnu-pm586
$ sudo apt-get install term-readline-gnu-pm588
$ sudo apt-get install term-readline-gnu-pm5100
* CPAN:
$ sudo perl -MCPAN -e'install Term::ReadLine::Gnu'
* the bundled version:
$ cd modules
$ tar xvfz Term-Readline-Gnu-2.20.tar.gz
$ cd Term-Readline-Gnu-1.20
$ perl Makefile.PL --includedir=/opt/local/include --libdir=/opt/local/lib
$ make; sudo make install
------------------------------------------------------------------------