1

我正在尝试将 RLWrap 安装到我的 mac os x (Snow Leopard) 中,我有 XCode 并且能够./configure成功运行该命令,但是当我尝试该make命令时,我收到以下错误:

make all-recursive 在 doc make[2] 中制作所有内容:对“所有”无事可做。全部在 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 (第一次在这个函数中使用) main.c:775: error: (每个未声明的标识符只报告一次 main.c:775: error : 对于它出现的每个函数。) make[2]: * [main.o] Error 1 make[1]:[all-recursive] 错误 1 ​​make: * * [all] 错误 2

有人对此原因有任何想法吗?

4

1 回答 1

0

It looks as though there's a bogus libreadline on OS X:

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$ 

I think you'll need a genuine libreadline (i.e. the GNU version) installed first.

于 2013-04-17T13:36:45.873 回答