问题标签 [bundler]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
ubuntu - Ruby gem error: no such file to load -- bundler
I have some troubles with a Ruby gem named Bundler. My OS is Ubuntu 10.04.
My environment is as follows:
Linux version 2.6.32-21-generic (buildd@rothera) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
ruby 1.9.1p378 (2010-01-10 revision 26273) [i486-linux]
1.3.6
My local gems are:
- abstract (1.0.0)
- actionmailer (3.0.0.beta3)
- actionpack (3.0.0.beta3)
- activemodel (3.0.0.beta3)
- activerecord (3.0.0.beta3)
- activeresource (3.0.0.beta3)
- activesupport (3.0.0.beta3)
- arel (0.3.3)
- builder (2.1.2)
- bundler (0.9.24)
- erubis (2.6.5)
- i18n (0.3.7)
- mail (2.2.0)
- memcache-client (1.8.3)
- mime-types (1.16)
- polyglot (0.3.1)
- rack (1.1.0)
- rack-mount (0.6.3)
- rack-test (0.5.3)
- rails (3.0.0.beta3)
- railties (3.0.0.beta3)
- rake (0.8.7)
- text-format (1.0.0)
- text-hyphen (1.0.0)
- thor (0.13.6)
- treetop (1.4.5)
- tzinfo (0.3.20)
And here is my error:
I got the same error when I try to start Rails 3:
More information about my version of Bundler:
Why do I get the error?
ruby-on-rails - 运行捆绑程序安装时出错
我尝试在我们的生产服务器中运行 bundle install ,但遇到了这个问题:
更新 git://github.com/collectiveidea/delayed_job.git 致命:拒绝获取非裸存储库的当前分支 refs/heads/master git 发生错误。无法完成捆绑。
我安装了捆绑器版本 0.9.25。
ruby-on-rails - 使用本机扩展构建 gem (Gem::Installer::ExtensionBuildError)
我有以下配置:
- uname -a : Linux 2.6.24.2 i686 GNU/Linux (Ubuntu)
- ruby -v : ruby 1.9.0 (2007-12-25 修订版 14709) [i486-linux]
- rails -v: Rails 3.0.0.beta3
- 宝石-v:1.3.5
- rake --version : rake,版本 0.8.7
- make -v : GNU Make 3.81
- 宝石环境:
- 红宝石版本:1.3.5
- 红宝石版本:1.9.0(2007-12-25 补丁级别 0)[i486-linux]
- 安装目录:/usr/lib/ruby1.9/gems/1.9.0
- 红宝石可执行文件:/usr/bin/ruby1.9
- 可执行目录:/usr/bin
- 红宝石平台:
- 红宝石
- x86-linux
- 宝石路径:
- /usr/lib/ruby1.9/gems/1.9.0
- /root/.gem/ruby/1.9.0
- 宝石配置:
- :update_sources => 真
- :详细 => 真
- :基准 => 假
- :回溯 => 假
- :bulk_threshold => 1000
- 远程资源:
当我尝试这个简单的命令时:
这是我得到的:
“gem_make.out”文件包含与上述完全相同的信息。
如果我尝试使用其他宝石:
这是我得到的:
事实上,每当我尝试安装带有本机扩展的 gem 时,都会遇到相同类型的错误。
这会给任何人敲响警钟吗?
ruby-on-rails - 使用 Bundler 和 JRuby 的 Rails 部署策略
我有一个 jruby rails 应用程序,我刚刚开始使用 bundler 进行 gem 依赖管理。我有兴趣听取人们对部署策略的意见。文档说这bundle package
会在本地打包你的 gem,这样你就不必在服务器上获取它们(我相信 warbler 默认会这样做),但我个人认为(对我们来说)这不是我们部署的方式代码(在我们的例子中是一个 WAR 文件)变得更大。
我的偏好是模仿我们的 MVN 设置,该设置在将代码复制到服务器后直接在服务器上获取所有依赖项。以下是我的想法,感谢所有评论:
Step1:构建war文件,复制到服务器
Step2:在服务器上解压war,使用mvn获取java依赖Step3:使用Bundler获取Gem deps(这些应该放在哪里??)
* Step 3是我有点不清楚的步骤在。我是否bundle install
有特定的目标?
第四步:重启Tomcat
我在这里的理由是,我想在部署时将依赖项与代码分开。我还想将所有 gem 依赖项放在应用程序本身中,以便包含它们,而不是将它们安装在应用程序用户的主目录中(同样,我相信这是 Bundler 的默认设置)
ruby-on-rails - 使用 Bundler 和 Rails 2.3.5 时,我在迁移时得到未初始化的常量 SubdomainFu
我正在使用带有 rails 2.3.5 的捆绑程序,我正在尝试确保一切正常,但是当我执行“rake db:migrate --trace”时,我得到了这个
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
uninitialized constant SubdomainFu
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:443:in
load_missing_constant' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in const_missing'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in
const_missing' /Users/node/Projects/Race-RX/config/initializers /subdomain_config.rb:1 /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in load_without_new_constant_marking'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
load' /opt/local/lib/ruby/gems /1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in new_constants_in'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in
load' /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb :622:in load_application_initializers'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:621:in
each' /opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:621:in load_application_initializers'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:176:in
process' /opt/local/lib/ruby/gems/1.8 /gems/rails-2.3.5/lib/initializer.rb:113:in send'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:in
run' /Users/node/Projects/Race-RX/config/environment.rb:9 /opt/local/lib/ruby/site_ruby/1.8 /rubygems/custom_require.rb:31:在gem_original_require'
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
需要' /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:156:in require'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in
new_constants_in' /opt/local/lib/ruby/gems/1.8/gems /activesupport-2.3.5/lib/active_support/dependencies.rb:156:in require'
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/misc.rake:4
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
call' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
每个'/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in execute'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_call_chain'/opt/local/lib/ruby/1.8 /monitor.rb:242 :in synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in
each' /opt/local/lib/ruby/gems/1.8/gems /rake-0.8.7/lib/rake.rb:604:in invoke_prerequisites'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in
invoke_with_call_chain' /opt/local/lib/ruby/1.8/monitor.rb:242:in synchronize'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' /opt/local/lib/ruby/gems/1.8 /gems/rake-0.8.7/lib/rake.RB:583:在invoke'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each' /opt/local/lib/ruby/gems/1.8/gems/rake -0.8.7/lib/rake.rb:2029:in top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling '/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in top_level'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run'/opt /local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling'
/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run' /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7 /bin/rake:31 /opt/local/bin/rake:19:inload'
/opt/local/bin/rake:19
我不知道是什么原因造成的。但是我做到了,但我的
需要“rubygems”需要“捆绑器”Bundler.setup
在我的 enviroment.rb 文件中,但这似乎不是问题所在。
ruby-on-rails - Rails Beta3 & PaperClip & Passenger Bundler::PathError
所以我绕着这个圈子——我正在使用Paperclip Rails gem的一个分支来让它与Rails3一起工作。在我的 OSX 盒子上和乘客一起工作正常。但是在我的服务器(CentOS 5)上,我收到了这个错误:
git://github.com/lmumar/paperclip.git (at rails3) is not checked out. Please run
捆绑安装(Bundler::PathError)Blockquote
我尝试了 Bundle Pack,但它没有从 github 打包 gem。我在我尝试过的 application.rb 文件中阅读了一篇关于将 parh 设置为 BUNDLE_HOME 的帖子:
但这不起作用。有什么想法吗?我不知道还能做什么,也不知道如何进一步调试或跟踪问题:(
乘客版本 2.2.11。
谢谢。
ruby - 捆绑器 http 身份验证支持
有谁知道 Bundler 是否支持 http auth?我很确定 rubygems 确实如此(我想我在某处读过),但我在文档中没有看到我可以为特定回购指定用户名/密码的任何地方
我正在尝试运行我自己的私有 gem 服务器,以免暴露敏感代码
ruby - 将 Bundler 与预安装的 gem 一起使用
所以我已经thin
安装了老式的方式:
我在服务器上放了一个应用程序,并通过捆绑器安装了所有必需的 gem:
但是,当我尝试使用 启动应用程序时thin start
,它找不到任何捆绑程序安装的 gem,因为它们没有安装在默认的 gems 目录中。
我的问题是:我该如何进行这项工作?我还需要thin
通过捆绑器安装吗?那仍然会设置thin
可执行文件,/usr/bin
以便我可以像往常一样从命令行启动它吗?谢谢!
ruby-on-rails - 我还需要 Gemfile 中的 source :gemcutter 吗?
我的 Rails 项目根目录中有一个文件“Gemfile”。
它source :gemcutter
在第一行中说。
我还需要这条线吗?如果我是正确的,http://rubygems.org/
是官方来源,并且 Gem Cutter 被合并到rubygems.org
.