2013/05/20

Update your MacPorts :D

剛剛有人問我說要怎樣更新 MacPorts 裝好的套件,
其實最簡單的作法就是以下三步驟:
  1. sudo port selfupdate
  2. sudo port outdated
  3. sudo port upgrade outdated

至於其他指令,
我還是建議去官方網頁看說明手冊~

http://guide.macports.org/

回答完畢!

2013/05/06

WCSTools Quick Installation

I know someone will ask me about this very soon,
so I write down my steps here:
  • Visit http://tdc-www.harvard.edu/wcstools/
  • Download the source code via http://tdc-www.harvard.edu/software/wcstools/wcstools-3.8.7.tar.gz
  • Switch to ROOT, then copy the installing file to /usr/local/bin
  • Unzipped it, removed the GZ file, and jumped into the new folder
  • Run `make all`
  • Edit your startup file (e.g: .profile) and insert the words below:
    • export WCSTOOLS="/usr/local/bin/wcstools"
    • export PATH="/usr/local/bin/wcstools/bin:$PATH"
  • Restart your terminal and you will find those WCSTools commands :P
Enjoy it!