gpt4 book ai didi

ruby - rvm gemset 复制错误

转载 作者:数据小太阳 更新时间:2023-10-29 08:06:06 25 4
gpt4 key购买 nike

我正在研究使用 rvm 从 ruby​​-1.8.7 迁移到 ruby​​-1.9.2 的细节,我遇到了将 gems 从一个 ruby​​ 复制到另一个 ruby​​ 的问题,我想看看是否有人知道什么这笔交易是什么,为什么我会犯错。

我已经安装了 1.9.2,但是运行 rvm gemset copy 会抛出错误。

[22:11][adamstacoviak:~]$ rvm gemset copy ruby-1.8.7-p249 ruby-1.9.2-p180
Copying gemset from ruby-1.8.7-p249 to ruby-1.9.2-p180
cp: cannot overwrite directory /Users/adamstacoviak/.rvm/gems/ruby-1.9.2-p180/cache with non-directory /Users/adamstacoviak/.rvm/gems/ruby-1.8.7-p249/cache
Making gemset for ruby-1.9.2-p180 pristine.
ERROR: Error running 'rvm gemset pristine' under ,
please read /Users/adamstacoviak/.rvm/log/ruby-1.8.7-p249/gemset.pristine.log

... 这是日志文件的内容。我也确实更新了 bundler ,因为我看到它提到找不到 bundler-1.0.12。更新到 bundler 1.0.12 没有成功。

[2011-04-12 22:09:54] rvm gemset pristine # under ruby-1.9.2-p180
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::RemoteFetcher
Restoring gem(s) to pristine condition...
Cached gem for bundler-1.0.12 not found, attempting to fetch...
[2011-04-12 22:14:26] rvm gemset pristine # under ruby-1.9.2-p180
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::RemoteFetcher
Restoring gem(s) to pristine condition...
Cached gem for bundler-1.0.12 not found, attempting to fetch...

关于为什么 rvm gemset copy 出错有什么想法吗?

最佳答案

RVM 是您的 friend 并且已经知道如何升级您的版本:

rvm help upgradeUsage:  rvm upgrade [source ruby] [destination ruby]Description:  Upgrades the specified (already installed) source ruby given to the  given destination ruby version. Will migrate gemsets, wrappers, aliases  and environment files.  The process will prompt you at each stage - if the versions look incorrect,  please cancel and perform it manually.Examples:  $ rvm upgrade 1.9.2-p136 1.9.2-p180  $ rvm upgrade ree-2011.01 ree-2011-02

在命令行输入rvm help ugrade

关于ruby - rvm gemset 复制错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5644047/

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