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 rvm or rbenv change ruby , gem space one. if begin usage of them following:
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
install rails without documentation general gem space:
$ gem install rails --no-ri --no-rdoc
enter project, create 2 files
.ruby-version
installed version ofruby
(in example2.1.4
), ,.ruby-gemset
name of project:$ cd project-folder $ echo "2.1.4" > .ruby-version $ echo "your-project-name" .ruby-gemset
fix
gemfile
newly intsalled version ofruby
adding line:ruby '2.1.4'
reenter project folder, ,
rvm
generate wrappers:$ cd .. ; cd project-folder
issue gem installation:
$ bundle install
Comments
Post a Comment