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"

windows下ruby安装环境配置_kwame211的博客-CSDN博客_ruby ...

https://blog.csdn.net/kwame211/article/details/78687303

2017年12月1日 ... Ruby配置. 在windows中配置环境变量. RUBY_HOME=rubyinstaller_dir (实际的 ruby所在路径). 在path中添加 ...

Specify gem installation directory - Stack Overflow

https://stackoverflow.com/questions/16098757/specify-gem-installation-directory

You can add the following to your config.ru file: ENV['GEM_HOME']="#{ENV[' HOME']}/projects/shared/gems/ruby/1.8/gems" ...

Mac下Ruby(Homebrew)安装看过来- 简书

https://www.jianshu.com/p/c42f2cda860e

因为MAC系统自带Ruby2.0.0环境,我们在开发或者安装很多插件、什么第三方都 ... 都需要安装或者管理ruby环境运行,所以看来了解安装Ruby安装是必备技能了。 ... brew --repo // 查看路径结果:/usr/local/Homebrew cd /usr/local/Homebrew ...

win7上搭建ruby开发环境- myLittleGarden - 博客园

https://www.cnblogs.com/sunada2005/p/3357201.html

2013年10月8日 ... 安装ruby 可使用windows下的ruby安装工具rubyinstaller来方便地 ... 然后设置一个 名为 SSL_CERT_FILE 的环境变量,值为cacert.pem的路径即可 ...

How to set Ruby GEM_HOME and GEM_PATH - Unix & Linux Stack ...

https://unix.stackexchange.com/questions/203376/how-to-set-ruby-gem-home-and-gem-path/210012

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 ...

linux ruby 安装路径专题及常见问题- CSDN

https://www.csdn.net/tags/MtTaYg2sNjM5NzctYmxvZwO0O0OO0O0O.html

csdn已为您找到关于linux ruby 安装路径相关内容,包含linux ruby 安装路径相关 文档 ... util实现Java图片水印添加功能,有添加图片水印和文字水印,可以设置 水印 ...

Windows下如何实现Ruby操作MongoDB(环境安装配置) - 华为云

https://www.huaweicloud.com/articles/a9a5bda4f5ca8168313151f36dbf631e.html

2017年8月7日 ... (如解压路径Ruby安装路径不在一个盘中时,会出现config.yml不包含Ruby安装 路径的情况)。若无,则在最后添加对应Ruby安装路径。 如下图 ...

Windows下如何实现Ruby操作MongoDB(环境安装配置 ...

https://blog.51cto.com/wanght89/1954163

2017年8月7日 ... 讲述如何在Windows环境下安装配置Ruby的开发环境,以及如何使用gem包管理 工具 ... 2.1 双击打开上述exe文件,设置解压路径。如c:\DevKit.

How to change the path where ruby gems are installed on OS 10.6.6 ...

https://stackoverflow.com/questions/4911246/how-to-change-the-path-where-ruby-gems-are-installed-on-os-10-6-6-ruby-1-8-and-r

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 ...

Install Ruby on Your Mac: Everything You Need to Get Going ...

https://stackify.com/install-ruby-on-your-mac-everything-you-need-to-get-going/

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 ...

rbenv/rbenv: Groom your app's Ruby environment - GitHub

https://github.com/rbenv/rbenv

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 - Tutorialspoint

https://www.tutorialspoint.com/ruby/ruby_installation_windows.htm

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 ...

Frequently Asked Questions - RubyGems Guides

https://guides.rubygems.org/faqs/

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 .

Using System Ruby

https://guilhermesimoes.github.io/blog/using-system-ruby

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 ...

How should I set the PATH variable on my Mac so the Hombrew ...

https://superuser.com/questions/324616/how-should-i-set-the-path-variable-on-my-mac-so-the-hombrew-installed-tools-are

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/ ...

bundle install - Bundler

https://bundler.io/man/bundle-install.1.html

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 ...