Last active
May 22, 2019 01:42
-
-
Save encoreshao/565c2dc4d2e96a1205e3ec9522de3ec2 to your computer and use it in GitHub Desktop.
rbenv - warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Warning on ruby 2.6.3 after you upgrade rbenv | |
| /Users/encore/.rbenv/versions/2.6.1/bin/ruby: warning: RUBY_FREE_MIN is obsolete. Use RUBY_GC_HEAP_FREE_SLOTS instead. | |
| /Users/encore/.rbenv/versions/2.6.1/bin/ruby: warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead. | |
| /Users/encore/.rbenv/versions/2.6.1/bin/ruby: warning: RUBY_FREE_MIN is obsolete. Use RUBY_GC_HEAP_FREE_SLOTS instead. | |
| /Users/encore/.rbenv/versions/2.6.1/bin/ruby: warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead. | |
| => Booting WEBrick | |
| => Rails 5.2.2.1 application starting in development on http://localhost:3000 | |
| => Run `rails server -h` for more startup options | |
| [2019-05-21 20:03:34] INFO WEBrick 1.4.2 | |
| [2019-05-21 20:03:34] INFO ruby 2.6.1 (2019-01-30) [x86_64-darwin18] | |
| [2019-05-21 20:03:34] INFO WEBrick::HTTPServer#start: pid=3359 port=3000 | |
| ^C[2019-05-21 20:04:47] INFO going to shutdown ... | |
| [2019-05-21 20:04:47] INFO WEBrick::HTTPServer#start done. | |
| Exiting | |
| bundle exec rails s 3.71s user 2.39s system 7% cpu 1:20.50 total | |
| $ touch $(rbenv root)/rbenv.d/exec/gc.bash | |
| $ vim $(rbenv root)/rbenv.d/exec/gc.bash | |
| ``` | |
| if [[ `rbenv version-name` =~ ^2\.[1-9]\.[0-9]+ ]]; then | |
| unset RUBY_FREE_MIN | |
| unset RUBY_HEAP_MIN | |
| unset RUBY_HEAP_MIN_SLOTS | |
| fi | |
| ``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment