Wednesday, July 17, 2013

Upgrading to JRuby | Neo4J | rvm on Ubuntu



While upgrading the Wikibrains server I encountered a few snags, I had to bypass these issues by following these steps:
Purging the RVM/Ruby installations: (source)
sudo apt-get --purge remove ruby-rvm
sudo rm -rf /usr/share/ruby-rvm /etc/rvmrc /etc/profile.d/rvm.sh
open new terminal and validate environment is clean from old RVM settings (should be no output):
env | grep rvm
if there was output, try to open new terminal, if it does not help then restart your computer.
\curl -L https://get.rvm.io | 
  bash -s stable --ruby --autolibs=enable --auto-dotfiles

Then Run:

source /usr/local/rvm/scripts/rvm

Now proceed to installing rails:

gem install rails --version '= 0.3.8'
gem install bundler

creating the application with neo4j.rb:
rails _3.2.8_ new myapp -m http://andreasronge.github.com/neo4j/rails.rb -O
note: at the time of this post, there is a conflict between Neo4j.rb and rails 4 dependencies.

No comments:

Post a Comment

Please do not post spam on this blog, Spam sites will be reported to google.
thank you kindly.