Skip to content

Instantly share code, notes, and snippets.

@smith
Forked from jtimberman/gist:881058
Created May 6, 2011 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smith/959081 to your computer and use it in GitHub Desktop.
Save smith/959081 to your computer and use it in GitHub Desktop.
i can has ruby-1.9.2 package with fpm
# Commands to build a .deb with ruby 1.9.2
apt-get install libssl-dev
gem install fpm
cd /usr/src
wget ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.2-p180.tar.gz
tar -zxvf ruby-1.9.2-p180.tar.gz
cd ruby-1.9.2-p180
./configure --prefix=/usr && make && make install DESTDIR=/tmp/installdir
cd ..
# This builds the package. Replace x86_64 with i386 or the arch you're building
fpm -s dir -t deb -n ruby -v 5.0-1cramerdev1.9.2p180 -C /tmp/installdir -a x86_64 \
-S 1cramerdev1.9.2p180 -p ruby-5.0-1cramerdev1.9.2p180_x86_64.deb \
-m "Cramer Development <sysadmin@cramerdev.com>" \
--description "The Ruby Programming Language" \
-d "libstdc++6 (>= 4.4.3)" \
-d "libc6 (>= 2.6)" -d "libffi5 (>= 3.0.4)" -d "libgdbm3 (>= 1.8.3)" \
-d "libncurses5 (>= 5.7)" -d "libreadline6 (>= 6.1)" \
-d "libssl0.9.8 (>= 0.9.8)" -d "zlib1g (>= 1:1.2.2)" \
usr/bin usr/lib usr/share/man usr/include
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment