Cannot install shotgun with RubyGems

Hello,

I want to install shotgun for sinatra (see:
http://www.sinatrarb.com/faq.html#reloading).

Installing the shotgun gem seems to work fine, the output of
sudo gem install shotgun
is:

Successfully installed shotgun-0.4
1 gem installed
Installing ri documentation for shotgun-0.4…
Installing RDoc documentation for shotgun-0.4…

However, theres no shotgun binary afterwards.

Hope someone can help me

On Aug 19, 2009, at 02:59 , Martin Gütlein wrote:

1 gem installed
Installing ri documentation for shotgun-0.4…
Installing RDoc documentation for shotgun-0.4…

However, theres no shotgun binary afterwards.

Looks like it is packaged improperly. Should have used hoe.

509 % gem spec -r shotgun | grep files:
extra_rdoc_files: []
files: []
test_files: []

Best bet is to file a bug.

I solved my problem by downloading the shotgun sources from github

I’ll write a short message to the author

On Aug 19, 2009, at 03:17, Ryan D. wrote:

extra_rdoc_files: []
files: []
test_files: []

These aren’t filled in on remote specs, you must fetch the gem first.

% gem spec shotgun-0.4.gem | egrep “files|bin”
bindir: bin
extra_rdoc_files:
files:

  • bin/shotgun
    test_files: []

I’m getting the same output. There is no /bin/shotgun file, though.
And there are no shotgun-files in /usr/lib/ruby/1.8, neither.

On Aug 19, 2009, at 10:25 , Eric H. wrote:

is:
509 % gem spec -r shotgun | grep files:
extra_rdoc_files: []
files: []
test_files: []

These aren’t filled in on remote specs, you must fetch the gem first.

Right… note to self: don’t answer email at 3am…

% gem spec shotgun-0.4.gem | egrep “files|bin”
bindir: bin
extra_rdoc_files:
files:

  • bin/shotgun
    test_files: []

(still should have used hoe :P)

On Aug 19, 2009, at 23:46 , Martin Gütlein wrote:

% gem spec shotgun-0.4.gem | egrep “files|bin”
bindir: bin
extra_rdoc_files:
files:

  • bin/shotgun
    test_files: []

I’m getting the same output. There is no /bin/shotgun file, though.
And there are no shotgun-files in /usr/lib/ruby/1.8, neither.

506 % sudo gem install --no-ri --no-rdoc shotgun
Successfully installed configuration-0.0.5
Successfully installed launchy-0.3.3
Successfully installed shotgun-0.4
3 gems installed
507 % gem contents shotgun
README
COPYING
Rakefile
shotgun.gemspec
lib/shotgun.rb
bin/shotgun
508 % gem contents --prefix shotgun
/Library/Ruby/Gems/1.8/gems/shotgun-0.4/README
/Library/Ruby/Gems/1.8/gems/shotgun-0.4/COPYING
/Library/Ruby/Gems/1.8/gems/shotgun-0.4/Rakefile
/Library/Ruby/Gems/1.8/gems/shotgun-0.4/shotgun.gemspec
/Library/Ruby/Gems/1.8/gems/shotgun-0.4/lib/shotgun.rb
/Library/Ruby/Gems/1.8/gems/shotgun-0.4/bin/shotgun
509 % ll /usr/bin/shotgun
-rwxr-xr-x 1 root wheel 430 Aug 20 00:09 /usr/bin/shotgun*

you did use sudo, right? Maybe you have write perms into the gem
directory but not into /usr/bin/? If so, I’d remove the write perms
from the gem directory so the problem is more obvious from now on.

try: sudo gem pristine shotgun

Thanks a lot for your help.
The contents command was a good idea:

$ gem contents shotgun
/var/lib/gems/1.8/gems/shotgun-0.4/README
/var/lib/gems/1.8/gems/shotgun-0.4/COPYING
/var/lib/gems/1.8/gems/shotgun-0.4/Rakefile
/var/lib/gems/1.8/gems/shotgun-0.4/shotgun.gemspec
/var/lib/gems/1.8/gems/shotgun-0.4/lib/shotgun.rb
/var/lib/gems/1.8/gems/shotgun-0.4/bin/shotgun

How come RubyGem uses this directory on my machine?
I could live with that, but I would have to add the bin-directory to my
Path variable each time I install a gem with executables.

Martin Gütlein wrote:

Thanks a lot for your help.
The contents command was a good idea:

$ gem contents shotgun
/var/lib/gems/1.8/gems/shotgun-0.4/README
/var/lib/gems/1.8/gems/shotgun-0.4/COPYING
/var/lib/gems/1.8/gems/shotgun-0.4/Rakefile
/var/lib/gems/1.8/gems/shotgun-0.4/shotgun.gemspec
/var/lib/gems/1.8/gems/shotgun-0.4/lib/shotgun.rb
/var/lib/gems/1.8/gems/shotgun-0.4/bin/shotgun

How come RubyGem uses this directory on my machine?

I expect you’re running Debian or a Debian-based distro, e.g. Ubuntu.

The Debian people love to modify software when packaging it to fit their
own ideas of where files should live, rather than the author’s.

If you don’t like it, you can ‘apt-get remove rubygems’ and then install
rubygems from source. Or install the ruby enterprise edition .deb, which
puts everything under /opt anyway.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs