2013-02-26 167 views
1

我想將RLWrap安裝到我的mac os x(Snow Leopard)中,我有XCode,並且能夠成功運行./configure命令,但是當我嘗試make命令時,出現以下錯誤:rlwrap mac os x安裝錯誤

make all-recursive Making all in doc make[2]: Nothing to be done for `all'. Making all in src gcc -DHAVE_CONFIG_H -I. -I..
-DDATADIR=\"/usr/local/share\" -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c main.c: In function ‘read_options_and_command_name’: main.c:775: error: ‘rl_basic_quote_characters’ undeclared (first use in this function) main.c:775: error: (Each undeclared identifier is reported only once main.c:775: error: for each function it appears in.) make[2]: * [main.o] Error 1 make[1]: [all-recursive] Error 1 make: ** [all] Error 2

任何人有任何想法的原因呢?

+0

代碼看起來破損。這個從哪裏來? – trojanfoe 2013-02-26 15:58:49

+0

這實際上只是RLWrap安裝程序,一些指南在線指出,一旦./configure完成(運行)'make'和'make install',運行第一次make後就會發生這種情況。 – 2013-02-26 16:56:20

回答

0

看起來好像有在OS X上一個虛假的libreadline:

oldhost:rlwrap-0.37 boxcat$ ls -l /usr/lib/libreadline.dylib 
lrwxr-xr-x 1 root wheel 15 16 Mar 14:25 /usr/lib/libreadline.dylib -> libedit.3.dylib 
oldhost:rlwrap-0.37 boxcat$ 

我認爲你需要先安裝一個真正的libreadline(即GNU版本)。