Windows Rail 上的 Thin 和 Bundler
尝试让 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于那些刚接触捆绑器 gem 的人(就像我一样),命令是
Hope 可以帮助其他人摸不着头脑。
For those of you that are new to bundler gem (as I am), the command is
Hope that helps someone else scratching their heads.