gpt4 book ai didi

ruby - 如何删除 gem 路径?

转载 作者:数据小太阳 更新时间:2023-10-29 06:46:05 26 4
gpt4 key购买 nike

如何删除 GEM PATHS: 的第二个路径 (/home/tom/.gem/ruby/1.8)?

这是 $ gem env 的输出:

RubyGems Environment:

- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i486-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /usr/lib/ruby/gems/1.8
- /home/tom/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/

感谢您的帮助!

最佳答案

在您的 ~/.bashrc 文件中覆盖?

#in ~/.bashrc
export GEM_PATH=/usr/lib/ruby/gems/1.8

虽然感觉有点老套。

关于ruby - 如何删除 gem 路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2975206/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com