Created
December 21, 2011 19:33
-
-
Save billgloff/1507335 to your computer and use it in GitHub Desktop.
installs ruby for a BBB ubuntu vm image
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 | |
| cd /tmp | |
| wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz | |
| tar xvzf ruby-1.9.2-p290.tar.gz | |
| cd ruby-1.9.2-p290 | |
| ./configure --prefix=/usr\ | |
| --program-suffix=1.9.2\ | |
| --with-ruby-version=1.9.2\ | |
| --disable-install-doc | |
| make | |
| sudo checkinstall -D -y\ | |
| --fstrans=no\ | |
| --nodoc\ | |
| --pkgname='ruby1.9.2'\ | |
| --pkgversion='1.9.2-p290'\ | |
| --provides='ruby'\ | |
| --requires='libc6,libffi5,libgdbm3,libncurses5,libreadline5,openssl,libyaml-0-2,zlib1g'\ | |
| --maintainer=brendan.ribera@gmail.com | |
| sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.2 500\ | |
| --slave /usr/bin/ri ri /usr/bin/ri1.9.2\ | |
| --slave /usr/bin/irb irb /usr/bin/irb1.9.2\ | |
| --slave /usr/bin/gem gem /usr/bin/gem1.9.2\ | |
| --slave /usr/bin/erb erb /usr/bin/erb1.9.2\ | |
| --slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment