From jeremydeininger at gmail.com Tue Dec 2 13:22:11 2008 From: jeremydeininger at gmail.com (Jeremy d) Date: Tue, 2 Dec 2008 10:22:11 -0800 Subject: [Rubygems-developers] gem generate error undefined method empty? for Gem::Platform Message-ID: Hi guys, I'm involved in helping run a gem mirror for rightscale.com and we are upgrading the indexes to the new 1.2+ format. When using rubygems 1.3.x (tried 0 and 1 and even svn) I get the following fatal error when generating the index. This happens in various places (not the same place in each version). My main question is: do you know what version of gem rubyforge is using to generate their indexes or do you recommend a specific version to do so? Right now using rubygems version 1.2.0 to generate the indexes successfully completes with no errors and I'm leaning toward using that version. After looking at the indexer code and test, it seemed that using .to_s might be what is expected to cover this case, so I'm attaching the diff so you can see what I mean. ** snip example 1** WARNING: Skipping misnamed gem: /mnt/mirror/releases/200811260020/gems/zipruby-0.2.9-x86-mswin32.gem => zipruby-0.2.9-x86-mswin32 (zipruby-0.2.9-mswin32) ERROR: While executing gem ... (NoMethodError) undefined method `empty?' for # ** end snip ** ** snip example 2 ** Generated YAML master index: 187.241s Generating specs index ERROR: While executing gem ... (NoMethodError) undefined method `empty?' for # ** end snip ** -Jeremy -------------- next part -------------- A non-text attachment was scrubbed... Name: platform_empty_fix.diff Type: application/octet-stream Size: 915 bytes Desc: not available URL: From drbrain at segment7.net Tue Dec 2 16:51:59 2008 From: drbrain at segment7.net (Eric Hodel) Date: Tue, 2 Dec 2008 13:51:59 -0800 Subject: [Rubygems-developers] Gems on Github and Dependencies In-Reply-To: <5cd596d60811281731o266a1cfdob9a73afc3cf2c7d@mail.gmail.com> References: <5cd596d60811270815j5f9e9cc6t9b74da4624746cf1@mail.gmail.com> <2CB8E884-855D-460D-A0E1-F7F878339AF9@hasmanythrough.com> <5cd596d60811281731o266a1cfdob9a73afc3cf2c7d@mail.gmail.com> Message-ID: <97E89F34-0377-4901-974F-2803D7B195AD@segment7.net> On Nov 28, 2008, at 17:31 PM, Jim Freeze wrote: > So, it appears that I can add a gem to github and if that gem has > dependencies on gems at rubyforge, someone could install it with the > following: > > % gem source -a http://gems.github.com > % sudo gem install some-githubgem > > and rubygems will pull from github for some-githubgem and will pull > the other dependencies from rubyforge. > > Is that right? That's right. There's been a proposal to add alternate names to gems so a RubyForge gem can depend on a newer version on github, but nobody's implemented it yet. From drbrain at segment7.net Tue Dec 2 17:16:44 2008 From: drbrain at segment7.net (Eric Hodel) Date: Tue, 2 Dec 2008 14:16:44 -0800 Subject: [Rubygems-developers] gem generate error undefined method empty? for Gem::Platform In-Reply-To: References: Message-ID: <29484D7D-C516-4B0B-B7C9-22FD14B3A0CF@segment7.net> On Dec 2, 2008, at 10:22 AM, Jeremy d wrote: > Hi guys, > I'm involved in helping run a gem mirror for rightscale.com and we are > upgrading the indexes to the new 1.2+ format. When using rubygems > 1.3.x (tried 0 and 1 and even svn) I get the following fatal error > when generating the index. This happens in various places (not the > same place in each version). > > My main question is: do you know what version of gem rubyforge is > using to generate their indexes or do you recommend a specific version > to do so? Right now using rubygems version 1.2.0 to generate the > indexes successfully completes with no errors and I'm leaning toward > using that version. > > After looking at the indexer code and test, it seemed that using .to_s > might be what is expected to cover this case, so I'm attaching the > diff so you can see what I mean. > > ** snip example 1** > WARNING: Skipping misnamed gem: > /mnt/mirror/releases/200811260020/gems/zipruby-0.2.9-x86-mswin32.gem > => zipruby-0.2.9-x86-mswin32 (zipruby-0.2.9-mswin32) > ERROR: While executing gem ... (NoMethodError) > undefined method `empty?' for # > ** end snip ** Your diff fixes the symptom of the problem, but not the cause. Please run: ruby -Ilib bin/gem --debug generate_index -V --modern -d /path/to/ repository with this patch to trunk: -------------- next part -------------- A non-text attachment was scrubbed... Name: indexer.debug.diff Type: application/octet-stream Size: 548 bytes Desc: not available URL: -------------- next part -------------- From luislavena at gmail.com Tue Dec 2 17:50:21 2008 From: luislavena at gmail.com (Luis Lavena) Date: Tue, 2 Dec 2008 17:50:21 -0500 Subject: [Rubygems-developers] gem generate error undefined method empty? for Gem::Platform In-Reply-To: <29484D7D-C516-4B0B-B7C9-22FD14B3A0CF@segment7.net> References: <29484D7D-C516-4B0B-B7C9-22FD14B3A0CF@segment7.net> Message-ID: <71166b3b0812021450q32da96a9veb4b0e15ef5283ce@mail.gmail.com> On Tue, Dec 2, 2008 at 5:16 PM, Eric Hodel wrote: > On Dec 2, 2008, at 10:22 AM, Jeremy d wrote: > >> Hi guys, >> I'm involved in helping run a gem mirror for rightscale.com and we are >> upgrading the indexes to the new 1.2+ format. When using rubygems >> 1.3.x (tried 0 and 1 and even svn) I get the following fatal error >> when generating the index. This happens in various places (not the >> same place in each version). >> >> My main question is: do you know what version of gem rubyforge is >> using to generate their indexes or do you recommend a specific version >> to do so? Right now using rubygems version 1.2.0 to generate the >> indexes successfully completes with no errors and I'm leaning toward >> using that version. >> >> After looking at the indexer code and test, it seemed that using .to_s >> might be what is expected to cover this case, so I'm attaching the >> diff so you can see what I mean. >> >> ** snip example 1** >> WARNING: Skipping misnamed gem: >> /mnt/mirror/releases/200811260020/gems/zipruby-0.2.9-x86-mswin32.gem >> => zipruby-0.2.9-x86-mswin32 (zipruby-0.2.9-mswin32) >> ERROR: While executing gem ... (NoMethodError) >> undefined method `empty?' for # >> ** end snip ** > > Your diff fixes the symptom of the problem, but not the cause. Please run: > > ruby -Ilib bin/gem --debug generate_index -V --modern -d /path/to/repository > > with this patch to trunk: > I traced the problem to some gems (win32utils ones) released early with 0.9.5 version that contained a serialized Gem::Platform in the YAML instead of a string. http://rubyforge.org/tracker/?group_id=126&atid=575&func=detail&aid=22603 IMHO indexer should not fail but skip the offending gem like it does under other circumstances. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams From hongli at phusion.nl Thu Dec 4 08:53:04 2008 From: hongli at phusion.nl (Hongli Lai) Date: Thu, 04 Dec 2008 14:53:04 +0100 Subject: [Rubygems-developers] 'gem' method crashes if home folder doesn't exist Message-ID: <4937E0C0.2080209@phusion.nl> If the home folder of the user that the Ruby interpreter is running as does not exist, then the 'gem' method will crash with an Errno::ENOENT exception. I've posted details and a fix at: http://rubyforge.org/tracker/index.php?func=detail&aid=23105&group_id=126&atid=577 This fix is very important for Phusion Passenger. I'd like to ask the RubyGems developer to release a bugfix release as soon as possible. With kind regards, Hongli Lai -- Phusion | The Computer Science Company Web: http://www.phusion.nl/ E-mail: info at phusion.nl Chamber of commerce no: 08173483 (The Netherlands) From cfis at savagexi.com Mon Dec 8 02:20:51 2008 From: cfis at savagexi.com (Charlie Savage) Date: Mon, 08 Dec 2008 00:20:51 -0700 Subject: [Rubygems-developers] Fixing a bug that breaks gem installations on Windows Message-ID: <493CCAD3.5010707@savagexi.com> Hi everyone, A couple of weeks ago I reported a bug that breaks installation of gems on Windows under certain conditions: http://rubyforge.org/tracker/?func=detail&aid=23003&group_id=126&atid=577 The fix is an easy 1 line change that is documented in the report. The problem is that rake_builder.rb does not correctly quote paths, causing spaces in path names to break gem installations if you use a Rakefile (versus a extconf.rb for example) to "build and install" a gem on Windows. This is a problem because I've settled on the following pattern for producing windows gems: * Create an ext/mingw directory that contains build scripts for windows as well as the resulting binaries (*.so|*.dll) * Include ext/mingw/*.so|*.dll files into Windows specific gems * Run a Rafefile that copies /ext/mingw/*.so|*.dll to /lib This may or may not be the best way to create a Windows gems, but I've found it cleaner than other various alternatives I've tried (and I would be interested in hearing how other people do it). Anyway, this affects the following gems which I help maintain: * ruby-prof * libxml-ruby * proj4rb * ruby-pg Any change the fix can be applied? Thanks, Charlie -- Charlie Savage http://cfis.savagexi.com -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From drbrain at segment7.net Tue Dec 9 16:46:15 2008 From: drbrain at segment7.net (Eric Hodel) Date: Tue, 9 Dec 2008 13:46:15 -0800 Subject: [Rubygems-developers] Fixing a bug that breaks gem installations on Windows In-Reply-To: <493CCAD3.5010707@savagexi.com> References: <493CCAD3.5010707@savagexi.com> Message-ID: <50449C61-CC80-4E3D-B455-DE097ECD4E54@segment7.net> On Dec 7, 2008, at 23:20 PM, Charlie Savage wrote: > Hi everyone, > > A couple of weeks ago I reported a bug that breaks installation of > gems on Windows under certain conditions: > > http://rubyforge.org/tracker/?func=detail&aid=23003&group_id=126&atid=577 > > The fix is an easy 1 line change that is documented in the report. > > The problem is that rake_builder.rb does not correctly quote paths, > causing spaces in path names to break gem installations if you use a > Rakefile (versus a extconf.rb for example) to "build and install" a > gem on Windows. > > Any change the fix can be applied? It'll be reviewed and applied for the next release of RubyGems. I'm targeting January at the moment since there are lots of changes on trunk and a few more planned. From cfis at savagexi.com Tue Dec 9 17:26:32 2008 From: cfis at savagexi.com (Charlie Savage) Date: Tue, 09 Dec 2008 15:26:32 -0700 Subject: [Rubygems-developers] Fixing a bug that breaks gem installations on Windows In-Reply-To: <50449C61-CC80-4E3D-B455-DE097ECD4E54@segment7.net> References: <493CCAD3.5010707@savagexi.com> <50449C61-CC80-4E3D-B455-DE097ECD4E54@segment7.net> Message-ID: <493EF098.1050909@savagexi.com> Hi Eric, >> Any change the fix can be applied? > > It'll be reviewed and applied for the next release of RubyGems. I'm > targeting January at the moment since there are lots of changes on trunk > and a few more planned. Great, that sounds good. Let me know if you need any more or help with it. Charlie -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3237 bytes Desc: S/MIME Cryptographic Signature URL: From thewoolleyman at gmail.com Fri Dec 12 14:00:30 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 12 Dec 2008 12:00:30 -0700 Subject: [Rubygems-developers] status of zlib buferror on windows? Message-ID: This issue still exists: http://rubyforge.org/tracker/?func=detail&group_id=126&aid=22108&atid=575 Note, it does NOT occur with RubyGems 1.0.1... It prevents installation and remote listing of gems in many cases. -- Chad From luislavena at gmail.com Fri Dec 12 18:19:59 2008 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 12 Dec 2008 18:19:59 -0500 Subject: [Rubygems-developers] status of zlib buferror on windows? In-Reply-To: References: Message-ID: <71166b3b0812121519y572a12d9qc04a480eb5abfbe2@mail.gmail.com> On Fri, Dec 12, 2008 at 2:00 PM, Chad Woolley wrote: > This issue still exists: > > http://rubyforge.org/tracker/?func=detail&group_id=126&aid=22108&atid=575 > > Note, it does NOT occur with RubyGems 1.0.1... > > It prevents installation and remote listing of gems in many cases. Can you provide more information about the environment? gem env on the version is happening. This most of the times is a problem of the ruby installation and not RubyGems itself. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From thewoolleyman at gmail.com Fri Dec 12 18:35:50 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 12 Dec 2008 16:35:50 -0700 Subject: [Rubygems-developers] status of zlib buferror on windows? In-Reply-To: <71166b3b0812121519y572a12d9qc04a480eb5abfbe2@mail.gmail.com> References: <71166b3b0812121519y572a12d9qc04a480eb5abfbe2@mail.gmail.com> Message-ID: Ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] On Fri, Dec 12, 2008 at 4:19 PM, Luis Lavena wrote: > On Fri, Dec 12, 2008 at 2:00 PM, Chad Woolley wrote: >> This issue still exists: >> >> http://rubyforge.org/tracker/?func=detail&group_id=126&aid=22108&atid=575 >> >> Note, it does NOT occur with RubyGems 1.0.1... >> >> It prevents installation and remote listing of gems in many cases. > > Can you provide more information about the environment? > > gem env on the version is happening. > > This most of the times is a problem of the ruby installation and not > RubyGems itself. > > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup?ry > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers From luislavena at gmail.com Fri Dec 12 18:45:25 2008 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 12 Dec 2008 18:45:25 -0500 Subject: [Rubygems-developers] status of zlib buferror on windows? In-Reply-To: References: <71166b3b0812121519y572a12d9qc04a480eb5abfbe2@mail.gmail.com> Message-ID: <71166b3b0812121545hf6edf12rc8108bcbdaa21cf4@mail.gmail.com> On Fri, Dec 12, 2008 at 6:35 PM, Chad Woolley wrote: > Ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] > Hmn, I cannot state for that version. At least 186-26 (patchlevel 111) of One-Click Ruby Installer? -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From thewoolleyman at gmail.com Fri Dec 12 19:54:41 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 12 Dec 2008 17:54:41 -0700 Subject: [Rubygems-developers] status of zlib buferror on windows? In-Reply-To: <71166b3b0812121545hf6edf12rc8108bcbdaa21cf4@mail.gmail.com> References: <71166b3b0812121519y572a12d9qc04a480eb5abfbe2@mail.gmail.com> <71166b3b0812121545hf6edf12rc8108bcbdaa21cf4@mail.gmail.com> Message-ID: On Fri, Dec 12, 2008 at 4:45 PM, Luis Lavena wrote: > Hmn, I cannot state for that version. > > At least 186-26 (patchlevel 111) of One-Click Ruby Installer? Thanks Luis! Yes, the latest one click installer (v27) fixed it, and it includes rubygems 1.3.1. I think there are several tickets releated to this - they can probably be closed out. I can do it, but is there a specific category/group in the rubyforge tracker that I should use for Windows-specific bugs? -- Chad From thewoolleyman at gmail.com Fri Dec 12 20:12:54 2008 From: thewoolleyman at gmail.com (Chad Woolley) Date: Fri, 12 Dec 2008 18:12:54 -0700 Subject: [Rubygems-developers] rubygems passing ARGV to extension builders breaks usage via API In-Reply-To: <1F7BEA82-7506-47F4-A046-179BFFF93301@segment7.net> References: <1F7BEA82-7506-47F4-A046-179BFFF93301@segment7.net> Message-ID: On Thu, Sep 18, 2008 at 4:45 PM, Eric Hodel wrote: > I like this proposal. Gem::Command could handle this, and have an accessor > for something like "extra argv". I don't want to try to put this in for the > next release though. Bug opened: http://rubyforge.org/tracker/index.php?func=detail&aid=23210&group_id=126&atid=575 From m.franzl at aon.at Mon Dec 15 10:56:39 2008 From: m.franzl at aon.at (Michael Franzl) Date: Mon, 15 Dec 2008 16:56:39 +0100 (CET) Subject: [Rubygems-developers] Rubygems 1.3.1 overwrites /usr/bin/ruby Message-ID: <11932076.7657.1229356599177.JavaMail.root@WARSBL214.highway.telekom.at> Hi, I just successfully compiled and installed Ruby 1.9.1-preview1 from source. Afterwards I installed Rubygems-1.3.1 via `ruby setup.rb`. I found out that Rubygems overwrote the /usr/bin/ruby binary. This is a very strange behaviour that I didn't encounter with the combination of Ruby-1.8.7 and Rubygems-1.3.1 Any hints appreciated... Michael .--- Die aonKombi zum Sensationspreis! Breitband-Internet + Mobiltelefonie + Festnetz um insgesamt nur EUR 19,90* pro Monat. Und jetzt sogar mit Gratis-Herstellung!* Infos und Aktionsbedigungen hier: http://www.telekom.at/aonKombi From m.franzl at aon.at Mon Dec 15 16:04:57 2008 From: m.franzl at aon.at (Michael Franzl) Date: Mon, 15 Dec 2008 22:04:57 +0100 Subject: [Rubygems-developers] Rubygems 1.3.1 overwrites /usr/bin/ruby In-Reply-To: <11932076.7657.1229356599177.JavaMail.root@WARSBL214.highway.telekom.at> References: <11932076.7657.1229356599177.JavaMail.root@WARSBL214.highway.telekom.at> Message-ID: <4946C679.1030103@aon.at> > I found out that Rubygems overwrote the /usr/bin/ruby binary. Reply to myself: Ruby-1.9 includes rubygems already, so no need to install it. Sorry for the noise. Michael From drbrain at segment7.net Tue Dec 16 01:34:00 2008 From: drbrain at segment7.net (Eric Hodel) Date: Mon, 15 Dec 2008 22:34:00 -0800 Subject: [Rubygems-developers] Rubygems 1.3.1 overwrites /usr/bin/ruby In-Reply-To: <11932076.7657.1229356599177.JavaMail.root@WARSBL214.highway.telekom.at> References: <11932076.7657.1229356599177.JavaMail.root@WARSBL214.highway.telekom.at> Message-ID: <46134701-F903-4DA5-8958-10C364364E65@segment7.net> On Dec 15, 2008, at 07:56 AM, Michael Franzl wrote: > Hi, > > I just successfully compiled and installed Ruby 1.9.1-preview1 from > source. Afterwards I installed Rubygems-1.3.1 via `ruby setup.rb`. I > found out that Rubygems overwrote the /usr/bin/ruby binary. > > This is a very strange behaviour that I didn't encounter with the > combination of Ruby-1.8.7 and Rubygems-1.3.1 > > Any hints appreciated... If you can reproduce, I'd like to see the output of setup.rb. I can't reproduce this 1.3.1 and ruby from SVN trunk. From anmolanand at gmail.com Mon Dec 29 10:24:46 2008 From: anmolanand at gmail.com (Anmol Anand) Date: Mon, 29 Dec 2008 20:54:46 +0530 Subject: [Rubygems-developers] help rmagick error on gem install Message-ID: I Had sent this mail to "rubygems-developers at rubyforge.org" without using 'help' in subject and I apologise for my mistake . Please pardon me, below I describe my problem. I have been trying to install Rmagick but have been unsuccessful.People on Rmagick forum told me that the error is a ruby gem error, Please help!!! When I typed the command "sudo gem install rmagick", I got the following error:: anmol at anmol-laptop:~$ sudo gem install rmagick /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong number of arguments (1 for 0) (ArgumentError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in `installed_spec_directories' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in `from_installed_gems' from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in `init_gemspecs' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in `initialize' ... 6 levels... from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in `require' from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 from /usr/bin/gem:10:in `require' from /usr/bin/gem:10 Please help!!! Thanks in advance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From luislavena at gmail.com Mon Dec 29 11:39:21 2008 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 29 Dec 2008 14:39:21 -0200 Subject: [Rubygems-developers] help rmagick error on gem install In-Reply-To: References: Message-ID: <71166b3b0812290839q5e28c9efxdfafa6309bbce128@mail.gmail.com> On Mon, Dec 29, 2008 at 1:24 PM, Anmol Anand wrote: > I Had sent this mail to "rubygems-developers at rubyforge.org" without using > 'help' in subject and I apologise for my mistake . Please pardon me, below I > describe my problem. > > I have been trying to install Rmagick but have been unsuccessful.People on > Rmagick forum told me that the error is a ruby gem error, Please help!!! > > When I typed the command "sudo gem install rmagick", I got the following > error:: > > > anmol at anmol-laptop:~$ sudo gem install rmagick > > /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong > > number of arguments (1 for 0) (ArgumentError) > from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' > > from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' > > from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in > `installed_spec_directories' > > from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in > `from_installed_gems' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' > > from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in > > `init_gemspecs' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in > `initialize' > ... 6 levels... > from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in `require' > > from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 > > from /usr/bin/gem:10:in `require' > from /usr/bin/gem:10 > > Please help!!! > Thanks in advance. Can you provide more information about your environment? $ gem environment Please also run the same command with debug information: sudo gem install rmagick --debug -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From luislavena at gmail.com Mon Dec 29 11:39:58 2008 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 29 Dec 2008 14:39:58 -0200 Subject: [Rubygems-developers] help rmagick error on gem install In-Reply-To: <71166b3b0812290839q5e28c9efxdfafa6309bbce128@mail.gmail.com> References: <71166b3b0812290839q5e28c9efxdfafa6309bbce128@mail.gmail.com> Message-ID: <71166b3b0812290839r5546ef89o11c51d6c9fce7a46@mail.gmail.com> On Mon, Dec 29, 2008 at 2:39 PM, Luis Lavena wrote: > On Mon, Dec 29, 2008 at 1:24 PM, Anmol Anand wrote: >> I Had sent this mail to "rubygems-developers at rubyforge.org" without using >> 'help' in subject and I apologise for my mistake . Please pardon me, below I >> describe my problem. >> >> I have been trying to install Rmagick but have been unsuccessful.People on >> Rmagick forum told me that the error is a ruby gem error, Please help!!! >> >> When I typed the command "sudo gem install rmagick", I got the following >> error:: >> >> >> anmol at anmol-laptop:~$ sudo gem install rmagick >> >> /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong >> >> number of arguments (1 for 0) (ArgumentError) >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' >> >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' >> >> from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in >> `installed_spec_directories' >> >> from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in >> `from_installed_gems' >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' >> >> from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in >> >> `init_gemspecs' >> from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in >> `initialize' >> ... 6 levels... >> from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in `require' >> >> from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 >> >> from /usr/bin/gem:10:in `require' >> from /usr/bin/gem:10 >> >> Please help!!! >> Thanks in advance. > > Can you provide more information about your environment? > > $ gem environment > > Please also run the same command with debug information: > > sudo gem install rmagick --debug > Also note that for install RMagick you need several headers and libraries installed in your system. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From anmolanand at gmail.com Tue Dec 30 22:50:02 2008 From: anmolanand at gmail.com (anmol) Date: Tue, 30 Dec 2008 19:50:02 -0800 (PST) Subject: [Rubygems-developers] help rmagick error on gem install In-Reply-To: <71166b3b0812290839r5546ef89o11c51d6c9fce7a46@mail.gmail.com> References: <71166b3b0812290839q5e28c9efxdfafa6309bbce128@mail.gmail.com> <71166b3b0812290839r5546ef89o11c51d6c9fce7a46@mail.gmail.com> Message-ID: <572624f7-26c6-48e4-acc1-40783069f1d8@g3g2000pre.googlegroups.com> Thanks for repling :) I have installed ImageMagick libraries but I am not able to install new gems now. It gives an error. Today when I tried Rails it gave me the message below anmol at anmol-laptop:~/skid1/skid$ ruby script/server Missing the Rails 2.1.0 gem. Please `gem install -v=2.1.0 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. and when I tried the 'gem' command, the output is as follows: anmol at anmol-laptop:~/skid1/skid$ gem install -v=2.1.0 rails /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong number of arguments (1 for 0) (ArgumentError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in `installed_spec_directories' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in `from_installed_gems' from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in `init_gemspecs' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in `initialize' ... 6 levels... from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in `require' from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 from /usr/bin/gem:10:in `require' from /usr/bin/gem:10 when I tried 'gem environment' and 'sudo gem install rmagick --debug' it gives the same error. anmol at anmol-laptop:~$ gem environment /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong number of arguments (1 for 0) (ArgumentError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in `installed_spec_directories' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in `from_installed_gems' from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in `init_gemspecs' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in `initialize' ... 6 levels... from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in `require' from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 from /usr/bin/gem:10:in `require' from /usr/bin/gem:10 Please Help. On Dec 29, 9:39?pm, "Luis Lavena" wrote: > On Mon, Dec 29, 2008 at 2:39 PM, Luis Lavena wrote: > > On Mon, Dec 29, 2008 at 1:24 PM, Anmol Anand wrote: > >> I Had sent this mail to "rubygems-develop... at rubyforge.org" without using > >> 'help' in subject and I apologise for my mistake . Please pardon me, below I > >> describe my problem. > > >> I have been trying to install Rmagick but have been unsuccessful.People on > >> Rmagick forum told me that the error is a ruby gem error, Please help!!! > > >> When I typed the command "sudo gem install rmagick", I got the following > >> error:: > > >> anmol at anmol-laptop:~$ sudo gem install rmagick > > >> /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong > > >> number of arguments (1 for 0) (ArgumentError) > >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' > > >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' > >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' > > >> from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in > >> `installed_spec_directories' > > >> from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in > >> `from_installed_gems' > >> from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' > > >> from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in > > >> `init_gemspecs' > >> from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in > >> `initialize' > >> ... 6 levels... > >> from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in `require' > > >> from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 > > >> from /usr/bin/gem:10:in `require' > >> from /usr/bin/gem:10 > > >> Please help!!! > >> Thanks in advance. > > > Can you provide more information about your environment? > > > $ gem environment > > > Please also run the same command with debug information: > > > sudo gem install rmagick --debug > > Also note that for install RMagick you need several headers and > libraries installed in your system. > > -- > Luis Lavena > AREA 17 > - > Perfection in design is achieved not when there is nothing more to add, > but rather when there is nothing more to take away. > Antoine de Saint-Exup?ry > _______________________________________________ > Rubygems-developers mailing list > Rubygems-develop... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rubygems-developers From luislavena at gmail.com Tue Dec 30 22:59:30 2008 From: luislavena at gmail.com (Luis Lavena) Date: Wed, 31 Dec 2008 01:59:30 -0200 Subject: [Rubygems-developers] help rmagick error on gem install In-Reply-To: <572624f7-26c6-48e4-acc1-40783069f1d8@g3g2000pre.googlegroups.com> References: <71166b3b0812290839q5e28c9efxdfafa6309bbce128@mail.gmail.com> <71166b3b0812290839r5546ef89o11c51d6c9fce7a46@mail.gmail.com> <572624f7-26c6-48e4-acc1-40783069f1d8@g3g2000pre.googlegroups.com> Message-ID: <71166b3b0812301959o4f9e7c54k135706cc81a2b8f9@mail.gmail.com> On Wed, Dec 31, 2008 at 1:50 AM, anmol wrote: > Thanks for repling :) > > I have installed ImageMagick libraries but I am not able to install > new gems now. It gives an error. > > Today when I tried Rails it gave me the message below > > anmol at anmol-laptop:~/skid1/skid$ ruby script/server > Missing the Rails 2.1.0 gem. Please `gem install -v=2.1.0 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. > > and when I tried the 'gem' command, the output is as follows: > > anmol at anmol-laptop:~/skid1/skid$ gem install -v=2.1.0 rails > /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong > number of arguments (1 for 0) (ArgumentError) > from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' > from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in > `installed_spec_directories' > from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in > `from_installed_gems' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in > `init_gemspecs' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in > `initialize' > ... 6 levels... > from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in > `require' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 > from /usr/bin/gem:10:in `require' > from /usr/bin/gem:10 > > > when I tried 'gem environment' and 'sudo gem install rmagick --debug' > it gives the same error. > > anmol at anmol-laptop:~$ gem environment > /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong > number of arguments (1 for 0) (ArgumentError) > from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' > from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in > `installed_spec_directories' > from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in > `from_installed_gems' > from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in > `init_gemspecs' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in > `initialize' > ... 6 levels... > from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in > `require' > from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 > from /usr/bin/gem:10:in `require' > from /usr/bin/gem:10 > > Please Help. > Woot, looks like you broke your environment... bad ImageMagick? Anyhow, please manually install rubygems on top of that: http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/ Try the manual install steps (in the first section of the post). (skip the "set RUBYOPT" since is mainly for Windows users, all the other steps apply). Then let's see what gem env and others give you. -- Luis Lavena AREA 17 - Perfection in design is achieved not when there is nothing more to add, but rather when there is nothing more to take away. Antoine de Saint-Exup?ry From drbrain at segment7.net Tue Dec 30 23:20:32 2008 From: drbrain at segment7.net (Eric Hodel) Date: Tue, 30 Dec 2008 20:20:32 -0800 Subject: [Rubygems-developers] help rmagick error on gem install In-Reply-To: <572624f7-26c6-48e4-acc1-40783069f1d8@g3g2000pre.googlegroups.com> References: <71166b3b0812290839q5e28c9efxdfafa6309bbce128@mail.gmail.com> <71166b3b0812290839r5546ef89o11c51d6c9fce7a46@mail.gmail.com> <572624f7-26c6-48e4-acc1-40783069f1d8@g3g2000pre.googlegroups.com> Message-ID: On Dec 30, 2008, at 19:50 PM, anmol wrote: > and when I tried the 'gem' command, the output is as follows: > > anmol at anmol-laptop:~/skid1/skid$ gem install -v=2.1.0 rails > /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong > number of arguments (1 for 0) (ArgumentError) In RubyGems 1.3.1 this line is: $ cat -n REL_1_3_1/lib/rubygems.rb | grep 274 274 @configuration ||= Gem::ConfigFile.new [] Likely this is the version you have (partially) installed. Gem::ConfigFile.new has taken one argument all the way back to 1.3.1. I suspect you have a corrupted or edited install. Please try removing RubyGems from /usr/local/lib/site_ruby/1.8 and reinstalling from the tarball. You may need to remove RubyGems versions installed via package as well. From anmolanand at gmail.com Wed Dec 31 08:09:49 2008 From: anmolanand at gmail.com (anmol) Date: Wed, 31 Dec 2008 05:09:49 -0800 (PST) Subject: [Rubygems-developers] help rmagick error on gem install In-Reply-To: References: <71166b3b0812290839q5e28c9efxdfafa6309bbce128@mail.gmail.com> <71166b3b0812290839r5546ef89o11c51d6c9fce7a46@mail.gmail.com> <572624f7-26c6-48e4-acc1-40783069f1d8@g3g2000pre.googlegroups.com> Message-ID: Thanks Luis Lavena and Eric Hodel for giving me prompt replies. I tried solutions given by both you.I went to http://blog.mmediasys.com/2008/08/04/problems-with-rubygems-find-here-some-handy-tips/ and followed the steps there and after complete installation I did : anmol at anmol-laptop:~/Desktop/rubygems-1.3.1$ gem -v /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong number of arguments (1 for 0) (ArgumentError) from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `new' from /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `configuration' from /usr/local/lib/site_ruby/1.8/rubygems.rb:520:in `path' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:66:in `installed_spec_directories' from /usr/local/lib/site_ruby/1.8/rubygems/source_index.rb:56:in `from_installed_gems' from /usr/local/lib/site_ruby/1.8/rubygems.rb:736:in `source_index' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:86:in `init_gemspecs' from /usr/local/lib/site_ruby/1.8/rubygems/gem_path_searcher.rb:21:in `initialize' ... 6 levels... from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8:in `require' from /usr/local/lib/site_ruby/1.8/rubygems/gem_runner.rb:8 from /usr/bin/gem:10:in `require' from /usr/bin/gem:10 after this I removed rubygems from /usr/local/lib/site_ruby/1.8 and then reinstalled with help of tarball but the same thing happened when I did 'gem -v'. I am using Ubuntu 8.04. Please suggest some solution. Thanks!!! On Dec 31, 9:20?am, Eric Hodel wrote: > On Dec 30, 2008, at 19:50 PM, anmol wrote: > > > and when I tried the 'gem' command, the output is as follows: > > > anmol at anmol-laptop:~/skid1/skid$ gem install -v=2.1.0 rails > > /usr/local/lib/site_ruby/1.8/rubygems.rb:274:in `initialize': wrong ? > > number of arguments (1 for 0) (ArgumentError) > > In RubyGems 1.3.1 this line is: > > $ cat -n REL_1_3_1/lib/rubygems.rb | grep 274 > ? ? 274 ? ? @configuration ||= Gem::ConfigFile.new [] > > Likely this is the version you have (partially) installed. > > Gem::ConfigFile.new has taken one argument all the way back to 1.3.1. ? > I suspect you have a corrupted or edited install. ?Please try removing ? > RubyGems from /usr/local/lib/site_ruby/1.8 and reinstalling from the ? > tarball. ?You may need to remove RubyGems versions installed via ? > package as well. > _______________________________________________ > Rubygems-developers mailing list > Rubygems-develop... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rubygems-developers From Daniel.Berger at qwest.com Wed Dec 31 11:20:06 2008 From: Daniel.Berger at qwest.com (Daniel Berger) Date: Wed, 31 Dec 2008 09:20:06 -0700 Subject: [Rubygems-developers] Flaying rubygems Message-ID: <495B9BB6.3020503@qwest.com> Hi, Just for kicks I ran Ryan's flay against the rubygems files. Here were the results for anyone interested. I haven't investigated further to see how many of these warrant refactoring. Matches found in :defs (mass = 78) rubygems.rb:195 rubygems.rb:433 rubygems.rb:445 Matches found in :if (mass = 34) rubygems.rb:136 rubygems.rb:223 Matches found in :iter (mass = 119) install_update_options.rb:36 install_update_options.rb:48 install_update_options.rb:54 install_update_options.rb:65 install_update_options.rb:82 install_update_options.rb:89 install_update_options.rb:96 Matches found in :defn (mass = 104) config_file.rb:251 source_info_cache_entry.rb:49 Matches found in :if (mass = 98) security.rb:696 security.rb:708 Matches found in :defn (mass = 93) platform.rb:113 source_index.rb:383 version.rb:176 Matches found in :defn (mass = 54) user_interaction.rb:208 user_interaction.rb:217 user_interaction.rb:226 Matches found in :resbody (mass = 52) source_index.rb:514 source_index.rb:525 Matches found in :iter (mass = 50) specification.rb:765 specification.rb:774 Matches found in :block (mass = 50) indexer.rb:234 indexer.rb:250 Matches found in :iter (mass = 48) local_remote_options.rb:37 local_remote_options.rb:42 local_remote_options.rb:47 Matches found in :if (mass = 44) server.rb:390 server.rb:593 Matches found in :if (mass = 44) server.rb:365 server.rb:614 Matches found in :defn (mass = 44) doc_manager.rb:97 doc_manager.rb:113 Matches found in :block (mass = 42) server.rb:383 server.rb:586 Matches found in :defn (mass = 42) local_remote_options.rb:122 local_remote_options.rb:129 Matches found in :if (mass = 40) server.rb:397 server.rb:600 Matches found in :if (mass = 40) security.rb:455 security.rb:473 Matches found in :defs (mass = 40) source_info_cache.rb:52 source_info_cache.rb:60 Matches found in :iter (mass = 40) install_update_options.rb:24 install_update_options.rb:30 Matches found in :if (mass = 40) command_manager.rb:78 doc_manager.rb:170 Matches found in :defn (mass = 38) user_interaction.rb:284 user_interaction.rb:320 Matches found in :iter (mass = 38) specification.rb:1216 specification.rb:1224 Matches found in :or (mass = 36) platform.rb:127 platform.rb:133 Matches found in :lasgn (mass = 34) server.rb:475 server.rb:515 Matches found in :scope (mass = 32) command.rb:310 doc_manager.rb:30 Matches found in :if (mass = 32) test_utilities.rb:38 test_utilities.rb:61 Matches found in :if (mass = 32) source_info_cache.rb:288 source_info_cache.rb:308 Matches found in :iter (mass = 32) install_update_options.rb:42 install_update_options.rb:59 Matches found in :while (mass = 32) version.rb:167 version.rb:168 Matches found in :iter (mass = 32) install_update_options.rb:102 install_update_options.rb:108 Matches found in :if (mass = 32) server.rb:360 server.rb:621 Matches found in :when (mass = 32) specification.rb:1196 specification.rb:1198 Regards, Dan