Can I use Sinatra with IronRuby?

I am trying to install the following ruby ​​stone 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 anyone more familiar with Ruby / IronRuby help me?

+3
source share
2 answers

It looks like I missed the argument setting the 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...

Now I am having trouble writing a hello world example using Sinatra. This is probably due to Shay's comment. Any other thoughts !?

+1
source

First: I am not familiar with mono, but on Windows I will run "igem sinatra" without ir before that. Maybe a problem?

, igem, Gem gem . IronRuby .

: $ LOAD_PATH < path_to_mri_gems_folder path_to_mri_gems_folder - Mems gems. .

IronRuby Sinatra, , : http://www.ironruby.net/Documentation/Real_Ruby_Applications/Sinatra

.

0

Source: https://habr.com/ru/post/1714145/


All Articles