tag:help.rubygems.org,2010-01-19:/discussions/problems/452-uploaded-platform-gem-causes-wrong-gem-to-downloadRubyGems.org: Discussion 2018-10-18T19:51:02Ztag:help.rubygems.org,2010-01-19:Comment/45804982011-01-05T17:40:19Z2011-01-05T17:40:19ZUploaded platform gem causes wrong gem to download<div><p>Hi,</p>
<p>I just released the following gems:</p>
<p>bson-1.2.rc1<br>
bson-1.2.rc1-java<br>
bson_ext-1.2.rc1</p>
<p>Now, when I run</p>
<p>gem install bson</p>
<p>Gem always attempts to install bson_ext. Why would this be? Am I
doing something wrong or is there a bug here? This should be easy
to replicate on your end.</p>
<p>Thanks,<br>
Kyle</p></div>Kyletag:help.rubygems.org,2010-01-19:Comment/45804982011-01-05T17:57:54Z2011-01-05T17:57:55ZUploaded platform gem causes wrong gem to download<div><p>Here's some more info:</p>
<p>If I install mongo, which depend on bson, then the install
progress correctly:</p>
<p>[kyle@ubuntu ruby-driver$]$ gem install mongo Successfully
installed bson-1.2.rc1-java<br>
Successfully installed mongo-1.2.rc1<br>
2 gems installed<br>
Installing ri documentation for bson-1.2.rc1-java...<br>
Installing ri documentation for mongo-1.2.rc1...<br>
Installing RDoc documentation for bson-1.2.rc1-java...<br>
Installing RDoc documentation for mongo-1.2.rc1...</p>
<p>But if I just try installing bson by itself, notice that it
attempts to install bson_ext.</p>
<p>[kyle@ubuntu ruby-driver$]$ gem install bson Building native
extensions. This could take a while...<br>
ERROR: Error installing bson:<br></p>
<pre>
<code>ERROR: Failed to build gem native extension.</code>
</pre>
<p>/home/kyle/.rvm/rubies/jruby-1.5.6/bin/jruby extconf.rb WARNING:
JRuby does not support native extensions or the `mkmf'
library.<br></p>
<pre>
<code> Check http://kenai.com/projects/jruby/pages/Home for alternatives.</code>
</pre>
<p>extconf.rb:3: undefined method `have_func' for main:Object
(NoMethodError)</p>
<p>Gem files will remain installed in
/home/kyle/.rvm/gems/jruby-1.5.6/gems/bson_ext-1.2.rc1 for
inspection.<br>
Results logged to
/home/kyle/.rvm/gems/jruby-1.5.6/gems/bson_ext-1.2.rc1/ext/cbson/gem_make.out</p>
<p>The same happens on other platforms:<br>
[kyle@ubuntu ruby-driver$]$ rvm 1.8.7 [kyle@ubuntu ruby-driver$]$
gem install bson Building native extensions. This could take a
while...<br>
Successfully installed bson_ext-1.2.rc1<br>
1 gem installed</p>
<p>Bizarre, right?</p></div>Kyletag:help.rubygems.org,2010-01-19:Comment/45804982011-01-06T03:31:59Z2011-01-06T03:31:59ZUploaded platform gem causes wrong gem to download<div><p>Hmm. Strangely enough, this does seem to be working okay on a
different machine. Not sure what to make of it, but we can probably
close this for now.</p></div>Kyletag:help.rubygems.org,2010-01-19:Comment/45804982011-01-18T03:49:54Z2011-01-18T03:49:54ZUploaded platform gem causes wrong gem to download<div><p>Hey Kyle, sorry about the delayed response here.</p>
<p>Pretty much all of the indexes get updated at the same time, not
sure how this would happen. Was this happening on RG 1.4+ ?</p></div>Nick Quarantotag:help.rubygems.org,2010-01-19:Comment/45804982011-01-18T17:01:18Z2011-01-18T17:01:20ZUploaded platform gem causes wrong gem to download<div><p>Thanks, Nich. It was with 1.3.6. But I haven't seen the issue
crop up again, so I believe we can consider this resolved.</p></div>Kyle