hoanga (owner)

Revisions

  • 05f83d Fri Sep 04 01:58:12 -0700 2009
gist: 180805 Download_button fork
public
Public Clone URL: git://gist.github.com/180805.git
Embed All Files: show embed
install-ruby19.sh #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
 
RUBY19_URL="ftp://ftp.ruby-lang.org/pub/ruby/1.9"
RUBY19_VERS="ruby-1.9.1-p243"
 
 
echo "============================="
echo "Downloading and extracting..."
echo "============================="
cd ~/Downloads && wget -c "${RUBY19_URL}/${RUBY19_VERS}.tar.gz"
tar xvzf ~/Downloads/${RUBY19_VERS}.tar.gz -C ~/src/static
 
 
echo "============================="
echo "Configuring and compiling..."
echo "============================="
cd ~/src/static/${RUBY19_VERS}
# Don't trust MacPorts version of autoconf because it somehow nuked
# --with-readline-dir
/usr/bin/autoconf# Make sure to compile with GNU Readline support if you to be able
# to cut and paste Japanese into the irb console.
./configure --with-readline-dir=/opt/local --enable-shared --program-suffix=19 --enable-p
thread
make
 
echo "============================="
echo "Installing by typing..."
echo "cd ~/src/static/${RUBY19_VERS}"
echo "sudo make install"
echo "============================="