From luislavena at gmail.com Mon Feb 2 05:34:46 2009 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 2 Feb 2009 08:34:46 -0200 Subject: [Rubygems-developers] Gem location and site arch directory In-Reply-To: <71166b3b0901270906v6deb2e39q64847d5a1c2be912@mail.gmail.com> References: <71166b3b0901270906v6deb2e39q64847d5a1c2be912@mail.gmail.com> Message-ID: <71166b3b0902020234u5bcde596ofdc0e5a06d334b03@mail.gmail.com> On Tue, Jan 27, 2009 at 3:06 PM, Luis Lavena wrote: > On Tue, Jan 27, 2009 at 1:50 PM, Berger, Daniel wrote: >> Hi, >> >> What do people think about RF Bug #14943. >> >> http://rubyforge.org/tracker/index.php?func=detail&aid=14943&group_id=126&atid=575 >> >> If I read it correctly, C extensions should be installed as "lib/i386-msvcr80/foo.so" instead of "lib/foo.so" (on Windows/VC8, for example). >> > > I believe it should be Gem::Platform.new(RUBY_PLATFORM).to_s or > Gem::Platform.local to match the gem filename signature, platform and > folder structure (is x86 instead of i386). > >> It seems reasonable to me, but I wanted to see what other people thought, and if there were any pitfalls to watch out for (beyond needing to modify the search path). >> > > I just commented on the Ticket, I kind of like it. > > This will workaround the issues I'm having with rake-compiler for copy > of binary .so file before packaging a new gem. > > Right now I don't see a problem in the long run with the proposed > solution (or a backward issue neither). > > This should be affecting the $LOAD_PATH during Gem::activate, correct? > (I'm not up to speed with RubyGems internals). > >> Regards, >> >> Dan >> > > Thank you Dan for bumping this. Daniel, Been thinking on that and playing (hacking) with this. I found a problem with this. As we said, we put the extension inside lib/architecture/ext.so, in that way rubygems adds the path for the specific gem. Now while this works for gems, will not work for you in development: lib/my_lib.rb: require 'my_ext' lib/x86-mingw32/my_ext.so The 'require' over there will not work for me doing "ruby -Ilib", so that render my specs or tests useless, since I need to add all the platform machinery in. Thoughts? This iwll be the first drawback. -- 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 Daniel.Berger at qwest.com Mon Feb 2 09:48:13 2009 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Mon, 2 Feb 2009 08:48:13 -0600 Subject: [Rubygems-developers] Gem location and site arch directory In-Reply-To: <71166b3b0902020234u5bcde596ofdc0e5a06d334b03@mail.gmail.com> References: <71166b3b0901270906v6deb2e39q64847d5a1c2be912@mail.gmail.com> <71166b3b0902020234u5bcde596ofdc0e5a06d334b03@mail.gmail.com> Message-ID: > -----Original Message----- > From: rubygems-developers-bounces at rubyforge.org > [mailto:rubygems-developers-bounces at rubyforge.org] On Behalf > Of Luis Lavena > Sent: Monday, February 02, 2009 3:35 AM > To: rubygems-developers at rubyforge.org > Subject: Re: [Rubygems-developers] Gem location and site arch > directory > > On Tue, Jan 27, 2009 at 3:06 PM, Luis Lavena > wrote: > > On Tue, Jan 27, 2009 at 1:50 PM, Berger, Daniel > wrote: > >> Hi, > >> > >> What do people think about RF Bug #14943. > >> > >> > http://rubyforge.org/tracker/index.php?func=detail&aid=14943&group_id > >> =126&atid=575 > >> > >> If I read it correctly, C extensions should be installed > as "lib/i386-msvcr80/foo.so" instead of "lib/foo.so" (on > Windows/VC8, for example). > >> > > > > I believe it should be Gem::Platform.new(RUBY_PLATFORM).to_s or > > Gem::Platform.local to match the gem filename signature, > platform and > > folder structure (is x86 instead of i386). > > > >> It seems reasonable to me, but I wanted to see what other > people thought, and if there were any pitfalls to watch out > for (beyond needing to modify the search path). > >> > > > > I just commented on the Ticket, I kind of like it. > > > > This will workaround the issues I'm having with > rake-compiler for copy > > of binary .so file before packaging a new gem. > > > > Right now I don't see a problem in the long run with the proposed > > solution (or a backward issue neither). > > > > This should be affecting the $LOAD_PATH during > Gem::activate, correct? > > (I'm not up to speed with RubyGems internals). > > > >> Regards, > >> > >> Dan > >> > > > > Thank you Dan for bumping this. > > Daniel, > > Been thinking on that and playing (hacking) with this. > > I found a problem with this. > > As we said, we put the extension inside > lib/architecture/ext.so, in that way rubygems adds the path > for the specific gem. > > Now while this works for gems, will not work for you in development: > > lib/my_lib.rb: > require 'my_ext' > > lib/x86-mingw32/my_ext.so > > The 'require' over there will not work for me doing "ruby > -Ilib", so that render my specs or tests useless, since I > need to add all the platform machinery in. > > Thoughts? This iwll be the first drawback. I guess I don't see the problem in practice. The 'lib/x86-mingw32/my_ext.so' would not exist except and until it was installed as a gem. How people setup their tests is up to them and seems, to me, to be orthogonal to this issue. Regards, Dan From luislavena at gmail.com Mon Feb 2 10:21:11 2009 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 2 Feb 2009 13:21:11 -0200 Subject: [Rubygems-developers] Gem location and site arch directory In-Reply-To: References: <71166b3b0901270906v6deb2e39q64847d5a1c2be912@mail.gmail.com> <71166b3b0902020234u5bcde596ofdc0e5a06d334b03@mail.gmail.com> Message-ID: <71166b3b0902020721s4a1acbc3ibd5d86694028e80d@mail.gmail.com> On Mon, Feb 2, 2009 at 12:48 PM, Berger, Daniel wrote: > > >> -----Original Message----- >> From: rubygems-developers-bounces at rubyforge.org >> [mailto:rubygems-developers-bounces at rubyforge.org] On Behalf >> Of Luis Lavena >> Sent: Monday, February 02, 2009 3:35 AM >> To: rubygems-developers at rubyforge.org >> Subject: Re: [Rubygems-developers] Gem location and site arch >> directory >> >> On Tue, Jan 27, 2009 at 3:06 PM, Luis Lavena >> wrote: >> > On Tue, Jan 27, 2009 at 1:50 PM, Berger, Daniel >> wrote: >> >> Hi, >> >> >> >> What do people think about RF Bug #14943. >> >> >> >> >> http://rubyforge.org/tracker/index.php?func=detail&aid=14943&group_id >> >> =126&atid=575 >> >> >> >> If I read it correctly, C extensions should be installed >> as "lib/i386-msvcr80/foo.so" instead of "lib/foo.so" (on >> Windows/VC8, for example). >> >> >> > >> > I believe it should be Gem::Platform.new(RUBY_PLATFORM).to_s or >> > Gem::Platform.local to match the gem filename signature, >> platform and >> > folder structure (is x86 instead of i386). >> > >> >> It seems reasonable to me, but I wanted to see what other >> people thought, and if there were any pitfalls to watch out >> for (beyond needing to modify the search path). >> >> >> > >> > I just commented on the Ticket, I kind of like it. >> > >> > This will workaround the issues I'm having with >> rake-compiler for copy >> > of binary .so file before packaging a new gem. >> > >> > Right now I don't see a problem in the long run with the proposed >> > solution (or a backward issue neither). >> > >> > This should be affecting the $LOAD_PATH during >> Gem::activate, correct? >> > (I'm not up to speed with RubyGems internals). >> > >> >> Regards, >> >> >> >> Dan >> >> >> > >> > Thank you Dan for bumping this. >> >> Daniel, >> >> Been thinking on that and playing (hacking) with this. >> >> I found a problem with this. >> >> As we said, we put the extension inside >> lib/architecture/ext.so, in that way rubygems adds the path >> for the specific gem. >> >> Now while this works for gems, will not work for you in development: >> >> lib/my_lib.rb: >> require 'my_ext' >> >> lib/x86-mingw32/my_ext.so >> >> The 'require' over there will not work for me doing "ruby >> -Ilib", so that render my specs or tests useless, since I >> need to add all the platform machinery in. >> >> Thoughts? This iwll be the first drawback. > > I guess I don't see the problem in practice. The 'lib/x86-mingw32/my_ext.so' would not exist except and until it was installed as a gem. How people setup their tests is up to them and seems, to me, to be orthogonal to this issue. > Well, if I try to run the test of a installed gem that moved the extension to this directory then will be broken (gem test my-gem) -- 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 Daniel.Berger at qwest.com Mon Feb 2 11:14:00 2009 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Mon, 2 Feb 2009 10:14:00 -0600 Subject: [Rubygems-developers] Gem location and site arch directory In-Reply-To: <71166b3b0902020721s4a1acbc3ibd5d86694028e80d@mail.gmail.com> References: <71166b3b0901270906v6deb2e39q64847d5a1c2be912@mail.gmail.com><71 166b3b0902020234u5bcde596ofdc0e5a06d334b03@mail.gmail.com> <71166b3b0902020721s4a1acbc3ibd5d86694028e80d@mail.gmail.com> Message-ID: > -----Original Message----- > From: rubygems-developers-bounces at rubyforge.org > [mailto:rubygems-developers-bounces at rubyforge.org] On Behalf > Of Luis Lavena > Sent: Monday, February 02, 2009 8:21 AM > To: rubygems-developers at rubyforge.org > Subject: Re: [Rubygems-developers] Gem location and site arch > directory > >> > >> Thoughts? This iwll be the first drawback. > > > > I guess I don't see the problem in practice. The > 'lib/x86-mingw32/my_ext.so' would not exist except and until > it was installed as a gem. How people setup their tests is up > to them and seems, to me, to be orthogonal to this issue. > > > > Well, if I try to run the test of a installed gem that moved > the extension to this directory then will be broken (gem test my-gem) Isn't the plan to modify $LOAD_PATH so that it doesn't break? Regards, Dan From luislavena at gmail.com Mon Feb 2 12:46:11 2009 From: luislavena at gmail.com (Luis Lavena) Date: Mon, 2 Feb 2009 15:46:11 -0200 Subject: [Rubygems-developers] Gem location and site arch directory In-Reply-To: References: <71166b3b0901270906v6deb2e39q64847d5a1c2be912@mail.gmail.com> <71166b3b0902020721s4a1acbc3ibd5d86694028e80d@mail.gmail.com> Message-ID: <71166b3b0902020946v26b9e583i6fa9cc97953b5cad@mail.gmail.com> On Mon, Feb 2, 2009 at 2:14 PM, Berger, Daniel wrote: >> -----Original Message----- >> From: rubygems-developers-bounces at rubyforge.org >> [mailto:rubygems-developers-bounces at rubyforge.org] On Behalf >> Of Luis Lavena >> Sent: Monday, February 02, 2009 8:21 AM >> To: rubygems-developers at rubyforge.org >> Subject: Re: [Rubygems-developers] Gem location and site arch >> directory > > > >> >> >> >> Thoughts? This iwll be the first drawback. >> > >> > I guess I don't see the problem in practice. The >> 'lib/x86-mingw32/my_ext.so' would not exist except and until >> it was installed as a gem. How people setup their tests is up >> to them and seems, to me, to be orthogonal to this issue. >> > >> >> Well, if I try to run the test of a installed gem that moved >> the extension to this directory then will be broken (gem test my-gem) > > Isn't the plan to modify $LOAD_PATH so that it doesn't break? > Is gem test altering the $LOAD_PATH and adding libdir? Or is just executing the tests? Anyway, I'm just being extremist. We didn't heard back from Eric Hodel. Eric: what are your thoughts on this one? -- 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 stephen.bannasch at deanbrook.org Wed Feb 4 23:46:09 2009 From: stephen.bannasch at deanbrook.org (Stephen Bannasch) Date: Wed, 4 Feb 2009 23:46:09 -0500 Subject: [Rubygems-developers] what archive format does a gem package use? Message-ID: I thought gems were tarred and gzipped but I just built the haml gem tried to unpack it manually like this: tar tzf pkg/haml-2.1.0.gem tar responds with: 'not in gzip format' From kevin.clark at gmail.com Thu Feb 5 00:44:28 2009 From: kevin.clark at gmail.com (Kevin Clark) Date: Wed, 4 Feb 2009 21:44:28 -0800 Subject: [Rubygems-developers] what archive format does a gem package use? In-Reply-To: References: Message-ID: They're tarred (and contain a tar.gz and a .gz): sisyphus:~/haml kev$ tar -xvf haml-2.0.7.gem data.tar.gz tar: data.tar.gz: implausibly old time stamp 1969-12-31 16:00:00 metadata.gz tar: metadata.gz: implausibly old time stamp 1969-12-31 16:00:00 sisyphus:~/haml kev$ ls data.tar.gz haml-2.0.7.gem metadata.gz On Wed, Feb 4, 2009 at 8:46 PM, Stephen Bannasch wrote: > I thought gems were tarred and gzipped but I just built the haml gem tried > to unpack it manually like this: > > tar tzf pkg/haml-2.1.0.gem > > tar responds with: 'not in gzip format' > > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers > -- Kevin Clark http://glu.ttono.us From djberg96 at gmail.com Thu Feb 5 19:40:58 2009 From: djberg96 at gmail.com (Daniel Berger) Date: Thu, 05 Feb 2009 17:40:58 -0700 Subject: [Rubygems-developers] Question on platform, x64 In-Reply-To: <71166b3b0901271101ta8bf350sa07909649d10a747@mail.gmail.com> References: <71166b3b0901270958w4e35ba85qd97af1d4f0628ebc@mail.gmail.com> <71166b3b0901271101ta8bf350sa07909649d10a747@mail.gmail.com> Message-ID: <498B871A.60508@gmail.com> Hi, Luis Lavena wrote: > On Tue, Jan 27, 2009 at 4:42 PM, Berger, Daniel wrote: >> Hi, > There is no way to conditionally tell rubygems that "under this > platform, please build this extension". > >> If there isn't any way to specify that with the Gem::Specification, I would argue that we need some way to do so. Or am I the only person in the world hitting this particular issue? >> > > You're not alone, this imposes a problem for other gems too. > > As example, there is a json gem. The json gem take advantage of a C > extension to parse json output faster, but it also works without it > with a slower pure-ruby version. > > They faced this same problem, and created two gems: json, which forces > the compilation of the extension and json_pure, which doesn't bundle > the extension. > >> Thanks, >> >> Dan >> >> PS - Yes, I know I've brought this up before, so sorry if I'm beating the issue to death. If you want to see what I'm dealing with, take a look at the sys-proctable source and tell me how _you_ would bundle the gems. > > Beating these issues until death is something good, you've really > exposed another quirk of RubyGems as package manager that needs to be > handled to ensure better cross platform integration. Hm, I noticed the Java gems come out as "universal-java-xxx". That gives me an idea. How about this - we add Gem::Specification#universal. It could be false by default, but if set to true it would result in a gem tagged as universal. So, instead of "mygem-1.0.0-x86-linux.gem" it would be "mygem-1.0.0-universal-linux.gem". Folks on a Linux platform who do "gem install my-gem" would get the architecture specific gem if there is one. If there isn't one, it would fall back to the "universal" gem for that platform. If there isn't a universal gem, then fall back to the standard gem. Does that seem reasonable? Regards, Dan From greg.hauptmann.ruby at gmail.com Fri Feb 6 16:08:03 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 07:08:03 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) Message-ID: Hi, I think I've upset my ruby/gems on my Redhat Linux box (I did an apt-get install ruby-libs). So I've installed again Ruby from source (did get some warnings - see previous post), and then tried to install RubyGem however I get the following error. Any ideas? Anything else I can post to help? [root at home rubygems-1.3.1]# ruby ./setup.rb /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant YAML::Syck::DefaultLoader (NameError) from ./lib/rubygems/config_file.rb:7:in `require' from ./lib/rubygems/config_file.rb:7 from ./lib/rubygems.rb:882:in `require' from ./lib/rubygems.rb:882 from ./setup.rb:22:in `require' from ./setup.rb:22 Some addition config info: [root at home ~]# [root at home ~]# ruby -v ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] [root at home ~]# which ruby /usr/local/bin/ruby [root at home ~]# which gem /usr/bin/gem [root at home ~]# gem -v /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant YAML::Syck::DefaultLoader (NameError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:7 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:8 from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from /usr/bin/gem:9 thanks -- Greg http://blog.gregnet.org/ From greg.hauptmann.ruby at gmail.com Fri Feb 6 16:11:50 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 07:11:50 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: Message-ID: PS. I noted I have a few matches for 'ruby'. Not sure if this is significant re my problem # find / -name ruby /usr/local/bin/ruby /usr/local/lib/ruby /usr/bin/ruby /usr/lib/swig1.3/ruby /usr/lib/ruby /root/source/redmine-0.7/vendor/plugins/coderay-0.7.6.227/lib/coderay/scanners/ruby # which ruby /usr/local/bin/ruby 2009/2/7 Greg Hauptmann : > Hi, > > I think I've upset my ruby/gems on my Redhat Linux box (I did an > apt-get install ruby-libs). So I've installed again Ruby from source > (did get some warnings - see previous post), and then tried to install > RubyGem however I get the following error. Any ideas? Anything else > I can post to help? > > [root at home rubygems-1.3.1]# ruby ./setup.rb > /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant > YAML::Syck::DefaultLoader (NameError) > from ./lib/rubygems/config_file.rb:7:in `require' > from ./lib/rubygems/config_file.rb:7 > from ./lib/rubygems.rb:882:in `require' > from ./lib/rubygems.rb:882 > from ./setup.rb:22:in `require' > from ./setup.rb:22 > > Some addition config info: > [root at home ~]# > [root at home ~]# ruby -v > ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-linux] > [root at home ~]# which ruby > /usr/local/bin/ruby > [root at home ~]# which gem > /usr/bin/gem > [root at home ~]# gem -v > /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant > YAML::Syck::DefaultLoader (NameError) > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/config_file.rb:7 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:8 > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require' > from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in > `require' > from /usr/bin/gem:9 > > > thanks > > > -- > Greg > http://blog.gregnet.org/ > -- Greg http://blog.gregnet.org/ From luislavena at gmail.com Fri Feb 6 16:27:29 2009 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 6 Feb 2009 19:27:29 -0200 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: Message-ID: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> On Fri, Feb 6, 2009 at 7:08 PM, Greg Hauptmann wrote: > Hi, > > I think I've upset my ruby/gems on my Redhat Linux box (I did an > apt-get install ruby-libs). So I've installed again Ruby from source > (did get some warnings - see previous post), and then tried to install > RubyGem however I get the following error. Any ideas? Anything else > I can post to help? > > [root at home rubygems-1.3.1]# ruby ./setup.rb > /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant > YAML::Syck::DefaultLoader (NameError) > from ./lib/rubygems/config_file.rb:7:in `require' > from ./lib/rubygems/config_file.rb:7 > from ./lib/rubygems.rb:882:in `require' > from ./lib/rubygems.rb:882 > from ./setup.rb:22:in `require' > from ./setup.rb:22 > Looks like Syck (the YAML parser bundled in Ruby) didn't compile properly. Since you built from source, did you checked if syck extension got compiled? search for syck.so HTH, -- 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 greg.hauptmann.ruby at gmail.com Fri Feb 6 16:40:47 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 07:40:47 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> Message-ID: I did see these warnings in the Ruby make - could this be the issue? root at home ruby-1.8.7-p72]# make gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c array.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c bignum.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c class.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c compar.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c dir.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c dln.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c enum.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c enumerator.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c error.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c eval.c eval.c: In function `rb_eval_string_wrap': eval.c:1731: warning: assignment discards qualifiers from pointer target type eval.c: In function `rb_eval_cmd': eval.c:1872: warning: assignment discards qualifiers from pointer target type eval.c: In function `call_trace_func': eval.c:2723: warning: assignment discards qualifiers from pointer target type eval.c: In function `rb_raise_jump': eval.c:4752: warning: assignment discards qualifiers from pointer target type eval.c: In function `method_missing': eval.c:5707: warning: assignment discards qualifiers from pointer target type eval.c: In function `rb_call0': eval.c:5870: warning: assignment discards qualifiers from pointer target type eval.c: In function `rb_f_eval': eval.c:6663: warning: assignment discards qualifiers from pointer target type eval.c: In function `exec_under': eval.c:6687: warning: assignment discards qualifiers from pointer target type eval.c: In function `rb_load': eval.c:7003: warning: assignment discards qualifiers from pointer target type eval.c: In function `call_end_proc': eval.c:8016: warning: assignment discards qualifiers from pointer target type eval.c: In function `rb_f_END': eval.c:8029: warning: assignment discards qualifiers from pointer target type eval.c: In function `mproc': eval.c:9805: warning: assignment discards qualifiers from pointer target type gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c file.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c gc.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c hash.c gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c inits.c 2009/2/7 Luis Lavena : > On Fri, Feb 6, 2009 at 7:08 PM, Greg Hauptmann > wrote: >> Hi, >> >> I think I've upset my ruby/gems on my Redhat Linux box (I did an >> apt-get install ruby-libs). So I've installed again Ruby from source >> (did get some warnings - see previous post), and then tried to install >> RubyGem however I get the following error. Any ideas? Anything else >> I can post to help? >> >> [root at home rubygems-1.3.1]# ruby ./setup.rb >> /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant >> YAML::Syck::DefaultLoader (NameError) >> from ./lib/rubygems/config_file.rb:7:in `require' >> from ./lib/rubygems/config_file.rb:7 >> from ./lib/rubygems.rb:882:in `require' >> from ./lib/rubygems.rb:882 >> from ./setup.rb:22:in `require' >> from ./setup.rb:22 >> > > Looks like Syck (the YAML parser bundled in Ruby) didn't compile properly. > > Since you built from source, did you checked if syck extension got > compiled? search for syck.so > > HTH, > -- > 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 > -- Greg http://blog.gregnet.org/ From greg.hauptmann.ruby at gmail.com Fri Feb 6 16:49:58 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 07:49:58 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> Message-ID: PS. I did find the syck.so...what does this imply? [root at home local]# find /usr/local -name syck.so /usr/local/lib/ruby/1.8/i686-linux/syck.so [root at home local]# ls -l /usr/local/lib/ruby/1.8/i686-linux/syck.so -rwxr-xr-x 1 root root 271368 Feb 7 06:18 /usr/local/lib/ruby/1.8/i686-linux/syck.so 2009/2/7 Greg Hauptmann : > I did see these warnings in the Ruby make - could this be the issue? > > root at home ruby-1.8.7-p72]# make > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c array.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c bignum.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c class.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c compar.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c dir.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c dln.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c enum.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c enumerator.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c error.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c eval.c > eval.c: In function `rb_eval_string_wrap': > eval.c:1731: warning: assignment discards qualifiers from pointer target type > eval.c: In function `rb_eval_cmd': > eval.c:1872: warning: assignment discards qualifiers from pointer target type > eval.c: In function `call_trace_func': > eval.c:2723: warning: assignment discards qualifiers from pointer target type > eval.c: In function `rb_raise_jump': > eval.c:4752: warning: assignment discards qualifiers from pointer target type > eval.c: In function `method_missing': > eval.c:5707: warning: assignment discards qualifiers from pointer target type > eval.c: In function `rb_call0': > eval.c:5870: warning: assignment discards qualifiers from pointer target type > eval.c: In function `rb_f_eval': > eval.c:6663: warning: assignment discards qualifiers from pointer target type > eval.c: In function `exec_under': > eval.c:6687: warning: assignment discards qualifiers from pointer target type > eval.c: In function `rb_load': > eval.c:7003: warning: assignment discards qualifiers from pointer target type > eval.c: In function `call_end_proc': > eval.c:8016: warning: assignment discards qualifiers from pointer target type > eval.c: In function `rb_f_END': > eval.c:8029: warning: assignment discards qualifiers from pointer target type > eval.c: In function `mproc': > eval.c:9805: warning: assignment discards qualifiers from pointer target type > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c file.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c gc.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c hash.c > gcc -g -O2 -DRUBY_EXPORT -D_GNU_SOURCE=1 -I. -I. -c inits.c > > > 2009/2/7 Luis Lavena : >> On Fri, Feb 6, 2009 at 7:08 PM, Greg Hauptmann >> wrote: >>> Hi, >>> >>> I think I've upset my ruby/gems on my Redhat Linux box (I did an >>> apt-get install ruby-libs). So I've installed again Ruby from source >>> (did get some warnings - see previous post), and then tried to install >>> RubyGem however I get the following error. Any ideas? Anything else >>> I can post to help? >>> >>> [root at home rubygems-1.3.1]# ruby ./setup.rb >>> /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant >>> YAML::Syck::DefaultLoader (NameError) >>> from ./lib/rubygems/config_file.rb:7:in `require' >>> from ./lib/rubygems/config_file.rb:7 >>> from ./lib/rubygems.rb:882:in `require' >>> from ./lib/rubygems.rb:882 >>> from ./setup.rb:22:in `require' >>> from ./setup.rb:22 >>> >> >> Looks like Syck (the YAML parser bundled in Ruby) didn't compile properly. >> >> Since you built from source, did you checked if syck extension got >> compiled? search for syck.so >> >> HTH, >> -- >> 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 >> > > > > -- > Greg > http://blog.gregnet.org/ > -- Greg http://blog.gregnet.org/ From luislavena at gmail.com Fri Feb 6 17:45:16 2009 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 6 Feb 2009 20:45:16 -0200 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> Message-ID: <71166b3b0902061445l582bd10dyfde3426026de4353@mail.gmail.com> On Fri, Feb 6, 2009 at 7:40 PM, Greg Hauptmann wrote: > I did see these warnings in the Ruby make - could this be the issue? > No, those are part of miniruby, later in the make process you should see "compiling syck". That's the one that maybe didn't complete properly. Can you indicate which version of GCC you have? maybe this is something that can be related to Ruby itself and not RubyGems. Please try in the console (irb) require 'yaml' a = [1,2,3] puts a.to_yaml The output should be: --- - 1 - 2 - 3 -- 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 greg.hauptmann.ruby at gmail.com Fri Feb 6 18:43:41 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 09:43:41 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: <71166b3b0902061445l582bd10dyfde3426026de4353@mail.gmail.com> References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061445l582bd10dyfde3426026de4353@mail.gmail.com> Message-ID: thanks, gcc version is as follows - could this be the issue?: [root at home ruby-1.8.7-p72]# gcc -v Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 3.4.6 20060404 (Red Hat 3.4.6-9) [root at home ruby-1.8.7-p72]# The irb test seems good: [root at home local]# irb irb(main):001:0> require 'yaml' => true irb(main):002:0> a = [1,2,3] => [1, 2, 3] irb(main):003:0> puts a.to_yaml --- - 1 - 2 - 3 => nil irb(main):004:0> It seemed to compile syck ok: compiling syck make[1]: Entering directory `/root/temp/ruby-1.8.7-p72/ext/syck' gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c gram.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c syck.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c token.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c emitter.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c bytecode.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c handler.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c node.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c yaml2byte.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c rubyext.c gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c implicit.c gcc -shared -o ../../.ext/i686-linux/syck.so gram.o syck.o token.o emitter.o bytecode.o handler.o node.o yaml2byte.o rubyext.o implicit.o -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm -lc make[1]: Leaving directory `/root/temp/ruby-1.8.7-p72/ext/syck' compiling syslog Thanks again 2009/2/7 Luis Lavena : > On Fri, Feb 6, 2009 at 7:40 PM, Greg Hauptmann > wrote: >> I did see these warnings in the Ruby make - could this be the issue? >> > > No, those are part of miniruby, later in the make process you should > see "compiling syck". > > That's the one that maybe didn't complete properly. > > Can you indicate which version of GCC you have? maybe this is > something that can be related to Ruby itself and not RubyGems. > > Please try in the console (irb) > > require 'yaml' > a = [1,2,3] > puts a.to_yaml > > The output should be: > --- > - 1 > - 2 > - 3 > > -- > 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 > -- Greg http://blog.gregnet.org/ From greg.hauptmann.ruby at gmail.com Fri Feb 6 18:46:58 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 09:46:58 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061445l582bd10dyfde3426026de4353@mail.gmail.com> Message-ID: PS. Luis - I did do (probably silly for not understanding what I was doing) an "apt-get install ruby-libs". I'm not sure if this is significant. I guess I didn't really remember how Ruby was installed on my box and tried to do an update.... 2009/2/7 Greg Hauptmann : > thanks, > > gcc version is as follows - could this be the issue?: > [root at home ruby-1.8.7-p72]# gcc -v > Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs > Configured with: ../configure --prefix=/usr --mandir=/usr/share/man > --infodir=/usr/share/info --enable-shared --enable-threads=posix > --disable-checking --with-system-zlib --enable-__cxa_atexit > --disable-libunwind-exceptions --enable-java-awt=gtk > --host=i386-redhat-linux > Thread model: posix > gcc version 3.4.6 20060404 (Red Hat 3.4.6-9) > [root at home ruby-1.8.7-p72]# > > > > The irb test seems good: > [root at home local]# irb > irb(main):001:0> require 'yaml' > => true > irb(main):002:0> a = [1,2,3] > => [1, 2, 3] > irb(main):003:0> puts a.to_yaml > --- > - 1 > - 2 > - 3 > => nil > irb(main):004:0> > > > It seemed to compile syck ok: > compiling syck > make[1]: Entering directory `/root/temp/ruby-1.8.7-p72/ext/syck' > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c gram.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c syck.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c token.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c emitter.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c bytecode.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c handler.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c node.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c yaml2byte.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c rubyext.c > gcc -I. -I../.. -I../../. -I../.././ext/syck -DHAVE_ST_H > -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -c implicit.c > gcc -shared -o ../../.ext/i686-linux/syck.so gram.o syck.o token.o > emitter.o bytecode.o handler.o node.o yaml2byte.o rubyext.o implicit.o > -L. -L../.. -L. -rdynamic -Wl,-export-dynamic -ldl -lcrypt -lm > -lc > make[1]: Leaving directory `/root/temp/ruby-1.8.7-p72/ext/syck' > compiling syslog > > > Thanks again > > > > > 2009/2/7 Luis Lavena : >> On Fri, Feb 6, 2009 at 7:40 PM, Greg Hauptmann >> wrote: >>> I did see these warnings in the Ruby make - could this be the issue? >>> >> >> No, those are part of miniruby, later in the make process you should >> see "compiling syck". >> >> That's the one that maybe didn't complete properly. >> >> Can you indicate which version of GCC you have? maybe this is >> something that can be related to Ruby itself and not RubyGems. >> >> Please try in the console (irb) >> >> require 'yaml' >> a = [1,2,3] >> puts a.to_yaml >> >> The output should be: >> --- >> - 1 >> - 2 >> - 3 >> >> -- >> 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 >> > > > > -- > Greg > http://blog.gregnet.org/ > -- Greg http://blog.gregnet.org/ From luislavena at gmail.com Fri Feb 6 18:59:16 2009 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 6 Feb 2009 21:59:16 -0200 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061445l582bd10dyfde3426026de4353@mail.gmail.com> Message-ID: <71166b3b0902061559y638c2001gefb6fb31f16e2ae9@mail.gmail.com> On Fri, Feb 6, 2009 at 9:46 PM, Greg Hauptmann wrote: > PS. Luis - I did do (probably silly for not understanding what I was > doing) an "apt-get install ruby-libs". I'm not sure if this is > significant. I guess I didn't really remember how Ruby was installed > on my box and tried to do an update.... > sudo apt-get build-dep ruby1.8 That should install all the required build dependencies to compile ruby from source. HTH, -- 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 Fri Feb 6 19:38:54 2009 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 6 Feb 2009 22:38:54 -0200 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> Message-ID: <71166b3b0902061638y12b0ae88t25ba0c6c392cd09e@mail.gmail.com> On Fri, Feb 6, 2009 at 7:49 PM, Greg Hauptmann wrote: > PS. I did find the syck.so...what does this imply? > > [root at home local]# find /usr/local -name syck.so > /usr/local/lib/ruby/1.8/i686-linux/syck.so > > [root at home local]# ls -l /usr/local/lib/ruby/1.8/i686-linux/syck.so > -rwxr-xr-x 1 root root 271368 Feb 7 06:18 > /usr/local/lib/ruby/1.8/i686-linux/syck.so > Did you tried the simple yaml test? -- 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 greg.hauptmann.ruby at gmail.com Fri Feb 6 20:57:16 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 11:57:16 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: <71166b3b0902061638y12b0ae88t25ba0c6c392cd09e@mail.gmail.com> References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061638y12b0ae88t25ba0c6c392cd09e@mail.gmail.com> Message-ID: yes, this worked ok On 07/02/2009, Luis Lavena wrote: > On Fri, Feb 6, 2009 at 7:49 PM, Greg Hauptmann > wrote: >> PS. I did find the syck.so...what does this imply? >> >> [root at home local]# find /usr/local -name syck.so >> /usr/local/lib/ruby/1.8/i686-linux/syck.so >> >> [root at home local]# ls -l /usr/local/lib/ruby/1.8/i686-linux/syck.so >> -rwxr-xr-x 1 root root 271368 Feb 7 06:18 >> /usr/local/lib/ruby/1.8/i686-linux/syck.so >> > > Did you tried the simple yaml test? > > -- > 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 > -- Greg http://blog.gregnet.org/ From greg.hauptmann.ruby at gmail.com Fri Feb 6 21:00:25 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 12:00:25 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: <71166b3b0902061559y638c2001gefb6fb31f16e2ae9@mail.gmail.com> References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061445l582bd10dyfde3426026de4353@mail.gmail.com> <71166b3b0902061559y638c2001gefb6fb31f16e2ae9@mail.gmail.com> Message-ID: i'm oot at the moment. will try this once back home. did I miss this step in the install doco I wonder? On 07/02/2009, Luis Lavena wrote: > On Fri, Feb 6, 2009 at 9:46 PM, Greg Hauptmann > wrote: >> PS. Luis - I did do (probably silly for not understanding what I was >> doing) an "apt-get install ruby-libs". I'm not sure if this is >> significant. I guess I didn't really remember how Ruby was installed >> on my box and tried to do an update.... >> > > sudo apt-get build-dep ruby1.8 > > That should install all the required build dependencies to compile > ruby from source. > > HTH, > -- > 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 > -- Greg http://blog.gregnet.org/ From luislavena at gmail.com Fri Feb 6 21:33:44 2009 From: luislavena at gmail.com (Luis Lavena) Date: Sat, 7 Feb 2009 00:33:44 -0200 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061638y12b0ae88t25ba0c6c392cd09e@mail.gmail.com> Message-ID: <71166b3b0902061833j6960ef19j82779d5c31a2f4ad@mail.gmail.com> On Fri, Feb 6, 2009 at 11:57 PM, Greg Hauptmann wrote: > yes, this worked ok > > Besides you having so many ruby references in your setup, what is the output of "gem env"? And please, don't top post, gmail hides the context of the reply if you do that. -- 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 greg.hauptmann.ruby at gmail.com Sat Feb 7 03:01:37 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 18:01:37 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: <71166b3b0902061833j6960ef19j82779d5c31a2f4ad@mail.gmail.com> References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061638y12b0ae88t25ba0c6c392cd09e@mail.gmail.com> <71166b3b0902061833j6960ef19j82779d5c31a2f4ad@mail.gmail.com> Message-ID: Hey Luis, 2009/2/7 Luis Lavena > Besides you having so many ruby references in your setup, what is the > output of "gem env"? > At the moment this gives the error too: [root at home ~]# gem env /usr/lib/ruby/1.8/yaml.rb:14: uninitialized constant YAML::Syck::DefaultLoader (NameError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' 2009/2/7 Luis Lavena > > sudo apt-get build-dep ruby1.8 > > That should install all the required build dependencies to compile > ruby from source. I'm get the following after running this, so apt-get doesn't seem to be set up. [root at home ~]# sudo apt-get build-dep ruby1.8 Reading Package Lists... Building Dependency Tree... E: You must put some 'source' URIs in your sources.list [root at home ~]# I'm no RedHat linux, so it is "apt-get" I should be using something else? I note "yum" is not installed on my box however. Also I couldn't see in the Ruby doco where it specifies "build-dep ruby1.8" as a dependancy for building ruby. Where did you see this? Thanks again Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg.hauptmann.ruby at gmail.com Sat Feb 7 05:03:57 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 20:03:57 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061638y12b0ae88t25ba0c6c392cd09e@mail.gmail.com> <71166b3b0902061833j6960ef19j82779d5c31a2f4ad@mail.gmail.com> Message-ID: PS. I was just having a look where "gem env" fails (refer code below). It would seem the 'yaml/syck' require works OK, but it's just the DefaultLoader class it can't find. What does this imply re my ruby installation, which seems to be ok I think. How would I verify the "DefaultLoader" class was present in my Ruby installation? (i.e. trying to determine if my ruby installation is missing something, or there is a bug in the rubygems, or some issue in the rubygems install) module YAML begin require 'yaml/syck' @@parser = YAML::Syck::Parser @@loader = YAML::Syck::DefaultLoader # <=== THIS IS WHERE IT FALLS OVER @@emitter = YAML::Syck::Emitter thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From greg.hauptmann.ruby at gmail.com Sat Feb 7 06:23:37 2009 From: greg.hauptmann.ruby at gmail.com (Greg Hauptmann) Date: Sat, 7 Feb 2009 21:23:37 +1000 Subject: [Rubygems-developers] can not install RubyGems (uninitialized constant YAML::Syck::DefaultLoader (NameError)) In-Reply-To: References: <71166b3b0902061327i1f0a7105hb0d3dc24d9e1edee@mail.gmail.com> <71166b3b0902061638y12b0ae88t25ba0c6c392cd09e@mail.gmail.com> <71166b3b0902061833j6960ef19j82779d5c31a2f4ad@mail.gmail.com> Message-ID: update: Well I just hit a brick wall so remove any Ruby or RubyGems file/directory I could find. I reinstalling Ruby and then RubyGems and guess what, it works now. Just reinstalling the actual "gem" executable in /usr/local/ruby/bin I think was the point it worked, so whether the previous copy was corrupt or something (or whether the installation of the latest version of rubygems didn't overwrite the existing one, until I deleted it first).....not sure -------------- next part -------------- An HTML attachment was scrubbed... URL: From Daniel.Berger at qwest.com Wed Feb 11 09:44:41 2009 From: Daniel.Berger at qwest.com (Berger, Daniel) Date: Wed, 11 Feb 2009 08:44:41 -0600 Subject: [Rubygems-developers] Question on platform, x64 In-Reply-To: <498B871A.60508@gmail.com> References: <71166b3b0901270958w4e35ba85qd97af1d4f0628ebc@mail.gmail.com> <71166b3b 0901271101ta8bf350sa07909649d10a747@mail.gmail.com> <498B871A.60508@gmail.com> Message-ID: > -----Original Message----- > From: rubygems-developers-bounces at rubyforge.org > [mailto:rubygems-developers-bounces at rubyforge.org] On Behalf > Of Daniel Berger > Sent: Thursday, February 05, 2009 5:41 PM > To: rubygems-developers at rubyforge.org > Subject: Re: [Rubygems-developers] Question on platform, x64 > Hm, I noticed the Java gems come out as "universal-java-xxx". > That gives me an idea. > > How about this - we add Gem::Specification#universal. It > could be false by default, but if set to true it would result > in a gem tagged as universal. So, instead of > "mygem-1.0.0-x86-linux.gem" it would be > "mygem-1.0.0-universal-linux.gem". > > Folks on a Linux platform who do "gem install my-gem" would > get the architecture specific gem if there is one. If there > isn't one, it would fall back to the "universal" gem for that > platform. If there isn't a universal gem, then fall back to > the standard gem. > > Does that seem reasonable? We could instead use "generic" if we wanted to avoid any confusion with Jruby. Regards, Dan From luislavena at gmail.com Sun Feb 15 16:12:10 2009 From: luislavena at gmail.com (Luis Lavena) Date: Sun, 15 Feb 2009 19:12:10 -0200 Subject: [Rubygems-developers] Relocated Development repository Message-ID: <71166b3b0902151312u34ad25d2v7330f8c205edaa0c@mail.gmail.com> Hello Everybody, This is a heads up about the location of the rubyinstaller repository in GitHub. http://github.com/luislavena/rubyinstaller Was moved to: http://github.com/oneclick/rubyinstaller Sorry for the noise while perform the migration, by mistake I've added other contributors and then realize was doing the process in the wrong repository :-P Remember that all new work is focused in the "dsl" branch, which also got moved. Regards, -- 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 lasitha.ranatunga at gmail.com Fri Feb 20 15:50:44 2009 From: lasitha.ranatunga at gmail.com (lasitha) Date: Sat, 21 Feb 2009 02:20:44 +0530 Subject: [Rubygems-developers] conflict when rubygems generated wrapper tries to load autotest executable on ruby 1.9 Message-ID: <268f428a0902201250u6f8e9495ja51ea0bfd08a14b1@mail.gmail.com> Hello All, while trying out autotest (from ZenTest) on ruby 1.9 i ran into a load path problem and i'd appreciate some insight on whether rubygems might help sort it out. The exception is something like: /usr/local/ruby1.9/bin/autotest:19:in `load': Is a directory - /usr/local/ruby1.9/lib/ruby/gems/1.9.1/gems/cucumber-0.1.16/lib/autotest (Errno::EISDIR) from /usr/local/ruby1.9/bin/autotest:19:in `
' This is a confluence of several disparate factors, but i'll try to break it down: * Autotest provides a discovery process that scans for information contained within directories named 'autotest' on the load path. * Several gems (e.g. rspec, cucumber, merb) leverage this feature by providing their own lib/autotest directories. * Ruby 1.9 starts up with all gem bin/lib directories on the load path. * The autotest executable is also named 'autotest'. * So when the rubygems generated wrapper tries to load 'autotest', it hits one of the autotest directories (from another gem) before it hits the autotest executable. The load call then dies with something like: I can think of several ways to resolve this: 1. ZenTest could rename its executable or its discovery convention. 2. Ruby could ignore directories when it tries to load a file. 3. Rubygems could pass an absolute path to load. Are there any downsides to #3 ? By the time the wrapper is ready to load the executable we've already resolved which version of the gem to load so it seems like determining the absolute path is only a little more work. Are there scenarios other than this one with autotest in which a similiar conflict might occur? In other words, is it an edge case unique to autotest or might we run into other such conflicts? I'm happy to follow up on options #1 or #2 (or any others) but my initial guess was they would be harder or take longer to effect than #3. Thanks. lasitha. From lasitha.ranatunga at gmail.com Wed Feb 25 07:51:49 2009 From: lasitha.ranatunga at gmail.com (lasitha) Date: Wed, 25 Feb 2009 18:21:49 +0530 Subject: [Rubygems-developers] conflict when rubygems generated wrapper tries to load autotest executable on ruby 1.9 In-Reply-To: <268f428a0902201250u6f8e9495ja51ea0bfd08a14b1@mail.gmail.com> References: <268f428a0902201250u6f8e9495ja51ea0bfd08a14b1@mail.gmail.com> Message-ID: <268f428a0902250451j8d1755bv7457e29e3c080f84@mail.gmail.com> On Sat, Feb 21, 2009 at 2:20 AM, lasitha wrote: > Hello All, ?while trying out autotest (from ZenTest) on ruby 1.9 i ran > into a load path problem and i'd appreciate some insight on whether > rubygems might help sort it out. > > The exception is something like: > /usr/local/ruby1.9/bin/autotest:19:in `load': Is a directory - > /usr/local/ruby1.9/lib/ruby/gems/1.9.1/gems/cucumber-0.1.16/lib/autotest > (Errno::EISDIR) > ? ? ? ?from /usr/local/ruby1.9/bin/autotest:19:in `
' > > This is a confluence of several disparate factors, but i'll try to > break it down: > * Autotest provides a discovery process that scans for information > contained within directories named 'autotest' on the load path. > * Several gems (e.g. rspec, cucumber, merb) leverage this feature by > providing their own lib/autotest directories. > * Ruby 1.9 starts up with all gem bin/lib directories on the load path. > * The autotest executable is also named 'autotest'. > * So when the rubygems generated wrapper tries to load 'autotest', it > hits one of the autotest directories (from another gem) before it hits > the autotest executable. > > The load call then dies with something like: > > I can think of several ways to resolve this: > 1. ZenTest could rename its executable or its discovery convention. > 2. Ruby could ignore directories when it tries to load a file. > 3. Rubygems could pass an absolute path to load. > > Are there any downsides to #3 ? ?By the time the wrapper is ready to > load the executable we've already resolved which version of the gem to > load so it seems like determining the absolute path is only a little > more work. > > Are there scenarios other than this one with autotest in which a > similiar conflict might occur? ?In other words, is it an edge case > unique to autotest or might we run into other such conflicts? > > I'm happy to follow up on options #1 or #2 (or any others) but my > initial guess was they would be harder or take longer to effect than > #3. > This is mostly a bump, but i thought this code snippet might better describe what i'm on about: --- a/trunk/lib/rubygems/installer.rb +++ b/trunk/lib/rubygems/installer.rb @@ -433,1 +433,1 @@ -load '#{bin_file_name}' +load File.join( Gem.loaded_specs['#{@spec.name}'].full_gem_path, '#{@spec.bindir}', '#{bin_file_name}' ) That would be enough to get autotest working on ruby 1.9. Any downsides? Thanks, lasitha. From jftucker at gmail.com Thu Feb 26 06:41:07 2009 From: jftucker at gmail.com (James Tucker) Date: Thu, 26 Feb 2009 11:41:07 +0000 Subject: [Rubygems-developers] conflict when rubygems generated wrapper tries to load autotest executable on ruby 1.9 In-Reply-To: <268f428a0902250451j8d1755bv7457e29e3c080f84@mail.gmail.com> References: <268f428a0902201250u6f8e9495ja51ea0bfd08a14b1@mail.gmail.com> <268f428a0902250451j8d1755bv7457e29e3c080f84@mail.gmail.com> Message-ID: <7FDBEE9C-5A89-4B5D-BDD7-97DAB008193C@gmail.com> On 25 Feb 2009, at 12:51, lasitha wrote: > On Sat, Feb 21, 2009 at 2:20 AM, lasitha > wrote: >> Hello All, while trying out autotest (from ZenTest) on ruby 1.9 i >> ran >> into a load path problem and i'd appreciate some insight on whether >> rubygems might help sort it out. >> >> The exception is something like: >> /usr/local/ruby1.9/bin/autotest:19:in `load': Is a directory - >> /usr/local/ruby1.9/lib/ruby/gems/1.9.1/gems/cucumber-0.1.16/lib/ >> autotest >> (Errno::EISDIR) >> from /usr/local/ruby1.9/bin/autotest:19:in `
' >> >> This is a confluence of several disparate factors, but i'll try to >> break it down: >> * Autotest provides a discovery process that scans for information >> contained within directories named 'autotest' on the load path. >> * Several gems (e.g. rspec, cucumber, merb) leverage this feature by >> providing their own lib/autotest directories. >> * Ruby 1.9 starts up with all gem bin/lib directories on the load >> path. >> * The autotest executable is also named 'autotest'. >> * So when the rubygems generated wrapper tries to load 'autotest', it >> hits one of the autotest directories (from another gem) before it >> hits >> the autotest executable. >> >> The load call then dies with something like: >> >> I can think of several ways to resolve this: >> 1. ZenTest could rename its executable or its discovery convention. >> 2. Ruby could ignore directories when it tries to load a file. >> 3. Rubygems could pass an absolute path to load. >> >> Are there any downsides to #3 ? By the time the wrapper is ready to >> load the executable we've already resolved which version of the gem >> to >> load so it seems like determining the absolute path is only a little >> more work. >> >> Are there scenarios other than this one with autotest in which a >> similiar conflict might occur? In other words, is it an edge case >> unique to autotest or might we run into other such conflicts? >> >> I'm happy to follow up on options #1 or #2 (or any others) but my >> initial guess was they would be harder or take longer to effect than >> #3. >> > > This is mostly a bump, but i thought this code snippet might better > describe what i'm on about: > > --- a/trunk/lib/rubygems/installer.rb > +++ b/trunk/lib/rubygems/installer.rb > @@ -433,1 +433,1 @@ > -load '#{bin_file_name}' > +load File.join( Gem.loaded_specs['#{@spec.name}'].full_gem_path, > '#{@spec.bindir}', '#{bin_file_name}' ) > > That would be enough to get autotest working on ruby 1.9. > Any downsides? See Gem.bin_path patch here: http://rubyforge.org/tracker/index.php?func=detail&aid=24114&group_id=126&atid=577 > > > Thanks, > lasitha. > _______________________________________________ > Rubygems-developers mailing list > Rubygems-developers at rubyforge.org > http://rubyforge.org/mailman/listinfo/rubygems-developers From djberg96 at gmail.com Thu Feb 26 14:14:40 2009 From: djberg96 at gmail.com (Daniel Berger) Date: Thu, 26 Feb 2009 12:14:40 -0700 Subject: [Rubygems-developers] [Fwd: Re: Question about gems, platform and win32-api] Message-ID: <49A6EA20.4010109@gmail.com> Forwarding from Charley. Looks like there's some sort of gems/hoe interaction bug happening. Dan -------------- next part -------------- An embedded message was scrubbed... From: Charley Baker Subject: Re: Question about gems, platform and win32-api Date: Thu, 26 Feb 2009 12:10:30 -0700 Size: 8104 URL: