Windows Rail 上的 Thin 和 Bundler

发布于 2024-08-30 03:47:13 字数 942 浏览 2 评论 0原文

尝试让 Thin 与 Windows 上的 Bundle 一起工作,我知道,主要 PITA 但无论如何,我是 Thin 和 Bundle gem 的新手,我使用的是 Ruby 1.8.6 并且 Rails 2.3.5 并试图让别人的应用程序在我的笔记本电脑上运行, 该应用程序使用 Thin 和 Bundle gem 来安装所需的 gem。我注意到 该捆绑包在“我的文档”文件夹下创建了一个 .bundle 文件夹并将 该应用程序的所有宝石。当我尝试“thin run”时,它报告 “thin”不被识别为内部或外部命令,可操作 程序或批处理文件。

我检查环境路径,它没有指向 .bundle 有一个 Thin.bat

C:\Documents and Settings\Bob\.bundle\ruby\1.8\bin

文件夹,我发现当我尝试“C:\Documents and Settings\Bob.bundle\ruby\1.8\bin\thin”时 开始,它给了我另一个错误,

c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:777:in
`report_activate_error': Could not find RubyGem thin (>= 0) (Gem::LoadError)
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:211:in `activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1056:in `gem'
from C:/Documents and Settings/Bob/.bundle/ruby/1.8/bin/thin:18

如果我添加“C:\Documents and Settings\Bob.bundle”,我会得到相同的错误 \ruby\1.8\bin" 到环境路径。有人知道我可以让它工作吗?

Trying to get Thin working with Bundle on Windows, I know, major PITA
but anyways, I'm new to Thin and Bundle gem, I'm on Ruby 1.8.6 and
Rails 2.3.5 and trying to get someone else's app running on my laptop,
the app uses Thin and Bundle gem to install gems required. I noticed
that bundle created a .bundle folder under My Documents folder and put
all the gems there for the app. When I tried "thin run", it reported
'thin' is not recognized as an internal or external command, operable
program or batch file.

I check the environment path and it doesn't point to the .bundle
folder at all and I found there is a thin.bat in

C:\Documents and Settings\Bob\.bundle\ruby\1.8\bin

When I tried "C:\Documents and Settings\Bob.bundle\ruby\1.8\bin\thin"
start, it gave me another error

c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:777:in
`report_activate_error': Could not find RubyGem thin (>= 0) (Gem::LoadError)
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:211:in `activate'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:1056:in `gem'
from C:/Documents and Settings/Bob/.bundle/ruby/1.8/bin/thin:18

I get the same error if I added "C:\Documents and Settings\Bob.bundle
\ruby\1.8\bin" to the env path. Anyone know I can get this working?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

旧情别恋 2024-09-06 03:47:13

对于那些刚接触捆绑器 gem 的人(就像我一样),命令是

bundle exec thin start

Hope 可以帮助其他人摸不着头脑。

For those of you that are new to bundler gem (as I am), the command is

bundle exec thin start

Hope that helps someone else scratching their heads.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文