After upgrading MacBookPro Retina (2012 model) from Mountain Lion to Maverick I decided to install the latest RoR for dev. I follow the post on 55minutes here, except cannot installed the xcode command-line as it described, which I manually downloaded and installed from Apple Developer site, I can successfully followed other steps to install and setup homebrew, apple-gcc42, autoconf, pkg-config, git, postgresql, qt, rbenv, ruby-build, rbenv-default-gems, rbenv-update, then I can also install the Ruby 2.0.0-p247.
The problem start on 'gem regenerate_binstubs, where terminal returns:
> ERROR: While executing gem ... (Gem::CommandLineError)
> Unknown command regenerate_binstubs
I then init the postgresSQL but did not configure it as I had second thought to use stock Sqllite.
Then I update the rbenv, brew and try to new a rails project, and terminal returns the following error:
> run bundle install Fetching gem metadata from
> https://rubygems.org/.......... Fetching gem metadata from
> https://rubygems.org/.. Resolving dependencies...
>
> ArgumentError: invalid byte sequence in UTF-8 An error occurred while
> installing rake (10.1.0), and Bundler cannot continue. Make sure that
> `gem install rake -v '10.1.0'` succeeds before bundling.
I checked other posts and see similar error msg, try to solve by including the LANG in .bash_profile as follow but no use:
> export LANG="en_US.UTF-8"
> export LC_ALL="en_US.UTF-8"
Below is the content of my bash_profile:
export PATH=/bin:/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$PATH↲
export EDITOR='subl -w'
export PATH=/usr/local/bin:$PATH
export RBENV_ROOT="$HOME/.rbenv"
if [ -d $RBENV_ROOT ]; then
export PATH="$RBENV_ROOT/bin:$PATH"
eval "$(rbenv init -)"
fi
I hope someone can share a light on where I might do wrong. Otherwise I plan to uninstall rbenv and change to rvm to continue the installation of RoR. Thanks in advanced.