gpt4 book ai didi

ruby - Bosh stemcell Ubuntu Ruby,与/var/vcap/bosh/lib/ruby 冲突(LoadError)

转载 作者:行者123 更新时间:2023-12-04 19:15:33 26 4
gpt4 key购买 nike

我尝试安装 gist Bosh VM 中的工具

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 中的 Ruby 存在一些冲突。 .知道如何使用正确的 ruby gem 吗?

最佳答案

如果您以 root 以外的用户身份运行 gist-paste 命令,它应该可以正常工作。我自己在 stemcell 1.3232.0 上测试了这个

关于ruby - Bosh stemcell Ubuntu Ruby,与/var/vcap/bosh/lib/ruby 冲突(LoadError),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39106872/

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