You can add the following to your config.ru file:
ENV['GEM_HOME']="#{ENV['HOME']}/projects/shared/gems/ruby/1.8/gems"
ENV['GEM_PATH']="#{ENV['GEM_HOME']}:/var/lib/ruby/gems/1.8"
require 'rubygems'
Gem.clear_paths
This will tell your rack app where to look for gems.
Also configure your server .bashrc:
export GEM_HOME="$HOME/projects/shared/gems/ruby/1.8/gems"
export GEM_PATH="$GEM_HOME:/var/lib/ruby/gems/1.8"
2017年12月1日 ... Ruby配置. 在windows中配置环境变量. RUBY_HOME=rubyinstaller_dir (实际的 ruby所在路径). 在path中添加 ...
You can add the following to your config.ru file: ENV['GEM_HOME']="#{ENV[' HOME']}/projects/shared/gems/ruby/1.8/gems" ...
因为MAC系统自带Ruby2.0.0环境,我们在开发或者安装很多插件、什么第三方都 ... 都需要安装或者管理ruby环境运行,所以看来了解安装Ruby安装是必备技能了。 ... brew --repo // 查看路径结果:/usr/local/Homebrew cd /usr/local/Homebrew ...
2013年10月8日 ... 安装ruby 可使用windows下的ruby安装工具rubyinstaller来方便地 ... 然后设置一个 名为 SSL_CERT_FILE 的环境变量,值为cacert.pem的路径即可 ...
RVM install is supposed to create GEM_HOME and GEM_PATH env vars for each ... RVM) Ruby version: On your production server go to your app directory and ...
csdn已为您找到关于linux ruby 安装路径相关内容,包含linux ruby 安装路径相关 文档 ... util实现Java图片水印添加功能,有添加图片水印和文字水印,可以设置 水印 ...
2017年8月7日 ... (如解压路径和Ruby安装路径不在一个盘中时,会出现config.yml不包含Ruby安装 路径的情况)。若无,则在最后添加对应Ruby安装路径。 如下图 ...
2017年8月7日 ... 讲述如何在Windows环境下安装配置Ruby的开发环境,以及如何使用gem包管理 工具 ... 2.1 双击打开上述exe文件,设置解压路径。如c:\DevKit.
I would suggest using RVM (Ruby Version Manager) to control which version of Ruby you are installing your gems into. It will also help keep all ...
May 31, 2019 ... Open up the terminal; Install a package manager; Use the package manager to install Ruby; Update our PATH; Write and run our first Ruby ...
Each Ruby version is installed into its own directory under ~/.rbenv/versions . ... Note that this also installs ruby-build , so you'll be ready to install other Ruby ...
Ruby Installation - Windows · If you use Windows 9x, add the following lines to your c:\autoexec. bat: set PATH = "D:\(ruby install directory)\bin;%PATH%" · Windows ...
I installed gems with --user-install and their commands are not available; How can I ... you need to add ~/.gem/ruby/1.9.1/bin to your PATH environment variable .
Sep 16, 2018 ... Why should I have to install a Ruby version manager to install the latest Ruby ... INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.3.0 USER ...
And not the one in /usr/local/bin/git that was just installed. $ echo $PATH /Users/ meltemi/.rvm/gems/ruby-1.9.2-p290@rails31/bin:/Users/ ...
If used, you might add this directory to your environment's PATH variable. For instance, if the rails gem comes with a rails executable, this flag will create a bin/ rails ...