I'm trying to create a Debian package for a simple utility. I wrote with fpm and bundler , but I'm having difficulties. This is how I create my .deb (I assume you checked sns and are root in it):
$ bundle install $ rake install $ fpm -s gem -t deb --prefix /var/lib/gems/1.8/ pkg/sns-0.1.1.gem Successfully installed sns-0.1.1 1 gem installed md5sum: : No such file or directory Created /home/blt/projects/com/carepilot/sns/rubygem-sns_0.1.1_all.deb $ dpkg-deb -c rubygem-sns_0.1.1_all.deb | grep sns_hosts -rwxr-xr-x root/root 762 2011-08-18 22:28 ./var/lib/gems/1.8/gems/sns-0.1.1/bin/sns_hosts -rwxr-xr-x root/root 398 2011-08-18 22:28 ./var/lib/gems/1.8/bin/sns_hosts
How it should be. Unfortunately,
$ cat /var/lib/gems/1.8/bin/sns_hosts #!/home/blt/.rbenv/versions/1.9.2-p290/bin/ruby # # This file was generated by RubyGems. # # The application 'sns' is installed as part of a gem, and # this file is here to facilitate running it. # require 'rubygems' version = ">= 0" if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then version = $1 ARGV.shift end gem 'sns', version load Gem.bin_path('sns', 'sns_hosts', version)
The gem creates a shunt that incorrectly installs the ruby ββinterpreter into the interpreter of my development environment; rather a problem when clicking on other computers. How can I affect the interpreter installed in the shunt script?
source share