我在OSX10.6上运行ruby 1.9.2,大多数情况下运行得很好。但是,无论是在IRB中还是在rails控制台中,readline似乎都不起作用。一些不同的帖子建议将readline构建为扩展,如下所示
cd <ruby-source-dir>/ext/readline
ruby extconf.rb
make
make install所以我这样做了,这是我得到的:
checking for tgetnum() in -lncurses... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for readline() in -lreadline... no
checking for readline() in -ledit... no
checking for editline/readline.h... yes
checking for readline() in -ledit... no然后
make: Nothing to be done for `all'这让我觉得它没有找到我的readline安装。你有什么办法让它找到readline吗?
发布于 2011-03-22 06:24:19
我重新编译了readline,然后再次尝试了上面的步骤,一切工作正常。我想这可能是因为我最初为osx 10.5编译了readline,当时ruby还只有32位。
https://stackoverflow.com/questions/5383072
复制相似问题