Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #2070 > unrolled thread

Sinatra and Shotgun Gems

Started by"Ryan C." <rclark.sf@gmail.com>
First post2011-03-31 18:13 -0500
Last post2011-04-04 13:01 -0500
Articles 4 — 3 participants

Back to article view | Back to comp.lang.ruby


Contents

  Sinatra and Shotgun Gems "Ryan C." <rclark.sf@gmail.com> - 2011-03-31 18:13 -0500
    Re: Sinatra and Shotgun Gems prasad <gdprasad@gmail.com> - 2011-03-31 23:31 -0500
    Re: Sinatra and Shotgun Gems Brian Candler <b.candler@pobox.com> - 2011-04-01 03:14 -0500
    Re: Sinatra and Shotgun Gems "Ryan C." <rclark.sf@gmail.com> - 2011-04-04 13:01 -0500

#2070 — Sinatra and Shotgun Gems

From"Ryan C." <rclark.sf@gmail.com>
Date2011-03-31 18:13 -0500
SubjectSinatra and Shotgun Gems
Message-ID<c2905e8d5acb8fb1db641492aab6064b@ruby-forum.com>
Hi all,

I'm working of playing around with a Nettuts Sinatra tutorial:

http://net.tutsplus.com/tutorials/ruby/singing-with-sinatra/

and for whatever reason, I can't get the shotgun gen to load.  My
terminal (Debian Linux) returns the following:


mint@mint ~/Test-Run $ shotgun basics.rb
No command 'shotgun' found, did you mean:
 Command 'shogun' from package 'shogun-cmdline' (universe)
shotgun: command not found
mint@mint ~/Test-Run $

I have tried editing my gem paths, but that shouldn't be it since
sinatra works, right?

Any help would be appreciated.

Thanks,
Ryan

-- 
Posted via http://www.ruby-forum.com/.

[toc] | [next] | [standalone]


#2083

Fromprasad <gdprasad@gmail.com>
Date2011-03-31 23:31 -0500
Message-ID<AANLkTina+VeQiH4-sEjppO=qfvTZzqkn+T-DQzrzFjNm@mail.gmail.com>
In reply to#2070
[Note:  parts of this message were removed to make it a legal post.]

This worked for me on Ubuntu after "sudo gem install shotgun"
$ shotgun hello.rb
== Shotgun/WEBrick on http://127.0.0.1:9393/
[2011-04-01 09:51:16] INFO  WEBrick 1.3.1
[2011-04-01 09:51:16] INFO  ruby 1.9.2 (2010-08-18) [x86_64-linux]
[2011-04-01 09:51:16] INFO  WEBrick::HTTPServer#start: pid=3310 port=9393
127.0.0.1 - - [01/Apr/2011 09:52:30] "GET / HTTP/1.1" 200 12 0.0030

Prasad


2011/4/1 Ryan C. <rclark.sf@gmail.com>

> Hi all,
>
> I'm working of playing around with a Nettuts Sinatra tutorial:
>
> http://net.tutsplus.com/tutorials/ruby/singing-with-sinatra/
>
> and for whatever reason, I can't get the shotgun gen to load.  My
> terminal (Debian Linux) returns the following:
>
>
> mint@mint ~/Test-Run $ shotgun basics.rb
> No command 'shotgun' found, did you mean:
>  Command 'shogun' from package 'shogun-cmdline' (universe)
> shotgun: command not found
> mint@mint ~/Test-Run $
>
> I have tried editing my gem paths, but that shouldn't be it since
> sinatra works, right?
>
> Any help would be appreciated.
>
> Thanks,
> Ryan
>
> --
> Posted via http://www.ruby-forum.com/.
>
>

[toc] | [prev] | [next] | [standalone]


#2092

FromBrian Candler <b.candler@pobox.com>
Date2011-04-01 03:14 -0500
Message-ID<5d0d4571591430bbbfe6e58b941aff7a@ruby-forum.com>
In reply to#2070
Ryan C. wrote in post #990276:
> I have tried editing my gem paths, but that shouldn't be it since
> sinatra works, right?

How did you install sinatra? You might be using the native Debian 
package rather than the gem:

$ apt-cache search sinatra
libsinatra-ruby - Ruby web-development dressed in a DSL (Ruby 1.8 
package)
libsinatra-ruby-doc - Ruby web-development dressed in a DSL 
(documentation)
libsinatra-ruby1.8 - Ruby web-development dressed in a DSL
libsinatra-ruby1.9.1 - Ruby web-development dressed in a DSL

in which case the gems dir may not in fact be on your search path.

I suggest you try the following:

export PATH=/var/lib/gems/1.8/bin:$PATH
shotgun ...blah blah...

-- 
Posted via http://www.ruby-forum.com/.

[toc] | [prev] | [next] | [standalone]


#2274

From"Ryan C." <rclark.sf@gmail.com>
Date2011-04-04 13:01 -0500
Message-ID<1227c4f793f8c29aabd79681ecd3dd26@ruby-forum.com>
In reply to#2070
Brian,

That was the fix I was looking for! Thank you.

One more question: Will I need to enter this path command every time I 
rebook Linux?  I've read a little on having a .bashrc file, but haven't 
attempted to create anything..  I might need a little help if the case 
is that I will need one.

Thanks,
Ryan

-- 
Posted via http://www.ruby-forum.com/.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.ruby


csiph-web