Skip to content

Instantly share code, notes, and snippets.

@futuremill-ltd
Created April 6, 2012 11:00

Revisions

  1. futuremill-ltd revised this gist Apr 6, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@ cd ruby-1.9.3-p125
    rm -rf /tmp/ruby193
    time (./configure --prefix=/usr && make && make install DESTDIR=/tmp/ruby193)

    /var/lib/gems/1.8/bin/fpm -s dir -t deb -n ruby193 -v p125 --description "Self-packaged Ruby 1.9.3 patch 125" -C /tmp/ruby193 \
    /var/lib/gems/1.8/bin/fpm -s dir -t deb -n ruby193 -v 1.9.3-p125 --description "Self-packaged Ruby 1.9.3 patch 125" -C /tmp/ruby193 \
    -p ruby193-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)" \
  2. futuremill-ltd revised this gist Apr 6, 2012. 1 changed file with 12 additions and 4 deletions.
    16 changes: 12 additions & 4 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,27 @@
    apt-get install libssl-dev libreadline-dev
    # From a fresh install of squeeze
    apt-get install ruby rubygems # Need ruby to use fpm
    gem install fpm
    gem1.8 install fpm --no-ri --no-rdoc

    apt-get install build-essential openssl libreadline6 libreadline6-dev zlib1g zlib1g-dev libssl-dev ncurses-dev libyaml-dev

    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
    tar -zxvf ruby-1.9.3-p125.tar.gz
    cd ruby-1.9.3-p125
    rm -rf /tmp/ruby193
    time (./configure --prefix=/usr && make && make install DESTDIR=/tmp/ruby193)

    fpm -s dir -t deb -n ruby193 -v 1.9.3-p125 --description "Self-packaged Ruby 1.9.3 patch 125" -C /tmp/ruby193 \
    /var/lib/gems/1.8/bin/fpm -s dir -t deb -n ruby193 -v p125 --description "Self-packaged Ruby 1.9.3 patch 125" -C /tmp/ruby193 \
    -p ruby193-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)" \
    -d "libssl0.9.8 (>= 0.9.8)" -d "zlib1g (>= 1:1.2.2)" \
    -d "libyaml-0-2 (>= 0.1.3)" \
    usr/bin usr/lib usr/share/man usr/include

    ruby -ropenssl -rzlib -rreadline -ryaml -e "puts :success"

    # Post installation test
    apt-get remove ruby rubygems
    apt-get install libffi5 libyaml-0-2
    dpkg -i ruby193-p125_i386.deb
    ruby -ropenssl -rzlib -rreadline -ryaml -e "puts :success"

  3. futuremill-ltd revised this gist Apr 6, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ cd ruby-1.9.3-p125
    rm -rf /tmp/ruby193
    time (./configure --prefix=/usr && make && make install DESTDIR=/tmp/ruby193)

    fpm -s dir -t deb -n ruby193 -v 1.9.3-p125 -n "Self-packaged Ruby 1.9.3 patch 125" -C /tmp/ruby193 \
    fpm -s dir -t deb -n ruby193 -v 1.9.3-p125 --description "Self-packaged Ruby 1.9.3 patch 125" -C /tmp/ruby193 \
    -p ruby193-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)" \
  4. futuremill-ltd revised this gist Apr 6, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    apt-get install libssl-dev libreadline-dev
    # Need to have a version of ruby installed to use fpm
    apt-get install ruby rubygems # Need ruby to use fpm
    gem install fpm

    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
  5. futuremill-ltd created this gist Apr 6, 2012.
    19 changes: 19 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    apt-get install libssl-dev libreadline-dev
    # Need to have a version of ruby installed to use fpm
    gem install fpm

    wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
    tar -zxvf ruby-1.9.3-p125.tar.gz
    cd ruby-1.9.3-p125
    rm -rf /tmp/ruby193
    time (./configure --prefix=/usr && make && make install DESTDIR=/tmp/ruby193)

    fpm -s dir -t deb -n ruby193 -v 1.9.3-p125 -n "Self-packaged Ruby 1.9.3 patch 125" -C /tmp/ruby193 \
    -p ruby193-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)" \
    -d "libssl0.9.8 (>= 0.9.8)" -d "zlib1g (>= 1:1.2.2)" \
    -d "libyaml-0-2 (>= 0.1.3)" \
    usr/bin usr/lib usr/share/man usr/include

    ruby -ropenssl -rzlib -rreadline -ryaml -e "puts :success"