Tag: bundle install

Rails:gem install与gemfile和bundle install

使用之间的确切区别是什么: 1- gem install [gemname] 和 2-将gem名称和版本添加到GemFile并运行bundle install ?

SSL问题安装bootstrap gem

我在Gemfile中添加了bootstrap gem,当我尝试运行bundle install时 。 它显示以下错误! Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved. C:\Users\Nir>cd c:\Sites\FrogBlog c:\Sites\FrogBlog>bundle install Fetching source index from https://rails-assets.org/ Retrying fetcher due to error (2/4): Bundler::Fetcher::CertificateFailureError C ould not verify the SSL certificate for https://rails-assets.org/. There is a chance you are experiencing a man-in-the-middle attack, but most like ly […]

安装bcyrpt-ruby gem bundle时出错

我正在尝试安装Devises gem,运行bundle install然后使用bcrypt-ruby获取此错误,这是我之前没有的。 我能做什么? Installing bcrypt-ruby (3.0.1) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb creating Makefile make xcrun cc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -c bcrypt_ext.c Error: No developer directory found at /Developer. Run /usr/bin/xcode-select […]

捆绑安装错误json gem

我在rails v 5.1.6(Ruby版本2.5.0)上遇到了ruby的以下问题,大多数时候我尝试在从github下载的rails项目上运行命令bundle install,我收到以下错误。 Fetching gem metadata from http://rubygems.org/………. Using rake 0.8.7z Using abstract 1.0.0 Using activesupport 3.0.7 Using builder 2.1.2 Using i18n 0.5.0 Using activemodel 3.0.7 Using erubis 2.6.6 Using rack 1.2.8 Using rack-mount 0.6.14 Using rack-test 0.5.7 Using tzinfo 0.3.37 Using actionpack 3.0.7 Using mime-types 1.23 Using polyglot 0.3.3 Using treetop 1.4.14 Using […]

安装linecache时在Windows机器上接收错误错误:无法构建gem本机扩展

当尝试执行现有Ruby on Rails项目的捆绑Installing linecache (0.43) with native extensions时,当捆绑器到达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目录: C:\ Ruby187 \ BIN C:\的devkit-3.4.5-20100819-1535-SFX \ BIN C:\的devkit-3.4.5-20100819-1535-SFX \ MinGW的\ BIN 以下是bundle命令的输出: 获取http://rubygems.org/的源索引 使用rake(0.8.7) 使用activesupport(2.3.4) 使用机架(1.0.1) 使用actionpack(2.3.4) 使用actionmailer(2.3.4) 使用activerecord(2.3.4) 使用activeresource(2.3.4) 使用authlogic(2.1.6) 使用构建器(2.1.2) 使用mime-types(1.16) 使用xml-simple(1.0.12) 使用aws-s3(0.6.2) 使用bundler(1.0.0) 使用calendar_date_select(1.16.1) 使用cgi_multipart_eof_fix(2.5.0) 使用配置(1.1.0) 使用守护进程(1.1.0) 使用delayed_job(2.1.0.pre) 使用factory_girl(1.3.2) 使用gem_plugin(0.2.3) 使用json_pure(1.4.6) 使用launchy(0.3.7) […]

安装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 […]