Created
November 28, 2011 21:32
-
-
Save jeffrydegrande/1402168 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
VERSION="1.9.2-p180" | |
# build dependencies | |
sudo apt-get install libssl-dev | |
sudo gem install fpm | |
rm -fr /tmp/installdir | |
( | |
cd /tmp | |
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-${VERSION}.tar.gz | |
rm -fr ruby-${VERSION} | |
tar -zxf ruby-${VERSION}.tar.gz | |
rm ruby-${VERSION}.tar.gz | |
cd ruby-${VERSION} | |
./configure --prefix=/usr --with-ruby-version=${VERSION} | |
make | |
make install DESTDIR=/tmp/installdir | |
cd /tmp | |
fpm -s dir -t deb -n ruby -v 1.9.2-p180 -C /tmp/installdir \ | |
-p ruby-VERSION_ARCH.deb -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)" \ | |
usr/bin usr/lib usr/share/man usr/include | |
sudo mv ruby-${VERSION}_i386.deb /home/www-data/objetiva.co/ | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment