Ruby 1.8.7 выпуск readline - PullRequest
       67

Ruby 1.8.7 выпуск readline

0 голосов
/ 31 октября 2019

Я должен поддерживать винтажный проект с Ruby 1.8.7 и rails 2.3. Недавно мне пришлось обновить rbenv и ruby-build. Но после этого у меня возникает проблема readline с моей винтажной платформой.

ОС: macOS mojave 10.14.6

Когда я пытаюсь запустить сервер (bundle exec script / server), он жалуется какэто:

=> 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.





1 Ответ

0 голосов
/ 31 октября 2019

ОК, есть решение или патч, который я могу сказать. Поэтому мне пришлось прокомментировать два камня. прай и прай-док. Теперь он отлично работает.

...