Search code examples
sinatraironruby

Can Sinatra be used with IronRuby?


I'm trying to install the following ruby gem on my mac:

http://www.sinatrarb.com/intro.html

I get the following message:

    michael-rosarios-macbook:bin michaelrosario1$ mono ir.exe igem sinatra
    ERROR:  While executing gem ... (RuntimeError)
        Unknown command sinatra
    michael-rosarios-macbook:bin michaelrosario1$ 

Can someone more familiar with Ruby/IronRuby help me out?


Solution

  • It appears that I had missed an argument installing sinatra:

    michael-rosarios-macbook:bin michaelrosario1$ mono ir.exe igem install sinatra
    Successfully installed rack-1.0.0
    Successfully installed sinatra-0.9.4
    2 gems installed
    Installing ri documentation for rack-1.0.0...
    Installing ri documentation for sinatra-0.9.4...
    Installing RDoc documentation for rack-1.0.0...
    Installing RDoc documentation for sinatra-0.9.4...
    

    I'm now experiencing issues with writing a "hello world" example using Sinatra. This is probably related to Shay's comment. Any other thoughts!?