How to point PATH to new version of ruby on Mac OS X to connect Octopress -
i on mac os (10.8.4), have system version of ruby installed (1.8.7). know can't remove because it's required system. however, interested in setting jekyll blog on github via octopress: http://octopress.org. requires ruby version 1.9.3, added via
rbenv install 1.9.3-p385
it appears have worked (after few hours before realizing had uninstall , old version of wine via macports). however, when run
localhost:~ dan$ ruby -v
i get
ruby 1.9.3p392 (2013-02-22 revision 39386) [x86_64-darwin12.4.0]
i used get
ruby 1.8.7 (2012-02-08 patchlevel 358) [universal-darwin12.0]
but run
git clone git://github.com/imathis/octopress.git octopress localhost:~ dan$ cd octopress
and
ruby-1.9.3-p448 not installed. install do: 'rvm install ruby-1.9.3-p448'
i'm using rbenv rather rvm (but willing switch if made difference). run:
localhost:octopress dan$ env cc=gcc rbenv install 1.9.3-p448 downloading yaml-0.1.4.tar.gz... -> http://dqw8nmjcqpjn7.cloudfront.net/36c852831d02cf90508c29852361d01b installing yaml-0.1.4... installed yaml-0.1.4 /users/dan/.rbenv/versions/1.9.3-p448 downloading ruby-1.9.3-p448.tar.gz... -> ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p448.tar.gz installing ruby-1.9.3-p448... installed ruby-1.9.3-p448 /users/dan/.rbenv/versions/1.9.3-p448
then
localhost:octopress dan$ ruby --version rbenv: version `1.9.3' not installed
running
which ruby /users/dan/.rbenv/shims/ruby
i'm not sure if there's wrong path (echo $path)
/users/dan/library/enthought/canopy_64bit/user/bin:/opt/local/bin:/opt/local/sbin:/library/frameworks/python.framework/versions/current/bin:/users/dan/.rbenv/shims:/users/dan/.rbenv/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/x11/bin:/usr/texbin:/users/dan/scripts:/usr/local/mysql/bin:/users/dan/.rvm/bin
anyone have idea of how can octopress working , connecting appropriate version of ruby?
for reason
rbenv global 1.9.3-p448
did not work set ruby default within octopress folder when ran local
rbenv local 1.9.3-p448
everything worked.
Comments
Post a Comment