Bosh stemcell Ubuntu Ruby,与 /var/vcap/bosh/lib/ruby 冲突(LoadError)
Bosh stemcell Ubuntu Ruby, in conflict with /var/vcap/bosh/lib/ruby (LoadError)
我尝试在 Bosh VM 中安装 gist
工具
Synopsis
The gist gem provides a gist-paste command that you can use from your
terminal to upload content to https://gist.github.com/.
版本
stemcells:
- name: bosh-openstack-kvm-ubuntu-trusty-go_agent
version: 3232.2
Ubuntu 包安装与发布:
# apt-get install gist
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
# dpkg -l gist
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================================-========================-========================-==================================================================================
ii gist 4.2.0-1 all Upload gists to gist.github.com
我收到错误信息
# gist-paste -p mongodb.log*
/var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- gist (LoadError)
from /var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/bin/gist-paste:7:in `<main>'
与 Ubuntu 提供的 Ruby 和 /var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems
中的存在一些冲突。知道如何使用 Right ruby gem 吗?
如果您 运行 以 root 以外的用户身份执行 gist-paste 命令,它应该可以正常工作。我自己在 stemcell 1.3232.0
上测试了这个
我尝试在 Bosh VM 中安装 gist
工具
Synopsis The gist gem provides a gist-paste command that you can use from your terminal to upload content to https://gist.github.com/.
版本
stemcells:
- name: bosh-openstack-kvm-ubuntu-trusty-go_agent
version: 3232.2
Ubuntu 包安装与发布:
# apt-get install gist
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"
# dpkg -l gist
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-======================================-========================-========================-==================================================================================
ii gist 4.2.0-1 all Upload gists to gist.github.com
我收到错误信息
# gist-paste -p mongodb.log*
/var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- gist (LoadError)
from /var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /usr/bin/gist-paste:7:in `<main>'
与 Ubuntu 提供的 Ruby 和 /var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems
中的存在一些冲突。知道如何使用 Right ruby gem 吗?
如果您 运行 以 root 以外的用户身份执行 gist-paste 命令,它应该可以正常工作。我自己在 stemcell 1.3232.0
上测试了这个