ruby

zshにrbenvの導入

$ brew install rbenv ruby-build rbenv-gemset $ cat > ~/.zshenv heredoc% if which rbenv > /dev/null; then eval "$(rbenv init - zsh)"; fi heredoc% EOFrubyの2.0.0をインストール $ rbenv install -l $ rbenv install 2.0.0-p247 $ rbenv versions * …

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

railsを触ってみようと思い $ rails new [project name] $ cd [project name] $ sudo bundle update とすると Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0…

ruby on rails起動時のエラー

$ rails sをすると /usr/local/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::Runtime…