[英]Bosh stemcell Ubuntu Ruby, in conflict with /var/vcap/bosh/lib/ruby (LoadError)
I tried to install gist
tool in Bosh VM 我试图在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/ .
概要gist gem提供了一个gist-paste命令,您可以从终端使用该命令将内容上传到https://gist.github.com/ 。
version 版
stemcells:
- name: bosh-openstack-kvm-ubuntu-trusty-go_agent
version: 3232.2
Ubuntu package installation and release: 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
error message I receive 我收到的错误消息
# 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>'
There is some conflict with Ubuntu provided Ruby and the one from /var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems
. 与提供Ruby的Ubuntu和
/var/vcap/bosh/lib/ruby/site_ruby/1.9.1/rubygems
的一个提供的冲突。 Any idea howto use the Right ruby gem? 任何想法如何使用正确的红宝石宝石?
If you run the gist-paste command as a user other than root, it should work fine. 如果您以root以外的用户身份运行gist-paste命令,则该命令应该可以正常运行。 I tested this myself on stemcell 1.3232.0
我自己在干细胞1.3232.0上进行了测试
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.