【台灣百岳】帶山友爬百岳的一些照片~玉山、雪山、嘉明湖、奇萊連峰、南湖大山、武陵四秀、合歡群峰

圖片
彙整紀錄一下過去帶團的一些記錄。 ▼▼▼2020年玉山主峰_研究所同學團▼▼▼ ▼▼▼2020年玉山主峰台灣團▼▼▼ ▼▼▼2020年玉山主峰台灣團▼▼▼ ▼▼▼2020年玉山主峰台灣團▼▼ ▼▼▼2020年玉山主峰台灣團▼▼▼ ▼▼▼2019年玉山主峰台灣團▼▼▼ ▼▼▼2019年玉山主峰台灣團▼▼▼ ▼▼▼2019年玉山主峰台灣團▼▼▼ ▼▼▼2019年玉山主峰台灣團▼▼▼ ▼▼▼2019年玉山主峰香港團▼▼▼ ▼▼▼2019年玉山主峰台灣團▼▼▼ ▼▼▼2019年雪山主峰澳門團▼▼▼ ▼▼▼2019年玉山香港團▼▼▼ ▼▼▼2019年玉山香港團▼▼▼ ▼▼▼2019年玉山香港團▼▼▼ ▼▼▼ 嘉明湖團(含登頂三叉山、向陽山) ▼▼▼

Setting Ruby to version 1.9.3 as default in Mac OS X Lion


RVM (Ruby Version Manager) is a Ruby interpreter, version management tool. It enables you to switch between different versions and releases of Ruby (for instance, version 1.8.7, ruby enterprise edition) on the same machine, while associating different gems with each version of the ruby interpreter. If you want to play with Rails 3 and Ruby 1.9.x, and then want to switch back to your previous developed apps, which are running on Rails 2.3.x and Ruby 1.8.x, you can do so with a single command from the terminal.

1. Installing RVM and edit profile scripts

First, use the following bash script to install RVM:
$ bash << (curl -s https://rvm.beginrescueend.com/install/rvm)

Next you have to add rvm to your .bashrc profile
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
[[ -r $rvm_path/scripts/completion ]] && . $rvm_path/scripts/completion #rvm tab completion

And run the following command in terminal:
$ source ~/.bashrc

To check everything went well:
$ type rvm | head -n1

Should tell you “rvm is a function”

Now install openssl package and latest Ruby version (1.9.3):

$ rvm package install readline
$ rvm package install iconv
$ rvm package install zlib

$ rvm pkg install openssl

$ rvm install ruby-1.9.3 --with-readline-dir=$rvm_path/usr --with-iconvdir=$rvm_path/usr --with-zlib-dir=$rvm_path/usr --with-openssl-dir=$rvm_path/usr --with-gcc=clang

Ultimately, make sure that the system version of Ruby is ok:
$ ruby -v

That should return your system Ruby version, which as of this writing is 1.8.7 with Mac OS X Leopard and Mac OS X Lion.
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-darwin10]

2. Set Ruby to default to version 1.9.3

Now, let’s use RVM to se the default Ruby interpreter to 1.9.3:

$ rvm use 1.9.3 --default

Now type ruby -v again and that should return version 1.9.3:
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]

You can also get back to where you started and revert to using your original Ruby setup (not using RVM) with a single command:

$ rvm system

Done. Have fun :)

熱門文章

[轉載] 洛克菲勒寫給兒子的38封信(全文)

Aug 21, 2022【新北烏來】紅河谷越嶺古道前段健行。平緩好走的林蔭休閒步道

Jun 24~25, 2022【南橫三星】庫哈諾辛山+【南臺首嶽】關山(進涇橋登山口)|2天1夜野營登山

Sep 17, 2022【新北烏來】離台北最近的淨土。桶後林道全程24.7公里徒步健行|桶後溪的美景就是看不膩

Sep, 2021【苗栗南庄】蓬萊林道Off Road小試|雨後很爛很濕滑|二傳低底盤車勿輕易嘗試

【美國加州】加州一號公路自駕遊~Half Moon Bay、17 Mile Drive、Bixby Greek Bridge、Big Sur、McWay Falls、Elephant Seal Rookery

Mar 12, 2022【重機一日遊】走北橫至宜蘭,經梨山、武嶺下埔里,再走台三線回桃園|16小時的半圈環島

Feb 2023【台中和平】裡冷林道Off Road單車野營~順登谷關七雄之首八仙山!單車+野營+登山,三個願望一次滿足

Nov 26, 2022【台中鍋物】深紅汕頭鍋物~北屯崇德店,台中CP值超高海陸火鍋

Jan 2023【台中和平】幽靜舒適的大雪山200林道健行~順登北三錐山(標高2,689m)

文章列表

聯絡我

名稱

以電子郵件傳送 *

訊息 *