Ruby 1.8.7 readline问题

问题描述 投票:0回答:1

我必须使用Ruby 1.8.7和rails 2.3维护一个老式项目。最近,我不得不升级rbenv和ruby-build。但是之后,我的老式平台出现了readline问题。

OS:macOS mojave10.14.6

[当我尝试运行服务器(捆绑执行脚本/服务器)时,它的抱怨是这样的:

=> Rails 2.3.18 application starting on http://0.0.0.0:3000
WARNING: using the built-in Timeout class which is known to have issues when used for opening connections. Install the SystemTimer gem if you want to make sure the Redis client will not hang.
You're running a version of ruby with no Readline support
Please `gem install rb-readline` or recompile ruby --with-readline.

我尝试使用gem install rb-readline,但没有成功,并且出现相同的错误。

我也尝试过此RUBY_CONFIGURE_OPTS="--with-readline-dir='brew --prefix readline'" rbenv install 1.8.7

但是后来我明白了:

-> https://cache.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7.tar.bz2
Installing ruby-1.8.7...

WARNING: ruby-1.8.7 is past its end of life and is now unsupported.
It no longer receives bug fixes or critical security updates.


BUILD FAILED (OS X 10.14.6 using ruby-build 20191024-2-gefd2722)

Inspect or clean up the working tree at /var/folders/ht/5p7dh_g13m772qx6zx4lfr6c0000gn/T/ruby-build.20191031103935.77188
Results logged to /var/folders/ht/5p7dh_g13m772qx6zx4lfr6c0000gn/T/ruby-build.20191031103935.77188.log

Last 10 log lines:
/var/folders/ht/5p7dh_g13m772qx6zx4lfr6c0000gn/T/ruby-build.20191031103935.77188 ~/git/eutility
/var/folders/ht/5p7dh_g13m772qx6zx4lfr6c0000gn/T/ruby-build.20191031103935.77188/ruby-1.8.7 /var/folders/ht/5p7dh_g13m772qx6zx4lfr6c0000gn/T/ruby-build.20191031103935.77188 ~/git/eutility
configure: error: expected an absolute directory name for --prefix: readline'
make: *** No targets specified and no makefile found.  Stop.```

Any help will be appreciated.





ruby readline rbenv ruby-1.8.7
1个回答
0
投票

好的,我可以说解决方案或补丁。所以我不得不评论两个宝石。撬和撬doc。现在工作正常。

© www.soinside.com 2019 - 2024. All rights reserved.