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
rvmruby:$ \curl -ssl https://get.rvm.io | bash -s stable --rubyor 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.4install rails without documentation general gem space:
$ gem install rails --no-ri --no-rdocenter project, create 2 files
.ruby-versioninstalled version ofruby(in example2.1.4), ,.ruby-gemsetname of project:$ cd project-folder $ echo "2.1.4" > .ruby-version $ echo "your-project-name" .ruby-gemsetfix
gemfilenewly intsalled version ofrubyadding line:ruby '2.1.4'reenter project folder, ,
rvmgenerate wrappers:$ cd .. ; cd project-folderissue gem installation:
$ bundle install
Comments
Post a Comment