cannot install shotgun with RubyGems

M

Martin Gütlein

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
 
R

Ryan Davis

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.

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.
 
M

Martin Gütlein

I solved my problem by downloading the shotgun sources from github

I'll write a short message to the author
 
E

Eric Hodel

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.

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

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.=
 
R

Ryan Davis

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.

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

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)
 
M

Martin Gütlein

% 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.
 
R

Ryan Davis

% 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 =20
directory but not into /usr/bin/? If so, I'd remove the write perms =20
from the gem directory so the problem is more obvious from now on.

try: sudo gem pristine shotgun
 
M

Martin Gütlein

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.
 
B

Brian Candler

Martin said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,072
Latest member
trafficcone

Latest Threads

Top