rubygems

How do I find gems that depend on a given gem?

梦想的初衷 提交于 2019-12-29 05:50:06
问题 Is it possible to search for all gems that rely on a certain rubygem? For example, I'd like to ask for all gems in gemcutter that rely on the test-unit gem. Background : I'm looking to see how other gems handle the issue mentioned here. 回答1: I had the same problem, and found that some of the other suggestions for this question are now defunct. I came up with a 2-step solution that worked for me. The following unix-y script will tell you all the gems your gems depend on: gem list | egrep '^.*[

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

I get this error when installing a gem: “ERROR: While executing gem … (Zlib::GzipFile::Error)” [duplicate]

纵然是瞬间 提交于 2019-12-29 01:56:09
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: ERROR: While executing gem … (Zlib::GzipFile::Error) not in gzip format When installing a gem on my system, I get the following error: gem install blackbook --version ">= 1.0.7" --source http://github.com/tamoyal/blackbook/tree/master ERROR: While executing gem ... (Zlib::GzipFile::Error) not in gzip format Any ideas as to why this is happening? I built the gem so maybe it is something wrong with my gem build?

Failing installing pg gem, “mkmf.rb can't find header files for ruby” (Mac OSX 10.6.5)

时光毁灭记忆、已成空白 提交于 2019-12-28 12:00:56
问题 I just upgraded to Rails 3 and had a bit of a mess with MacPorts, gems and databases to sort out. I threw out all the gems and installed them fresh. Everything seems to be OK except for the requirement of the pg gem. After creating a new Rails 3 project, prepared for PostgreSQL, the server would not start, complaining about the missing pg gem. Doing bundle install , it chugged along for a while and, of course, fails on the pg gem. Installing pg (0.10.0) with native extensions /Library/Ruby

Error Installing Jekyll - Native Extension Build

六月ゝ 毕业季﹏ 提交于 2019-12-28 11:41:07
问题 I'm having some trouble installing jekyll. Can't quite figure out how to patch the missing link. I think it's an update to Ruby, but RVM is having trouble installing alternate versions of ruby as well. Heres the full post: $ sudo gem install jekyll ERROR: Error installing jekyll: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework

Uninstalling rails and gems, getting error "cannot uninstall, check 'gem list -d …'

妖精的绣舞 提交于 2019-12-28 10:12:23
问题 I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here. The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because

Uninstalling rails and gems, getting error "cannot uninstall, check 'gem list -d …'

☆樱花仙子☆ 提交于 2019-12-28 10:12:07
问题 I'm going to start with the usual noob line, "I'm new to rails". Oh, and I'm running Mac OSX 10.6.4 I've been following a bunch of guides to get set up, specifically these two here and here. The guides are great, the reason I'm using the second one is because of RVM and the reason I'm using the first is for MYSQL. Anyway, when I started, I wasn't following the directions completely and so after I installed RVM, for some reason I installed rails with sudo gem install rails -v 2.3.8 because

foreman only shows line with “started with pid #” and nothing else

徘徊边缘 提交于 2019-12-28 08:09:09
问题 When I run foreman I get the following: > foreman start 16:47:56 web.1 | started with pid 27122 Only if I stop it (via ctrl-c) it shows me what is missing: ^CSIGINT received 16:49:26 system | sending SIGTERM to all processes 16:49:26 web.1 | => Booting Thin 16:49:26 web.1 | => Rails 3.0.0 application starting in development on http://0.0.0.0:5000 16:49:26 web.1 | => Call with -d to detach 16:49:26 web.1 | => Ctrl-C to shutdown server 16:49:26 web.1 | >> Thin web server (v1.3.1 codename Triple

Using rubyzip error - no such file to load — zip/zip

流过昼夜 提交于 2019-12-28 06:27:27
问题 I know there is another thread on this subject but I still face this problem even after using all solutions. Is there any other way to generate zip files? Can i use Ubuntu system commands? I did gem install rubyzip I have require 'rubygems' require 'zip/zip' in my controller But i still get the same error - no such file to load -- zip/zip I tried with both ruby 1.8.7 and ruby 1.9.2 with rails 3.0.5 on Ubuntu Could you please help me? Thanks. 回答1: I fixed this problem by specifying gem version

Installing Jekyll on Ubuntu 14.04

北慕城南 提交于 2019-12-28 05:47:05
问题 I've been having some issues installing Jekyll on Ubuntu. Here are some of the versions I have: trevor~$ ruby -v ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux] trevor~$ gem -v 2.5.1 trevor~$ rvm -v rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] However, when I try to install Jekyll, I get these errors: trevor~$ gem install jekyll Building native extensions. This could take a while... ERROR: Error installing jekyll