簡體   English   中英

Ruby 1.8.7 讀取線問題

[英]Ruby 1.8.7 readline issue

我必須使用 Ruby 1.8.7 和 rails 2.3 維護一個老式項目。 最近我不得不升級 rbenv 和 ruby-build。 但在那之后,我的老式平台出現了 readline 問題。

操作系統:macOS 莫哈韋 10.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.





好的,我可以說得到解決方案或補丁。 所以我不得不評論兩個寶石。 撬和撬-doc。 它現在工作得很好。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM