标签: bundle-install

由于unf_ext(0.0.5)gem,捆绑安装失败

我在centos 6.3上使用rvm安装了ruby 1.9.3p327和rails 3.2.8.但是在为特定项目文件夹执行bundle安装时,当它尝试安装gem unf_ext 0.0.5并抛出跟随错误时,该过程会失败,

使用本机扩展安装unf_ext(0.0.5)Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展.

/home/rradmin/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb -fPIC
checking for main() in -lstdc++... yes
checking for ruby/encoding.h... yes
creating Makefile

make
compiling unf.cc
cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wimplicit-function-declaration" is valid for C/ObjC but not for C++
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../include/c++/4.4.6/vector:61,
from unf/normalizer.hh:4,
from unf.cc:1:
.....
....
...
Run Code Online (Sandbox Code Playgroud)

Gem文件将保留在/home/rradmin/.rvm/gems/ruby-1.9.3-p327@r32/gems/unf_ext-0.0.5中进行检查.结果记录到/home/rradmin/.rvm/gems/ruby-1.9.3-p327@r32/gems/unf_ext-0.0.5/ext/unf_ext/gem_make.out

安装unf_ext(0.0.5)时发生错误,Bundler无法继续.gem install unf_ext -v '0.0.5'在捆绑之前确保成功.

我也试图单独安装unf_ext,如上所述,但得到了同样的错误.我已经提到https://github.com/cowboyd/therubyracer/issues/135,但仍然无法解决问题.请让我知道解决这个问题的正确方法. …

bundle-install ruby-on-rails-3.2

10
推荐指数
2
解决办法
5590
查看次数

安装charlock_holmes libicu时发生错误

我正在尝试按照此安装脚本安装Gitlab ,但遇到了charlock_holmes gem无法安装的问题.我不熟悉Ruby.我的charlock_holmes-0.6.8 gem_make.out文件在下面.

/home/gitlabuser/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
checking for main() in -licui18n... no
which: no brew in (/home/gitlabuser/.rvm/gems/ruby-1.9.2-p290/bin:/home/gitlabuser/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/gitlabuser/.rvm/rubies/ruby-1.9.2-p290/bin:/home/gitlabuser/.rvm/gems/ruby-1.9.2-p290/bin:/home/gitlabuser/.rvm/gems/ruby-1.9.2-p290@global/bin:/home/gitlabuser/.rvm/rubies/ruby-1.9.2-p290/bin:/home/gitlabuser/.rvm/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/gitlabuser/bin:/usr/lib64/qt4/bin/)
checking for main() in -licui18n... no


***************************************************************************************
*********** icu required (brew install icu4c or apt-get install libicu-dev) ***********
***************************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib …
Run Code Online (Sandbox Code Playgroud)

redhat rhel bundle-install gitlab

7
推荐指数
3
解决办法
6723
查看次数

安装mysql2(0.3.21)时发生错误,并且Bundler无法继续

我尝试捆绑应用程序时出现此错误的任何原因:我尝试按照他们的建议安装gem install mysql2 -v'0.3.21',但无法正确安装。我也在macOS High Sierra上运行它。对不起,我对此问题措辞不好,因为这是我第一次与红宝石合作。

 To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /Users/yamanshrestha/Desktop/Dorsata/vendor/bundle/ruby/2.3.0/extensions/universal-darwin-17/2.3.0/mysql2-0.3.21/mkmf.log

current directory: /Users/yamanshrestha/Desktop/Dorsata/vendor/bundle/ruby/2.3.0/gems/mysql2-0.3.21/ext/mysql2
make "DESTDIR=" clean

current directory: /Users/yamanshrestha/Desktop/Dorsata/vendor/bundle/ruby/2.3.0/gems/mysql2-0.3.21/ext/mysql2
make "DESTDIR="
compiling infile.c
compiling client.c
client.c:439:3: error: use of undeclared identifier 'my_bool'
  my_bool res = mysql_read_query_result(client);
  ^
client.c:441:19: error: use of undeclared identifier 'res'
  return (void *)(res == 0 ? Qtrue : Qfalse);
                  ^
client.c:762:3: error: use of undeclared identifier 'my_bool'
  my_bool boolval;
  ^
client.c:793:7: error: …
Run Code Online (Sandbox Code Playgroud)

mysql ruby-on-rails bundle-install

7
推荐指数
3
解决办法
3947
查看次数

无法在 macOS Ventura 上捆绑安装“mysql2”,原因是“ld:找不到 -lzlib 的库”

无法使用mysql2来安装。\n我这么问是因为一些网站和博客已经展示了如何解决由,bundle install引起的问题,但我找不到由 引起的解决方案。还有其他人遇到过同样的问题吗?sslzstdzlib

\n

顺便说一句,我是bundle install在本地运行,而不是在docker上运行。

\n
    \n
  • 操作系统:文图拉(13.3.1)
  • \n
  • 代码:14.3
  • \n
  • 红宝石:3.1.4
  • \n
  • 导轨:6.1
  • \n
  • mysql2:0.5.5
  • \n
\n

已经完成了:

\n
    \n
  • brew install mysql, openssl@3, zstd, zlib
  • \n
\n

这是日志输出。

\n
Fetching gem metadata from https://rubygems.org/..........\nResolving dependencies...\nUsing rake 13.0.6\nUsing concurrent-ruby 1.2.2\nUsing minitest 5.18.0\nUsing zeitwerk 2.6.8\nUsing websocket-extensions 0.1.5\nUsing erubi 1.12.0\nUsing racc 1.6.2\nUsing date 3.3.3\nUsing rack 2.2.7\nUsing bindex 0.8.1\nUsing bundler 2.3.26\nUsing marcel 1.0.2\nUsing mini_mime 1.1.2\nUsing timeout 0.3.2\nUsing rb-fsevent 0.11.2\nUsing crass 1.0.6\nUsing msgpack …
Run Code Online (Sandbox Code Playgroud)

rubygems zlib bundler bundle-install mysql2

7
推荐指数
1
解决办法
3049
查看次数

Fresh Vim安装,Vim权限错误,Vundle无法正常运行

我在Linux Mint Debian Edition上安装了以下vim包:

vim
vim-common
vim-tiny
vim-runtime
vim-doc
Run Code Online (Sandbox Code Playgroud)

我之前安装了上面的软件包,并在安装Vundle之后(它通过http://github.com/gmarik/vundle上的说明进行了功能)决定,以避免插件冲突,完全删除并重新安装上述所有vim软件包/ .vim文件夹,以充分利用Vundle作为管理我的插件的手段.在我的文件浏览器中,我可以看到从git cloning创建的文件夹~/.vim和所有继承的文件夹/文件都属于root.这会导致Vundle出现以下问题:

首先,当我执行:BundleSearch查询时:

http://imgur.com/ZB2RnR7

为了进一步诊断我的问题,我尝试手动将一个包添加到我的vimrc中:

Bundle 'scrooloose/nerdtree'
Run Code Online (Sandbox Code Playgroud)

使用Vundle GitHub中完全相同的vimrc设置,它适用于以前的安装.现在,当我尝试:BundleInstall获取以下基于权限的错误时:

[140112 13:48:10] 

[140112 13:48:10] Bundle scrooloose/nerdtree

[140112 13:48:10] $ git clone --recursive 'https://github.com/scrooloose/nerdtree.git' '/home/ahqiao/.vim/bundle/nerdtree'

[140112 13:48:10] > fatal: could not create work tree dir '/home/ahqiao/.vim/bundle/nerdtree'.: Permission denied\00

[140112 13:48:11] 

[140112 13:48:11] Helptags:

[140112 13:48:11] :helptags /home/ahqiao/.vim/bundle/vundle/doc/

[140112 13:48:11] > Error running :helptags /home/ahqiao/.vim/bundle/vundle/doc/

[140112 13:48:11] Helptags: 1 bundles processed
Run Code Online (Sandbox Code Playgroud)

此外,我的vimrc还包含插件的标准两行:

filetype plugin on

set …
Run Code Online (Sandbox Code Playgroud)

vim vim-plugin bundle-install vundle

6
推荐指数
2
解决办法
5047
查看次数

错误:尝试在我的 rails 应用程序中安装 gem pg 时,权限被拒绝 @ rb_sysopen (Windows 7)

使用 Windows 7 Ultimate 并以管理员身份运行 cmd。
我最近开始在 rails 上使用 ruby​​,在我的新 rails 应用程序中,我尝试安装 postgres(pg) gem,然后出现权限被拒绝错误,如下所示:

C:\wamp\www\RailsApp>bundle install
DL is deprecated, please use Fiddle
Fetching gem metadata from https://rubygems.org/...........
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.5.1
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.1.8
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.8
Using rack 1.5.2
Using rack-test 0.6.3
Using actionpack 4.1.8
Using mime-types 2.4.3
Using mail 2.6.3
Using actionmailer 4.1.8
Using activemodel 4.1.8
Using arel …
Run Code Online (Sandbox Code Playgroud)

ruby postgresql ruby-on-rails windows-7 bundle-install

6
推荐指数
1
解决办法
3897
查看次数

Rails:gem install与gemfile和bundle install

使用之间的确切区别是什么:

1- gem install [gemname]

2-为GemFile添加gem名称和版本并运行bundle install

rubygems ruby-on-rails bundle-install gemfile

4
推荐指数
1
解决办法
656
查看次数

版本的校验和与捆绑安装不匹配

好的,所以我在rails和heroku的旧笔记本电脑上创建了一个项目.我希望在我的笔记本电脑上访问这些文件并将新编辑推送到heroku.它们都保存在Git上,所以我可以将git存储库克隆到我的新笔记本电脑上.

我的笔记本电脑上没有以前的软件所以我安装了ruby和rails并且版本很好但是当我在命令提示符下打开文件夹时尝试捆绑安装时我得到错误"/ checkum of/versions与提供的校验和不匹配服务器!出了点问题".

我是rails等新手,所以我不知道这里有什么线索我只是想设置我的环境与上次完全一样,所以我可以从我在旧笔记本电脑上停下的地方开始.我尝试了很多东西,比如清理宝石,更新宝石,重新安装红宝石和铁轨.

除了这个,当我尝试rails -vi得到错误消息"你没有[插入宝石名称]尝试运行捆绑安装"所以我将安装新的宝石,然后我得到相同的错误.

这已成为一场噩梦,我只想找到一种安装ruby和rails的简洁方法,以便这些错误能够解决问题.

我按照指南创建了这个项目,所以我想我可以再次这样做,但我更愿意解决当前的问题.我发现另外一件事发生在某人身上,但是在创建新文件的情况下.

这是我项目中的gem文件

source 'http://rubygems.org'

ruby '2.1.8'

gem 'rails', '4.1.8'
gem 'sass-rails', '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0',          group: :doc
gem 'pygments.rb', '~> 0.6.0'
gem 'redcarpet', '~> 3.2.2'
gem 'friendly_id', '~> 5.1.0'
gem 'will_paginate', '~> 3.0.7'

gem 'tzinfo-data', platforms: [:mingw, :mswin]

group :development do
    gem 'sqlite3'
end

group :production do
    gem 'pg'
    gem 'rails_12factor'
end
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails bundler bundle-install

4
推荐指数
1
解决办法
6189
查看次数

运行 bundle install 时出现 Ruby 错误

当我rails s在控制台中运行 时,命令失败并得到以下响应:

Could not find nokogiri-1.6.8.1 in any of the sources Run bundle install to install missing gems.

这里的第一个问题是 nokogiri 不在我的 Gemfile 中,因为我没有使用 nokogiri,那么为什么当 nokogiri 甚至不是我运行 bundle install 的项目的一部分时,它是一个问题?

然后我根据初始提示运行 bundle install :

bundle install

我收到一个错误。最后的错误信息:

An error occurred while installing byebug (9.0.6), and Bundler cannot continue. Make sure that gem install byebug -v '9.0.6' succeeds before bundling.

我注意到,在整个过程中,我收到了其他错误消息:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

那么,这是我项目中 Gemfile 的问题还是更深层次的问题?意思是 Gems 安装在我的电脑上的方式?

这是我的 Gemfile:

source "https://rubygems.org"
ruby …
Run Code Online (Sandbox Code Playgroud)

ruby ruby-on-rails nokogiri bundle-install gemfile

4
推荐指数
1
解决办法
3862
查看次数

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

Bundler版本1.0.0.beta.2

Rvm信息

system:
  uname:        "Linux dane-r1f-ubuntu 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:27:30 UTC 2010 i686 GNU/Linux"
  shell:        "bash"
  version:      "4.1.5(1)-release"

rvm:
  type:         "rvm is a function"
  version:      "rvm 0.1.31 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/]"

ruby:
  interpreter:  "ruby"
  version:      "1.9.2dev"
  date:         "2010-05-31"
  platform:     "i686-linux"
  patchlevel:   "2010-05-31 revision 28117"
  full_version: "ruby 1.9.2dev (2010-05-31 revision 28117) [i686-linux]"

homes:
  gem:          "/home/dane/.rvm/gems/ruby-1.9.2-preview3@mmm"
  ruby:         "/home/dane/.rvm/rubies/ruby-1.9.2-preview3"

binaries:
  ruby:         "/home/dane/.rvm/rubies/ruby-1.9.2-preview3/bin/ruby"
  irb:          "/home/dane/.rvm/rubies/ruby-1.9.2-preview3/bin/irb"
  gem:          "/home/dane/.rvm/rubies/ruby-1.9.2-preview3/bin/gem"
  rake:         "/home/dane/.rvm/gems/ruby-1.9.2-preview3@mmm/bin/rake"

environment:
  GEM_HOME:     "/home/dane/.rvm/gems/ruby-1.9.2-preview3@mmm"
  GEM_PATH:     "/home/dane/.rvm/gems/ruby-1.9.2-preview3@mmm:/home/dane/.rvm/gems/ruby-1.9.2-preview3@global"
  BUNDLE_PATH:  "/home/dane/.rvm/gems/ruby-1.9.2-preview3@mmm"
  MY_RUBY_HOME: "/home/dane/.rvm/rubies/ruby-1.9.2-preview3"
  IRBRC: …
Run Code Online (Sandbox Code Playgroud)

git rubygems bundler rvm bundle-install

3
推荐指数
1
解决办法
1624
查看次数

安装pg -v 0.17.1

我正在使用/我想使用Postgresql作为数据库,但是当我输入"bundle install"或"bundle update"时,我收到此错误,我该怎么做才能解决这个问题?:)

    Installing pg (0.17.1) with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb 
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
 --with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir …
Run Code Online (Sandbox Code Playgroud)

ruby postgresql ruby-on-rails bundle-install pg

3
推荐指数
2
解决办法
6643
查看次数

使用 has_secure_password 时出错。无法加载此类文件 -- 2.0/bcrypt_ext

我是 Ruby on Rails ans 的新手,所以我正在学习 Rails 4 敏捷 Web 开发教程。所以用户可以登录,为此我在文件 user.rb 中使用了 has_secure_password:

class User < ActiveRecord::Base
    has_secure_password
  validates :name, presence: true, uniqueness: true
end
Run Code Online (Sandbox Code Playgroud)

但是当我运行服务器时,我收到错误:

cannot load such file -- 2.0/bcrypt_ext
Run Code Online (Sandbox Code Playgroud)

这是应用程序跟踪

app/models/user.rb:2:in `<class:User>'
app/models/user.rb:1:in `<top (required)>'
app/controllers/users_controller.rb:7:in `index'
This error occurred while loading the following files:
   bcrypt
   bcrypt_ext
   2.0/bcrypt_ext
Run Code Online (Sandbox Code Playgroud)

我在 gemfile 中包含 gem 'bcrypt-ruby', '~> 3.0.0' 但它仍然不起作用。

我在类似的问题中读到它与“捆绑安装”有关,但我无法解决问题。

提前致谢

ruby-on-rails bundle-install bcrypt-ruby

2
推荐指数
1
解决办法
2568
查看次数

“安装 sqlite3 (1.3.13) 时出错,Bundler 无法继续”

我正在尝试运行bundle install,但是当我这样做时,我收到一条错误消息,指出“安装 sqlite3 (1.3.13) 时出错,Bundler 无法继续。” 我尝试运行gem install sqlite3 -v '1.3.13',但我也遇到了错误。

这是我的 Gemfile:

source 'https://rubygems.org'

git_source(:github) do |repo_name|
  repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
  "https://github.com/#{repo_name}.git"
end


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.1'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported …
Run Code Online (Sandbox Code Playgroud)

sqlite rubygems ruby-on-rails bundle-install

0
推荐指数
1
解决办法
3626
查看次数