bundler

How do I ensure ruby gems are installed in right place to be executed by bundler?

六眼飞鱼酱① 提交于 2019-12-29 08:01:51
问题 I seem to be constantly having problems with getting the gems in the right place (and not needing to use sudo when installing them.) To address the sudo issue, I installed rbenv and then use that to install ruby 2.1.0 so that I had a separate one from Mac OSX system. Then I installed bundler. But when I install gems from a Gemfile with bundler, I cannot find them. Between all the steps I have taken, such as adding lines to my .bash_profile and so forth, I have the following, but really just

How do I ensure ruby gems are installed in right place to be executed by bundler?

白昼怎懂夜的黑 提交于 2019-12-29 08:01:11
问题 I seem to be constantly having problems with getting the gems in the right place (and not needing to use sudo when installing them.) To address the sudo issue, I installed rbenv and then use that to install ruby 2.1.0 so that I had a separate one from Mac OSX system. Then I installed bundler. But when I install gems from a Gemfile with bundler, I cannot find them. Between all the steps I have taken, such as adding lines to my .bash_profile and so forth, I have the following, but really just

Rails 3's “bundle install” and “bundle install --deployment” both work well except the 2nd one just uses more disk space?

笑着哭i 提交于 2019-12-29 04:17:08
问题 It seems that on development machines (like on the Macbook), if we use bundle install --deployment , all the gems will be installed into the vendor/bundle folder and it just use more disk space if we have multiple Rails 3 projects (some project just for testing Rails 3). If it is not --deployment , then the gems will be in the "generic" folder instead of inside the project folder, and so can be shared across projects. Is this true? Another thing is, do we need to add all files under vendor

Mavericks, RBENV, Your Ruby version is 2.0.0, but your Gemfile specified 2.1.1

六眼飞鱼酱① 提交于 2019-12-29 03:33:34
问题 I've read and tried the suggestions in several, other, questions, like mine (all with accepted answers) as well as a few more hours of Google searching, but nothing worked. That leads me to think my issue is something corrupt with a piece of Ruby/RBENV ecosystem on my computer or maybe a dreaded PATH issue. I always have to run sudo to install any gems, which I've never had to do before, so that's puzzling too. Here are some outputs of files & commands I think are relevant. If you need more

Rubygems, Bundler and RVM confusion

人走茶凉 提交于 2019-12-29 02:21:21
问题 I read "Relationships between Rubygems, Bundler, and RVM" before asking it again. Well, there are many questions like this, but people who answered say they work with Rubygems, RVM and Bundler, and they have not explained how each of these work in isolation. I am really confused with how the three work in isolation when we are installing gems. Please do not tell me how you work, which will help me, but I won't learn what is happening when we play with them. My confusion can be broken down

MVC Bundling - Failed to load resource

血红的双手。 提交于 2019-12-28 13:22:11
问题 What could be causing this? I'm working with a DurandalJS project that builds and runs locally just fine. When I try to deploy to an Azure Website, the app publishes but fails in the browser with: Failed to load resource: the server responded with a status of 404 (Not Found) http://appsite.azurewebsites.net/Scripts/vendor.js?v=KJCisWMhJYMzhLi_jWQXizLj9vHeNGfm_1c-uTOfBOM1 I haven't customized any of the bundling. my bundle configs: public class BundleConfig { // For more information on

Jekyll -v error (Bundler::GemNotFound)

匆匆过客 提交于 2019-12-25 11:56:33
问题 When running jekyll -v I get the following: /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:88:in 'block in materialize': Could not find jekyll-feed-0.9.2 in any of the sources (Bundler::GemNotFound) from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'map!' from /Users/myusername/.rvm/gems/ruby-2.4.2/gems/bundler-1.16.0/lib/bundler/spec_set.rb:82:in 'materialize' from /Users/myusername/.rvm/gems/ruby-2.4.2/gems

How to install gems based on Gemfile.lock (without Gemfile)

独自空忆成欢 提交于 2019-12-25 08:27:11
问题 Usually, people will use bundle install to install gems. But it require Gemfile and Gemfile.lock(optional). My situation is a little different. I only have Gemfile.lock. So how can I install all these gems based on bundle command. I tried bundle install --deployment . But I got Could not locate Gemfile error. OK. I asked this question in bundler github issues. Their member gave me a good answer: https://github.com/bundler/bundler/issues/5293#issuecomment-269978731 For summary -- I CAN NOT DO

Bundle install error with “omniauth-oauth2”

三世轮回 提交于 2019-12-25 04:56:08
问题 Running bundle install I get the following error (full trace: http://pastebin.com/Vp4nHc2p): Bundler could not find compatible versions for gem "omniauth-oauth2": In Gemfile: omniauth-facebook (~> 1.2.0) ruby depends on omniauth-oauth2 (~> 1.0.0) ruby omniauth-github (~> 1.0.1) ruby depends on omniauth-oauth2 (1.1.1) To see my Gemfile: http://pastebin.com/vMcHDHa8 Any idea how to solve it? 回答1: Hi you probably need to install omniauth facebook and github versions which accept the same version

bundle cannot load such file bundler-1.17.1/exe/bundle

回眸只為那壹抹淺笑 提交于 2019-12-25 03:49:17
问题 I had a problem with FileUtils and I had to uninstall the gem. After did this, I did gem update --default and some gems have been updated. That fixed my problem with FileUtils but now, bundler is dead. If I try bundle info xxx I get this error: Traceback (most recent call last): 1: from /Users/robin/.gem/ruby/2.5.1/bin/bundle:23:in `<main>' /Users/robin/.gem/ruby/2.5.1/bin/bundle:23:in `load': cannot load such file -- /Users/robin/.rubies/ruby-2.5.1/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe