Hemanth's Scribes

web

Packing ruby2.0 on Debian.

Author Photo

Hemanth HM

Thumbnail

Packing ruby2.0 on Debian.

One can use the below script to package ruby2.0 on squeeze.

To get going, just get the script form Here and says sudo bash ruby-deb.sh then enjoy ruby2.0! :)


# !/bin/bash

apt-get install ruby rubygems

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 http://ftp.ruby-lang.org/pub/ruby/ruby-2.0-stable.tar.gz

tar -zxvf ruby-2.0-stable.tar.gz

cd ruby*

rm -rf /tmp/ruby20

./configure --prefix=/usr && make && make install DESTDIR=/tmp/ruby20

/var/lib/gems/1.8/bin/fpm -s dir -t deb -n ruby20 -v 2.0 --description \ "Ruby 2.0 stable package" -C /tmp/ruby20 \

-p ruby2.0-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

# Deb is ready!

apt-get remove ruby rubygems

apt-get install libffi5 libyaml-0-2

dpkg -i ruby2*.deb

ruby -ropenssl -rzlib -rreadline -ryaml -e "puts :Oh yeah!" ```
#javascript#linux
Author Photo

About Hemanth HM

Hemanth HM is a Sr. Machine Learning Manager at PayPal, Google Developer Expert, TC39 delegate, FOSS advocate, and community leader with a passion for programming, AI, and open-source contributions.