AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题

问题[rubygems](server)

Martin Hope
Taz
Asked: 2020-07-13 22:55:55 +0800 CST

Puppetserver 无法找到宝石

  • 2

我正在尝试使用一个添加 AWS Secrets Manager hiera 后端的模块:

https://forge.puppet.com/accenture/hiera_aws_sm

这个模块需要我通过 puppetserver 安装的aws-sdk-secretsmanager gem:

$ sudo puppetserver gem install aws-sdk-secretsmanager

我还可以在 puppetserver 中看到这个 gem:

$ sudo puppetserver gem list

*** LOCAL GEMS ***

<trimmed>
aws-sdk-schemas (1.6.0)
aws-sdk-secretsmanager (1.40.0, 1.39.0)
aws-sdk-securityhub (1.29.0)
<trimmed>

模块本身包含以下行来导入 gem:

require 'aws-sdk-secretsmanager'

当我尝试运行代理测试时...

$ sudo puppet agent --test

...当此模块尝试运行时,我收到以下错误(在注释掉模块添加的一些错误处理混淆之后):

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Internal Server Error: org.jruby.exceptions.LoadError: (LoadError) no such file to load -- aws-sdk-secretsmanager

我无法弄清楚为什么 puppetserver jruby 实例无法加载 gem,因为它出现在列表中并且在调试它时遇到了一些问题。

puppet rubygems
  • 1 个回答
  • 290 Views
Martin Hope
Marc Riera
Asked: 2016-04-13 22:41:36 +0800 CST

如何解决不同 gem 依赖项之间的冲突

  • 2

让我们看看是否有人可以帮助我,我不知道我在做什么。

服务器是 debian 8.4 ,完全更新。

我还使用“gem update”更新了 gems,所有可能的错误和警告都已修复。

我正在安装 redmine_git_hosting 并且发生了这种情况:

root@esplx345:/usr/share/redmine# bundle install --without development test
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break
this application for all non-root users on this machine.
Warning: this Gemfile contains multiple primary sources. Using `source` more than once without a block is a security risk, and may result in installing unexpected gems. To resolve this warning, use a block to indicate which gems should come from the secondary source. To upgrade this warning to an error, run `bundle config disable_multisource true`.
Your Gemfile lists the gem redcarpet (~> 3.3.2) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Fetching https://github.com/jbox-web/gitolite-rugged.git
Fetching https://github.com/jbox-web/grack.git
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "rack":
  In snapshot (Gemfile.lock):
    rack (= 1.5.5)

  In Gemfile:
    rails (~> 4.1.4) was resolved to 4.1.15, which depends on
      actionpack (= 4.1.15) was resolved to 4.1.15, which depends on
        rack (~> 1.5.2)

    gitlab-grack was resolved to 2.0.0.pre, which depends on
      rack (~> 1.4.1)

    rack-openid was resolved to 1.4.2, which depends on
      rack (>= 1.1.0)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
root@esplx345:/usr/share/redmine#

我用谷歌搜索并尝试了很多东西,但没有任何接缝可以工作。

我的系统上有以下宝石:

root@esplx345:/usr/share/redmine# gem update
Updating installed gems
Nothing to update
root@esplx345:/usr/share/redmine# gem list

*** LOCAL GEMS ***

actionmailer (4.2.6, 4.1.15, 4.1.8)
actionpack (4.2.6, 4.1.15, 4.1.8)
actionpack-action_caching (1.1.1)
actionview (4.2.6, 4.1.15, 4.1.8)
activejob (4.2.6)
activemodel (4.2.6, 4.1.15, 4.1.8)
activerecord (4.2.6, 4.1.15, 4.1.8)
activesupport (4.2.6, 4.1.15, 4.1.8)
arel (7.0.0, 6.0.3, 5.0.1.20140414130214)
atomic (1.1.99, 1.1.16)
awesome_nested_set (3.0.3, 3.0.0)
bigdecimal (1.2.7, default: 1.2.4)
builder (3.2.2)
bundler (1.11.2, 1.7.4)
celluloid (0.17.3, 0.15.2)
celluloid-essentials (0.20.5)
celluloid-extras (0.20.5)
celluloid-fsm (0.20.5)
celluloid-pool (0.20.5)
celluloid-supervision (0.20.5)
coderay (1.1.1, 1.1.0)
coffee-rails (4.1.1, 4.0.1)
coffee-script (2.4.1, 2.2.0)
coffee-script-source (1.10.0, 1.3.3)
concurrent-ruby (1.0.1)
erubis (2.7.0)
eventmachine (1.2.0.1, 1.0.3)
execjs (2.6.0, 2.2.1)
fcgi (0.9.2.1)
ffi (1.9.10, 1.9.6)
gitlab-grack (2.0.2)
globalid (0.3.6)
hike (2.1.3, 1.2.1)
hitimes (1.2.3)
i18n (0.7.0, 0.6.9)
io-console (0.4.5, default: 0.4.2)
jbuilder (2.4.1, 2.1.3)
jquery-rails (4.1.1, 3.1.4, 3.1.2)
json (1.8.3, default: 1.8.1)
listen (3.0.6, 2.4.0)
loofah (2.0.3)
mail (2.6.4, 2.6.1)
mime-types (3.0, 1.25)
mime-types-data (3.2016.0221)
mini_portile2 (2.1.0, 2.0.0)
minitest (5.8.4, 5.4.2, default: 4.7.5)
multi_json (1.11.2, 1.10.1)
mysql2 (0.4.3, 0.3.20, 0.3.16)
net-http-persistent (2.9.4, 2.9)
net-ldap (0.14.0, 0.8.0)
nokogiri (1.6.7.2)
oj (2.15.0, 2.10.3)
pkg-config (1.1.7)
polyglot (0.3.5, 0.3.4)
power_assert (0.2.7)
protected_attributes (1.1.3, 1.0.8)
psych (2.0.17, default: 2.0.5)
rack (1.6.4, 1.5.5, 1.5.2)
rack-openid (1.4.2)
rack-test (0.6.3, 0.6.2)
rails (4.2.6, 4.1.15, 4.1.8)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.6, 4.1.15, 4.1.8)
rake (11.1.2, 10.3.2, default: 10.1.0)
rb-fsevent (0.9.7)
rb-inotify (0.9.7, 0.9.5)
rdoc (4.2.2, default: 4.1.0)
redcarpet (3.3.4, 3.1.2)
request_store (1.3.1, 1.1.0)
rmagick (2.15.4, 2.13.2)
ruby-openid (2.7.0, 2.5.0)
rubygems-update (2.6.3)
sass (3.4.22, 3.4.6)
sass-rails (5.0.4, 4.0.3)
sdoc (0.4.1)
spring (1.7.1, 1.1.3)
sprockets (3.6.0, 2.12.3)
sprockets-rails (3.0.4, 2.3.3, 2.1.3)
sqlite3 (1.3.11, 1.3.9)
test-unit (3.1.8, default: 2.1.5.0)
thor (0.19.1)
thread_safe (0.3.5, 0.3.3)
tilt (2.0.2, 1.4.1)
timers (4.1.1, 1.1.0)
treetop (1.6.5, 1.4.15)
turbolinks (2.5.3, 2.2.2)
tzinfo (1.2.2, 1.1.0)
uglifier (3.0.0, 2.5.3)
will_paginate (3.1.0)
yajl-ruby (1.2.1, 1.2.0)
root@esplx345:/usr/share/redmine#

非常感谢您的帮助。

debian ruby redmine rubygems
  • 2 个回答
  • 31191 Views
Martin Hope
A4J
Asked: 2012-06-03 15:46:31 +0800 CST

如何验证 PostgreSQL 9 是否已在 CentOS 服务器上正确安装?

  • 1

我正在尝试在 CentoOS 服务器上安装 PG (postgres) gem,但它一直说 Postgres 太旧,即使我已将其升级到 9.1.3(按照此处的说明http://www.davidghedini。 com/pg/entry/install_postgresql_9_on_centos)。

我正在使用 CentOS 5.8(和 Ruby 1.9.3)

这是错误消息:

Building native extensions.  This could take a while...
ERROR:  Error installing pg:
    ERROR: Failed to build gem native extension.

        /usr/local/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... yes
checking for PQconnectionUsedPassword()... no
Your PostgreSQL is too old. Either install an older version of this gem or upgrade your database.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

psql --version 确认我的版本:psql (PostgreSQL) 9.1.3

我可以确认安装的包:

Setting up Install Process
Package postgresql91-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Package postgresql91-devel-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Package postgresql91-server-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Package postgresql91-libs-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Package postgresql91-contrib-9.1.3-1PGDG.rhel5.x86_64 already installed and latest version
Nothing to do

关于如何解决这个问题的任何想法?提前致谢。

centos postgresql rubygems
  • 3 个回答
  • 5955 Views
Martin Hope
John
Asked: 2010-03-25 05:07:57 +0800 CST

检查ubuntu上安装了哪个版本的rubygems?

  • 17

如何检查我的 ubuntu 机器上安装了哪个版本的 ruby​​gems?

rubygems
  • 2 个回答
  • 36567 Views
Martin Hope
John
Asked: 2010-03-25 04:53:30 +0800 CST

未定义的方法`manage_gems`

  • 0

在我的 ubuntu 8.04 上,我做了一个

gem update --system

现在每次我尝试从控制台运行 gem 命令行时,我都会收到错误消息:

/usr/bin/gem:10: undefined method `manage_gems' for Gem:Module (NoMethodError)

这是怎么回事?我的 ruby​​gem 版本很旧,但至少它以前可以工作。如何解决上述问题或回滚到我的早期版本?

rubygems
  • 1 个回答
  • 393 Views
Martin Hope
John
Asked: 2010-03-24 15:22:22 +0800 CST

gem install rails 给我错误:未定义的方法包括?

  • 0

我正在使用 ubuntu 9.10、apache 2 和 mysql 5。我在服务器上安装了 ruby​​ 1.8.7。我运行了命令

gem install rails -v 1.2.3

但后来我得到了错误

ERROR:  While executing gem ... (NoMethodError)
    undefined method `include?' for nil:NilClass

我做错了什么?

ruby-on-rails rubygems
  • 2 个回答
  • 1028 Views
Martin Hope
cclark
Asked: 2010-03-12 11:21:51 +0800 CST

如何最好地自动处理多个 site_ruby 位置?

  • 1

有没有办法自动附加到 $: ruby​​ 中的变量以说明其他 site_ruby 位置?

Ruby 安装在 /usr/local/ 中,使用 gem_install 会将新的 ruby​​ 文件正确安装到 /usr/local/lib/ruby/site_ruby。

但是,有一些 RPM 用于将 ruby​​ 绑定到我们想要安装的 shadow 等工具,它们安装到 /usr/lib/ruby/site_ruby(非本地)。有没有一种标准的方法来告诉 ruby​​ 这个目录也应该默认包含在内?

我知道脚本可以动态更新 $: 或者可以使用 -I 调用它们,但似乎这是应该在安装中处理的事情。

有没有其他人找到解决此类问题的干净方法?

谢谢,查克

ruby rpm rubygems
  • 1 个回答
  • 293 Views
Martin Hope
user35042
Asked: 2010-03-03 12:47:13 +0800 CST

如何卸载 ruby​​gem 应用程序?

  • 6

我们通过下载 ruby​​gems tar.gz 存档并运行 setup.rb 命令在 Debian 系统上安装了 ruby​​gem 应用程序(版本 1.3.6)。

卸载此应用程序的最佳方法是什么?

linux debian uninstall rubygems
  • 3 个回答
  • 10219 Views
Martin Hope
Agvorth
Asked: 2009-07-08 15:06:57 +0800 CST

如何从 RHEL 5 系统中卸载软件?

  • 1

我在 RHEL 5 系统上安装了 Rubygems 1.3.4。您安装的方式是下载源代码并运行setup.rb. 我没有通过yum list available.

现在我想卸载它,因为我决定使用不同版本的 Rubygems。没有安装日志文件或安装程序放置内容的任何列表。setup.rb从事情的发展方向来看,还不清楚。

有什么想法吗?

redhat ruby package-management rhel5 rubygems
  • 3 个回答
  • 2455 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve