gem

How to make libtool point to user installed library?

为君一笑 提交于 2019-12-10 18:09:28
问题 I am trying to install a rubygem which keeps on trying to read a library which is not available. grep: /usr/lib64/libgdbm.la: No such file or directory /bin/sed: can't read /usr/lib64/libgdbm.la: No such file or directory libtool: link: /usr/lib64/libgdbm.la' is not a valid libtool archive In order to work around this, I installed my own libgdbm and provided the path to the libgdbm in the makefile LDFLAGs but to no avail. Any help is much appreciated. 回答1: This rubygem seems to do dirty stuff

how to install production group in the Gemfile

China☆狼群 提交于 2019-12-10 17:50:23
问题 my gem file consists : group :production do gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2' gem 'puma', '2.11.1' end when i give the bundle install command ,at the end i get the line "Your bundle is complete! Gems in the group production were not installed. Use `bundle show [gemname]` to see where a bundled gem is installed." How to install production group.? 回答1: in your .bundle/config file you probably have this line: BUNDLE_WITHOUT: production Just delete this line, and the bundle install

Invalid spec cache file

前提是你 提交于 2019-12-10 17:15:20
问题 I have ruby 2.0.0p247 [x64-mingw32] with Gem 2.2.2 installed on Windows 8. I have a persistent problem gem that is making it virtually unusable. Whenever I try to install a new gem, I invariably get: ERROR: While executing gem ... Invalid spec cache file in C:/Users/... In the past, I've been able to run gem update or gem update --system and that would clear up the problem for one, single gem install . Subsequent install would fail with the same error. Now even gem update fails with that

unable to update gems on mac osx - Gem::RemoteFetcher::FetchError

一笑奈何 提交于 2019-12-10 16:35:09
问题 Jon-MacBook-Pro:rubygems-1.3.7 jon$ sudo gem install rails Password: ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) SocketError: getaddrinfo: nodename nor servname provided, or not known (http://rubygems.org/gems/activesupport-2.3.8.gem) 回答1: rubygems.org is down right now. Try again later. 来源: https://stackoverflow.com/questions/2995125/unable-to-update-gems-on-mac-osx-gemremotefetcherfetcherror

Why isn't bundle install allowing for the pg gem to fully install?

戏子无情 提交于 2019-12-10 15:56:34
问题 I've installed the pg gem as shown, but... Building native extensions. This could take a while... Successfully installed pg-0.11.0 ERROR: Could not find a valid gem '—' (>= 0) in any repository ERROR: Could not find a valid gem '–with-pg-config=/usr/local/pg/bin/pg_config' (>= 0) in any repository 1 gem installed Installing ri documentation for pg-0.11.0... Installing RDoc documentation for pg-0.11.0... Something strange happens when I bundle install and it won't completely install the pg gem

Ruby and Rails gem install issues

北城以北 提交于 2019-12-10 15:37:58
问题 Im learning ruby on rails for a module and class and following a tutorial. When I try to install a gem like this: gem simple-navigation (or gem "simple-navigation") I get this error ERROR while executing gem ... (Gem:CommandLineError) unknown command simple-navigation This happens with all gems. gem install simple-navigation works, however doesnt install when i run bundle install. I have to manually add it to the gemfile to get it to work. Anyone know why this is happening? Using Ruby 2.00

Is it right to avoid using third-party gems?

吃可爱长大的小学妹 提交于 2019-12-10 15:22:32
问题 I am using Ruby on Rails 3.2.2. and I would like to know if the following thought (born from my previous question) is correct: I tend not to use third-party gems (at least when it is possible and reasonable) because they might be abandoned at any time. Also, if the Ruby on Rails framework changes, I might have to wait for those gems to be updated before updating my application to the latest RoR version. 回答1: In a perfect world where you're immortal, have infinite time, are the world's best

rake release hangs when releasing a gem

血红的双手。 提交于 2019-12-10 15:10:34
问题 I'm trying to release my first gem to Ruby Gems. The gem is working great locally. I'm releasing it using: $rake release Which gives me this in the console: example_gem 0.0.3 built to pkg/example_gem-0.0.1.gem Tagged v0.0.1 Pushed git commits and tags Then the process hangs. I waited 20 mins, then cancelled. When I tried to release again I got: rake aborted! This tag has already been committed to the repo. So I assumed the gem had been successfully submitted, however 16 hours later, the gem

cannot load such file — script/../config/boot (LoadError) after OSX Mavericks

一曲冷凌霜 提交于 2019-12-10 14:53:40
问题 I was doing development on a ruby on a rails application (v2.3) yesterday and decided to update my iMac to OSX Mavericks. Now, every time I try to run my application locally, I get the following error. Does anyone know whats causing this? Run like this: script/server -e development Error: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- script/../config/boot (LoadError) from /System/Library

How do you uninstall RVM gem?

陌路散爱 提交于 2019-12-10 14:19:45
问题 Strange... but this is what I got : $ gem list | grep rvm >> rvm (1.11.3.3) $ gem uninstall rvm >> INFO: gem "rvm" is not installed How can that be possible? The root of this problem probably stems from me downloading the latest RVM and finding that it does not work with the latest version of POW. Thus I had to implode RVM and reinstall an older version. Since then when I do a cap deploy , I get the classic : `<top (required)>': RVM - Capistrano integration was extracted to a separate gem,