Projects

Ticket #586 (closed defect: fixed)

Opened 2 years ago

Last modified 18 months ago

"macgem build" fails.

Reported by: rob@… Owned by: lsansonetti@…
Priority: major Milestone: MacRuby 0.7
Component: MacRuby Keywords: macgem
Cc:

Description

Hi,

The "macgem build" command seems to fail with an IOError:

Gem::Specification.new do |g|
  g.name = 'dummy'
  g.version = '1.0'
  g.authors = %w(Dummy)
  g.email = 'dummy@dummy.info'
  g.homepage = 'http://www.dummy.com'
  g.summary = "Dummy"
  g.description = "Dummy"
  
  g.files = Dir["."]

end

Thanks

Change History

  Changed 23 months ago by tpitale@…

I'm also having this problem in problem #640 with two example projects. This seems to be a more simple example. Feel free to close mine if duplicate, if that is the case.

follow-up: ↓ 3   Changed 23 months ago by martinlagardette@…

The core problem is fixed, but macgem is still unable to generate correct .gem files because of an issue in our Zlib. Keeping the bug open meanwhile :-)

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 23 months ago by tpitale@…

Replying to martinlagardette@…:

Is there a way around this problem? Can I build the gem with 1.9.2 and install with macgem?

in reply to: ↑ 3   Changed 23 months ago by martinlagardette@…

Replying to tpitale@…:

Replying to martinlagardette@…: Is there a way around this problem? Can I build the gem with 1.9.2 and install with macgem?

Sure, it should work :-)

follow-up: ↓ 6   Changed 23 months ago by tpitale@…

Odd, when I do that it fails like so:

unknown: warning: ignoring alias unknown: warning: ignoring alias ERROR: While executing gem ... (NoMethodError)

undefined method `requirements' for nil:NilClass

Any idea what causes that?

in reply to: ↑ 5   Changed 23 months ago by martinlagardette@…

Replying to tpitale@…:

Odd, when I do that it fails like so: unknown: warning: ignoring alias unknown: warning: ignoring alias ERROR: While executing gem ... (NoMethodError) undefined method `requirements' for nil:NilClass Any idea what causes that?

What gem are you trying to install? I tried with the two gems you cited on your bug report:

$> cd /tmp/octopi && gem19 build octopi.gemspec 
WARNING:  RDoc will not be generated (has_rdoc == false)
ERROR:  While executing gem ... (Errno::ENOENT)
    No such file or directory - README.rdoc

$> cd /tmp/garb/ && gem19 build garb.gemspec 
WARNING:  RDoc will not be generated (has_rdoc == false)
  Successfully built RubyGem
  Name: garb
  Version: 0.7.4
  File: garb-0.7.4.gem

$> sudo macgem install garb-0.7.4.gem 
Password:
Successfully installed crack-0.1.7
Successfully installed activesupport-2.3.5
Successfully installed garb-0.7.4
3 gems installed

$>

  Changed 23 months ago by tpitale@…

I just switched to the nightly, and the install works. The gems are tpitale-octopi and garb.

Thanks!

  Changed 18 months ago by lsansonetti@…

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to MacRuby 0.7

Closing :)

Note: See TracTickets for help on using tickets.