问题标签 [bundle-install]

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.

0 投票
1 回答
1640 浏览

git - 为什么 bundler 没有正确安装存储在 get repo 中的 gem?

捆绑器版本 1.0.0.beta.2

虚拟机信息

bundle install似乎没有在我的Gemfile. 即使 bundler 说它成功下载并使用了 repo,gem list也不同意。关于此设置可能有什么问题的任何想法?

0 投票
2 回答
1210 浏览

ruby-on-rails-3 - 捆绑安装错误

我正在尝试使用捆绑安装安装此 gem: https ://github.com/jongilbraith/simple-private-messages。

我收到以下错误消息:

进入Gemfile

gem "simple-private-messages",:git =>"git://github.com/professionalnerd/simple-private-messages.git"

有任何想法吗?

0 投票
1 回答
1647 浏览

ruby-on-rails - 安装 linecache 时在 Windows 机器上收到错误错误:无法在其上构建 gem 本机扩展

在尝试执行bundle install现有 Ruby on Rails 项目时,当捆绑程序到达Installing linecache (0.43) with native extensions. 我在项目 Gem 文件中没有看到 linecache,所以没有它我无法尝试捆绑。我正在运行 Windows 7 和 JetBrains RubyMine 2.0.2。我尝试从 RubyMine 内部和命令行进行捆绑(我意识到这些是等效的)。

我的路径中有以下 Ruby 和 DevKit-3.4.5-20100819-1535-sfx 目录:

下面是 bundle 命令的输出:

我错过了什么导致这个捆绑包失败?

0 投票
2 回答
2191 浏览

ruby-on-rails - 帮助 Ruby on Rails Gem 文件和捆绑安装

我正在尝试从http://ruby.railstutorial.org/学习 rails

练习 3 解释如何使用这个 gemfile 安装 rspec、rspec-rails 和 webrat

我尝试安装 rspec-rails 和 webrat,它们似乎安装正确。

但是当我运行捆绑安装时

我收到以下错误消息

因此,作为 RoR 的新手,我不知道为什么会发生这种情况。我试过按照这个链接

http://railsforum.com/viewtopic.php?id=41464

这似乎是一个死胡同。我希望这里有人能指出我正确的方向。任何帮助,将不胜感激。

0 投票
2 回答
1311 浏览

ruby - Rails 服务器错误

当我启动我的 Rail Server for Project 时,它会出现类似的错误

当我去捆绑安装时,它给出了另一个错误

0 投票
1 回答
1531 浏览

ruby-on-rails - FreeBSD操作系统中的Ruby On Rails安装-libv8中的错误

我正在使用 FreeBSd 操作系统,当我尝试安装 libv8 时,

它抛出一个错误......

我已包含

在宝石文件..

0 投票
1 回答
570 浏览

ruby-on-rails - Ruby on Rails 教程,第 3 章 Gemfile 错误

我正在编写本教程:http ://ruby.railstutorial.org/chapters/static-pages#top ...您可以 [ctrl+f]Listing 3.1. A Gemfile for the sample app找到我的位置。

我只是复制并粘贴了那里给出的 gemfile(它没有用,所以我继续尝试 10.42 中的一个,因为我必须使用它无论如何,在某些时候。)

对于 10.42 列表,它给了我一个错误,Could not find gem 'will_paginate (= 3.0.pre2) ruby' in the gems available on this machine.

  • Rails 是 3.0.11 版本
  • Ruby 版本:1.8.7 (2012-02-08 patchlevel 358) [i386-cygwin]

接下来是显示错误的终端的复制粘贴。这里的格式很糟糕,所以我也把它放在了一个谷歌文档页面上:https ://docs.google.com/document/d/1SJsfIOtKKR2Rb228kgfpTdpYhGsWLCwfkORXJA1qYBs/edit


Brian@RobCo_Terminal /home/brian/sample_app $ rails generate rspec:install 在机器上可用的 gem 中找不到 gem 'will_paginate (= 3.0.pre2) ruby​​'。运行 bundle install 来安装缺少的 gem。

1) 使用 gravatar_image_tag (1.0.0.pre2) 安装带有本机扩展的 nokogiri (1.5.2) 3 [main] ruby​​ 7644 child_info_fork::abort: 'etc.so' (0x110000) 所需的地址空间已被占用 3 [main ] ruby​​ 6352 child_info_fork::abort: 'etc.so' (0x110000) 所需的地址空间已被占用 3 [main] ruby​​ 1524 child_info_fork::abort: 'etc.so' (0x110000) 所需的地址空间已被占用 不幸的是,发生致命错误。请将此错误报告给位于 github.com/carlhuda/bundler/issues 的 Bundler 问题跟踪器,以便我们修复它。谢谢!/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions':错误:无法构建 gem 原生扩展。(Gem::Installer::ExtensionBuildError) 2) 带有本机扩展 3 [main] ruby​​ 7644 child_info_fork::abort: 'etc.so' (0x110000) 需要的地址空间已被占用 3 [main] ruby​​ 6352 child_info_fork::abort: 'etc.so 需要的地址空间' (0x110000) 已被占用 3 [main] ruby​​ 1524 child_info_fork::abort: 'etc.so' (0x110000) 所需的地址空间已被占用 不幸的是,发生了致命错误。请将此错误报告给位于 github.com/carlhuda/bundler/issues 的 Bundler 问题跟踪器,以便我们修复它。谢谢!/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions':错误:无法构建 gem 原生扩展。(Gem::Installer::ExtensionBuildError) 2) 带有本机扩展 3 [main] ruby​​ 7644 child_info_fork::abort: 'etc.so' (0x110000) 需要的地址空间已被占用 3 [main] ruby​​ 6352 child_info_fork::abort: 'etc.so 需要的地址空间' (0x110000) 已被占用 3 [main] ruby​​ 1524 child_info_fork::abort: 'etc.so' (0x110000) 所需的地址空间已被占用 不幸的是,发生了致命错误。请将此错误报告给位于 github.com/carlhuda/bundler/issues 的 Bundler 问题跟踪器,以便我们修复它。谢谢!/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions':错误:无法构建 gem 原生扩展。(Gem::Installer::ExtensionBuildError) so' (0x110000) 已被占用 3 [main] ruby​​ 1524 child_info_fork::abort: 'etc.so' (0x110000) 所需的地址空间已被占用 不幸的是,发生了致命错误。请将此错误报告给位于 github.com/carlhuda/bundler/issues 的 Bundler 问题跟踪器,以便我们修复它。谢谢!/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions':错误:无法构建 gem 原生扩展。(Gem::Installer::ExtensionBuildError) so' (0x110000) 已被占用 3 [main] ruby​​ 1524 child_info_fork::abort: 'etc.so' (0x110000) 所需的地址空间已被占用 不幸的是,发生了致命错误。请将此错误报告给位于 github.com/carlhuda/bundler/issues 的 Bundler 问题跟踪器,以便我们修复它。谢谢!/usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions':错误:无法构建 gem 原生扩展。(Gem::Installer::ExtensionBuildError) 在“build_extensions”中:错误:无法构建 gem 原生扩展。(Gem::Installer::ExtensionBuildError) 在“build_extensions”中:错误:无法构建 gem 原生扩展。(Gem::Installer::ExtensionBuildError)

/usr/bin/ruby.exe extconf.rb 17 [main] ruby​​ 7892 child_info_fork::abort: 'etc.so' (0x2E0000) 所需的地址空间已被占用 5 [main] ruby​​ 7128 child_info_fork::abort: 地址空间'etc.so' (0x2E0000) 所需的地址空间已被占用 4 [main] ruby​​ 7568 child_info_fork::abort: 'etc.so' (0x2E0000) 所需的地址空间已被占用 4 [main] ruby​​ 3196 child_info_fork::abort: 'etc.so' (0x2E0000) 所需的地址空间已被占用 26 [main] ruby​​ 2260 child_info_fork::abort: 'etc.so' (0x2E0000) 所需的地址空间已被占用 4 [main] ruby​​ 6852 child_info_fork::中止:'etc.so' (0x2E0000) 所需的地址空间已被占用,正在检查 libxml/parser.h...没有缺少 libxml2。请访问 nokogiri.org/tutorials/installing_nokogiri。

* extconf.rb 失败 * 由于某种原因无法创建 Makefile,可能缺少必要的库和/或头文件。检查 mkmf.log 文件以获取更多详细信息。您可能需要配置选项。

提供的配置选项: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib -- without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/bin/ruby --with-zlib-dir --without-zlib-dir --with-zlib-include --without-zlib-include=${zlib-dir}/include --with-zlib-lib --without-zlib-lib=${zlib-dir}/lib --with-iconv-dir --without-iconv-dir --with-iconv-include --without-iconv- include=${iconv-dir}/include --with-iconv-lib --without-iconv-lib=${iconv-dir}/lib --with-xml2-dir --without-xml2-dir --with -xml2-include --without-xml2-include=${xml2-dir}/include --with-xml2-lib --without-xml2-lib=${xml2-dir}/lib --with-xslt-dir --without-xslt-dir --with-xslt-include --without-xslt-include=${xslt-dir}/include --with-xslt-lib --without-xslt-lib=${xslt-dir }/库

Gem 文件将继续安装在 /usr/lib/ruby/gems/1.8/gems/nokogiri-1.5.2 中以供检查。结果从 /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in 记录到 /usr/lib/ruby/gems/1.8/gems/nokogiri-1.5.2/ext/nokogiri/gem_make.out每个'来自 /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:inbuild_extensions' 来自 /usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb:198:in install' 来自 /usr /lib/ruby/gems/1.8/gems/bundler-1.1.0/lib/bundler/source.rb:90:ininstall' 来自 /usr/lib/ruby/gems/1.8/gems/bundler-1.1.0/lib /bundler/rubygems_integration.rb:82:in preserve_paths' 来自 /usr/lib/ruby/gems/1.8/gems/bundler-1.1.0/lib/bundler/source.rb:89:ininstall' 来自 /usr/lib/ ruby/gems/1.8/gems/bundler-1.1.0/lib/bundler/installer.rb:73:in install_gem_from_spec' 来自 /usr/lib/ruby/gems/1.8/gems/bundler-1.1。

0 投票
1 回答
255 浏览

ruby - Rails 3.2 - 安装新应用

我第一次安装基于 PostgreSQL 数据库的 RoR 应用程序并在运行命令rails new psql_app -d postgresql后遇到以下问题:

我还尝试重新设置与 PostgreSQL 数据库的连接,但没有成功……仍然出现此错误。当我尝试使用 MySQL 数据库创建新应用程序时,我没有收到此错误。

0 投票
0 回答
820 浏览

ruby-on-rails-3 - 捆绑安装未在 gem 列表中找到 gem

我正在尝试将设计添加到我的应用程序和 gem install 工作,但是每次我运行捆绑安装时,它都没有在我的 gemlist 中找到设计。我已经尝试包含 git 链接并使用特定版本,但它仍然无法在我的 gemfile 中找到它。

终端
$bundle install $Using rake (0.9.2.2) Using i18n (0.6.0) Using multi_json (1.3.6) Using activesupport (3.2.5) Using builder (3.0.0) Using activemodel (3.2.5) Using erubis (2.7.0) Using journey (1.0.3) Using rack (1.4.1) Using rack-cache (1.2) Using rack-test (0.6.1) Using hike (1.2.1) Using tilt (1.3.3) Using sprockets (2.1.3) Using actionpack (3.2.5) Using mime-types (1.18) Using polyglot (0.3.3) Using treetop (1.4.10) Using mail (2.4.4) Using actionmailer (3.2.5) Using arel (3.0.2) Using tzinfo (0.3.33) Using activerecord (3.2.5) Using activeresource (3.2.5) Using coffee-script-source (1.3.3) Using execjs (1.4.0) Using coffee-script (2.2.0) Using rack-ssl (1.3.2) Using json (1.7.3) Using rdoc (3.12) Using thor (0.15.2) Using railties (3.2.5) Using coffee-rails (3.2.2) Using jquery-rails (2.0.2) Using bundler (1.1.4) Using rails (3.2.5) Using sass (3.1.19) Using sass-rails (3.2.5) Using sqlite3 (1.3.6) Using uglifier (1.2.4) Your bundle is complete! Usebundle show [gemname]to see where a bundled gem is installed.

宝石文件

0 投票
3 回答
309 浏览

postgresql - 捆绑安装忽略 pg gem

当我键入“gem install pg”时,我会收到一条消息,说明 gem 已与文档一起安装。

但是当我在 gemfile 中输入“gem 'pg'”并输入“bundle install”时,它表示捆绑已完成。但是,如果我输入“bundle show pg”,它会说它在当前包中找不到“pg”。因此,像“rake db:create:all”这样的命令会返回“没有要加载的文件--pg”

我在 Ubuntu 11.04、Rails 3.0.11 和 ruby​​ 1.9.2 上运行。

克里斯