我尝试在Bosh VM中安装gist
工具
概要 gist gem提供了一个gist-paste命令,您可以从中使用它 终端将内容上传到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
的Ruby有一些冲突。知道如何使用Right ruby gem?
答案 0 :(得分:1)
如果您以非root用户身份运行gist-paste命令,它应该可以正常工作。我在stemcell 1.3232.0
上自己测试了这个