gem

How to reinstall Ruby and Gem on Mac OS X

大憨熊 提交于 2020-01-04 06:55:30
问题 I am trying very hard to uninstall Ruby and Gem from my computer so that I can do a complete reinstall of all, since I've clogged up a few errors and crossed wires. When I do sudo uninstall gem I get the following progress/message: Preparing Uninstall... Uninstall Began... Uninstall Failed... Reason: ErrorMissingBundle I'm NOT, I repeat NOT at this point looking to install rvm, since I just want to clean out my computer and get rid of the bugs before I install anything else. 回答1: You didn't

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

為{幸葍}努か 提交于 2020-01-04 05:25:13
问题 I'm trying to run jekyll locally on my laptop. I followed the guide of Github to do that, https://help.github.com/articles/using-jekyll-with-pages Unfortunaly I'm stuck when I have typed $bundle install I get the following error: Fetching gem metadata from https://rubygems.org/.........Failed to load /etc/gemrc due to permissions problem. Resolving dependencies... Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for main() in -lc... ***

Sharing models between Rails apps using gems

妖精的绣舞 提交于 2020-01-03 15:20:51
问题 So I'd like to share models between two Rails apps and do not like the submodules solution (burned me in the past). I'm thinking about using gems to solve this and have this basically working: Create a gem using jeweler (my_models) Create a rails app with something in the Gemfile like: gem 'my_models', :path => '../my_models' so you can avoid constantly packaging the gem, etc. Use shotgun to constantly reload all the classes (otherwise you can't really edit my_models files without restarting

bundle install error

依然范特西╮ 提交于 2020-01-03 03:30:09
问题 I'm trying to install this gem: https://github.com/jongilbraith/simple-private-messages with bundle install. And I'm getting the following error message: Updating git://github.com/professionalnerd/simple-private-messages.git Fetching source index for http://rubygems.org/ Could not find gem 'simple-private-messages (>= 0, runtime)' in git://github.com/professionalnerd/simple-private-messages.git (at master). Source does not contain any versions of 'simple-private-messages (>= 0, runtime)'

rails 1.9.3 `to_specs': Could not find railties Gem:load error

自闭症网瘾萝莉.ら 提交于 2020-01-03 02:56:09
问题 I am get below error. rails -v /opt/ruby/lib/ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find railties (>= 0) amongst [daemons-1.1.9, diff-lcs-1.1.3, expectations-2.0.0, faraday-0.8.9, faraday_middleware-0.8.8, ftpfxp-0.0.4, json-1.7.7, json-1.6.1, json-1.4.3, lumberg-1.1.1, metaclass-0.0.1, mime-types-1.24, mocha-0.12.7, multipart-post-1.2.0, mysql-2.8.1, rest-client-1.6.7, rspec-2.11.0, rspec-core-2.11.1, rspec-expectations-2.11.3, rspec-mocks-2.11.3, stomp-1.2.2, system

using devise WITHOUT the gem, can I simply copy the files?

杀马特。学长 韩版系。学妹 提交于 2020-01-02 18:17:22
问题 Could I simply copy the devise app and lib (and gem?) folders into my respective project folders and have them work just as if I was using the gem? I'd like to do this so that I can really see all the code, possibly do some customization, and also avoid some "cannot find" errors in my IDE. Is this a bad idea? If this is something that would work would I simply need to remove the gem and copy over the necessary files or would I need to "undo" things that the gem has done. Could this create

Missing Rails Gem

筅森魡賤 提交于 2020-01-02 17:16:26
问题 I know this question has been asked multiple times on this site, but after digging through other answers, I am still coming up blank on how to resolve this. I just pulled copy of a rails app from a production server, and I get the following error: Missing the Rails 2.3.4 gem. Please gem install -v=2.3.4 rails , update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed. rails

Rails error: `rescue in <top (required)>': uninitialized constant Bundler (NameError)

亡梦爱人 提交于 2020-01-02 12:02:33
问题 Earlier today I updated gems on my system with: gem update It updated few gems but after that I can't start my rails server, I get this error: /Users/gugguson/rubys/my_rails_app/config/boot.rb:9:in `rescue in <top (required)>': uninitialized constant Bundler (NameError) from /Users/gugguson/rubys/my_rails_app/config/boot.rb:5:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from script/rails:5:in `

Rails error: `rescue in <top (required)>': uninitialized constant Bundler (NameError)

不想你离开。 提交于 2020-01-02 12:00:14
问题 Earlier today I updated gems on my system with: gem update It updated few gems but after that I can't start my rails server, I get this error: /Users/gugguson/rubys/my_rails_app/config/boot.rb:9:in `rescue in <top (required)>': uninitialized constant Bundler (NameError) from /Users/gugguson/rubys/my_rails_app/config/boot.rb:5:in `<top (required)>' from <internal:lib/rubygems/custom_require>:29:in `require' from <internal:lib/rubygems/custom_require>:29:in `require' from script/rails:5:in `

Dashing does not run on Heroku

梦想的初衷 提交于 2020-01-02 09:38:21
问题 I'm trying to deploy Dashing to Heroku. Everthing runs perfectly on localhost. Deploying with the instructions provided by the github page It seems to be something to be with the backports gem. Below are the heroku log files 2014-11-26T21:12:22.141799+00:00 heroku[web.1]: State changed from crashed to starting 2014-11-26T21:12:32.932667+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 23294` 2014-11-26T21:12:40.618062+00:00 app[web.1]: