捆绑安装混乱
我在 Mac 上使用 RVM 进行 Rails 3 开发。
我想运行 bundle update newrelic_rpm
来升级到新版本的 gem。
这是一个坏主意:它在我的应用程序的根目录下创建一个名为 newrelic_rpm 的新文件夹,并且捆绑包(v 1.0.10)自豪地显示
您的捆绑包已完成!它已安装到 ./newrelic_rpm
现在我陷入困境,我无法更新我的包,并且它不断将我的所有宝石放在新创建的文件夹中。
谁能帮我恢复到初始设置(并删除这个 ./newrelic_rpm 文件夹)?
谢谢! p。
I have using RVM on a mac for a rails 3 development.
I wanted to run bundle update newrelic_rpm
to upgrade to the new version of the gem.
This was a bad idea: it creates a new folder call newrelic_rpm at the root of my app, and bundle (v 1.0.10) displays proudly
Your bundle is complete! It was installed into ./newrelic_rpm
And now i'm stuck, i cannot update my bundle and it keeps putting all my gems in the newly created folder.
can anyone please help me revert to the initial setup (and get rid of this ./newrelic_rpm folder)?
thanks!
p.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我假设您首先尝试了诸如
bundle install newrelic_rpm
之类的操作,它创建了newrelic_rpm
文件夹并告诉 Bundler 开始使用该文件夹作为默认文件夹。您的
.bundle/config
文件可能包含如下内容:解决此问题的最简单方法(假设您的 Bundler 是最新的)是运行此命令以将所有内容安装回主共享系统路径中:
然后,
bundle update newrelic_rpm
应该执行您的预期操作(更新newrelic_rpm
gem,而不是更新所有内容并将其放入newrelic_rpm
)。I'm assuming that you first tried something like
bundle install newrelic_rpm
, which created thenewrelic_rpm
folder and told Bundler to start using that folder as the default.Your
.bundle/config
file likely contains something like this:The easiest way to fix this (assuming your Bundler is up to date), is to run this command to install everything back in the main shared system paths:
Then,
bundle update newrelic_rpm
should do what you intended (updating thenewrelic_rpm
gem, rather than updating everything and putting it innewrelic_rpm
).第一:做好备份。然后尝试删除“.bundle”目录。
或者只是查看“.bundle/config”文件 - 我想会有一些有趣的东西。
First: make backup. Then try removing '.bundle' directory.
Or just see the '.bundle/config' file - I guess there will be something interesting.