bundler

Find out which gems require native c extensions from a Gemfile?

无人久伴 提交于 2019-12-21 01:48:12
问题 I just recently started shifting attention towards deploying Ruby apps atop TorqueBox which of course is built atop Jruby. Hitherto I have been basically performing a bundle install and then tackling each gem along the way to jrubydom, but I've hit a couple gems that have taken me some considerable time to resolve due to needing to reimplement large portions of them. Is there a way to invoke bundler or rubygems to run through all gems and their deps to test if they require native c extensions

Find out which gems require native c extensions from a Gemfile?

半世苍凉 提交于 2019-12-21 01:48:08
问题 I just recently started shifting attention towards deploying Ruby apps atop TorqueBox which of course is built atop Jruby. Hitherto I have been basically performing a bundle install and then tackling each gem along the way to jrubydom, but I've hit a couple gems that have taken me some considerable time to resolve due to needing to reimplement large portions of them. Is there a way to invoke bundler or rubygems to run through all gems and their deps to test if they require native c extensions

First ever bundle install, stack level too deep

天涯浪子 提交于 2019-12-20 19:42:24
问题 I have created a brand new rails project using the command rails new qbc --database=mysql . It creates all the files perfectly fine, but at the bundle install it errors out $ bundle install Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/.. Unfortunately, a fatal error has occurred. Please see the Bundler troubleshooting documentation at http://bit.ly/bundler-issues. Thanks! /usr/bin/bundle:23: stack level too deep (SystemStackError)

bundle vs bundler / bundle vs bundle install

拟墨画扇 提交于 2019-12-20 17:43:06
问题 What is the difference between the bundle & bundler commands? What is the difference between bundle & bundle install ? If there're no differences, why have multiple commands that do the same thing? 回答1: The executables bundle & bundler have the same functionality and therefore can be used interchangeably. You can see in the bundler/exe directory that the bundler executable just loads the bundle executable. It seems to me that the bundle command is more commonly used than the bundler command.

Force bundler to install gems in user’s home directory

江枫思渺然 提交于 2019-12-20 17:36:15
问题 Last time I’m trying to learn how to do web development with Ruby on Rails and I use my Arch GNU/Linux machine for it. The policy of Arch requires gems to be installed in the user directory instead of usual system‐wide location. However, it contradicts the default behavior of the bundler (which tries to install gems system‐wide). So whenever I run rails new foo the bundler asks me to enter my root password. I want to force bundler to install gems required by Rails in my home directory. I

How to re-sync Gemfile.lock on changes to Gemfile

我们两清 提交于 2019-12-20 17:19:08
问题 How to re-sync Gemfile.lock on changes to Gemfile. Assuming I have 3 gems (gem1, gem2, gem3) in the Gemfile. bundle install creates a Gemfile.lock file. If I remove gem3 and run bundle install , I would like Gemfile.lock to be re-generated and gem3 removed from the rvm gemset. But it doesn't, how should I re-sync without dropping the gemset. 回答1: To bring the Gemfile.lock in line with Gemfile edits, run bundle check . To bring the Gemfile.lock in line with both the Gemfile edits AND the

How to re-sync Gemfile.lock on changes to Gemfile

我的未来我决定 提交于 2019-12-20 17:18:07
问题 How to re-sync Gemfile.lock on changes to Gemfile. Assuming I have 3 gems (gem1, gem2, gem3) in the Gemfile. bundle install creates a Gemfile.lock file. If I remove gem3 and run bundle install , I would like Gemfile.lock to be re-generated and gem3 removed from the rvm gemset. But it doesn't, how should I re-sync without dropping the gemset. 回答1: To bring the Gemfile.lock in line with Gemfile edits, run bundle check . To bring the Gemfile.lock in line with both the Gemfile edits AND the

Rubymine Not Locating Gems Specified by BUNDLE_PATH

ⅰ亾dé卋堺 提交于 2019-12-20 12:34:30
问题 I am using RubyMine IDE with RVM for Ruby version management and bundler install --path vendor/bundle to keep my gems local. However, RubyMine doesn't seem to be reading my .bundle/config file which specifies where my gems are located with the BUNDLE_PATH property: BUNDLE_PATH: vendor/bundle BUNDLE_DISABLE_SHARED_GEMS: '1' I have found some sources which indicate that RubyMine should support this, but can't seem to find any explanation of exactly how it works or how to fix it properly. This

Does PHP have like ruby gem bundler?

£可爱£侵袭症+ 提交于 2019-12-20 12:34:08
问题 I am PHP programmer that know Rails. Ruby gem bundler very good tool to install dependencies, does php have something like that?(maybe some php framework have such tool). Expanation about gem bundler: Bundler manages an application's dependencies through its entire life across many machines systematically and repeatably. 回答1: There is Composer. Composer is a package manager tracking local dependencies of your projects and libraries. Then you have Packagist (which is the main Composer

libv8 (3.11.8.17) bundle install error on Mac

不羁岁月 提交于 2019-12-20 11:37:31
问题 I upgraded ruby to 1.9.3, and now I can't get my server to start. When I run bundle install, it says An error occurred while installing libv8 (3.11.8.17), and Bundler cannot continue. Make sure that `gem install libv8 -v '3.11.8.17'` succeeds before bundling. When I try to install that gem, it says ERROR: Error installing libv8: ERROR: Failed to build gem native extension. /Users/Erica/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb creating Makefile Compiling v8 for x64 Using python 2.7.1