ruby on rails - Unable to use GEM_HOME in radrails -


i have setup radrails on linux machine. dont have root privileges on machine , cant edit ruby installation folder. have set gem_home , gem_path location have privileges. running radrails terminal have set these variables. radrails recognize gem location?

also not able start webrick server using radrails. server in stopped state , console output blank. not able fix since dont see errors.

thank you!

use or change ruby , gem space one. if begin usage of them following:

  1. install rvm ruby:

    $ \curl -ssl https://get.rvm.io | bash -s stable --ruby 

    or install rbenv, , install ruby, , make global:

    $ \curl https://raw.githubusercontent.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash $ rbenv install 2.1.4 $ rbenv global 2.1.4 
  2. install without documentation general gem space:

    $ gem install rails --no-ri --no-rdoc 
  3. enter project, create 2 files .ruby-version installed version of ruby (in example 2.1.4), , .ruby-gemset name of project:

    $ cd project-folder $ echo "2.1.4" > .ruby-version $ echo "your-project-name" .ruby-gemset 
  4. fix gemfile newly intsalled version of ruby adding line:

    ruby '2.1.4' 
  5. reenter project folder, , rvm generate wrappers:

    $ cd .. ; cd project-folder 
  6. issue gem installation:

    $ bundle install 

Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -