开发者

Ruby 1.9.2-p290 through rbenv produces warning from psych-1.2.1: VERSION and LIBYAML_VERSION

开发者 https://www.devze.com 2023-04-04 18:50 出处:网络
When I running ruby I get the following warnings: ~/.gem/gems/psych-1.2.1/lib/psych.rb:93: warning: already initialized constant VERSION

When I running ruby I get the following warnings:

~/.gem/gems/psych-1.2.1/lib/psych.rb:93: warning: already initialized constant VERSION
~/.gem/gems/psych-1.2.1/lib/psych.rb:96: warning: already initialized constant LIBYAML_VERSION

I've tried googling around but can seem to find a soluti开发者_C百科on which makes me think it's specific to my system. Is there a way to fix this?


This problem seems to originate in psych being called by bundler in Bundler.setup. The work-around I used:

gem 'psych'

In my code before

Bundler.setup


There are two ways.

->First

add gem 'psych'

in your Gemfile file and then run

bundle install

-> Second

gem uninstall psych

at console

0

精彩评论

暂无评论...
验证码 换一张
取 消