Macã®ã¯ãªã¼ã³ãªã»ããã¢ãããããRubyã®éçºç°å¢æ§ç¯ã¾ã§
家ã®Macã§å°ãä¸å
·åãåºã¦ãã¾ã£ã¦ããã®ã§ãæãåã£ã¦ã¯ãªã¼ã³ã¤ã³ã¹ãã¼ã«ãå®è¡ã
å®ã¯æ°é±éãä¼æ¥ã®æéãå²ãã¦ããã¯ã¢ããä½æ¥ããããã¦ãã¾ããï½
ToDo
- ããã¯ã¢ãã
- ã¯ãªã¼ã³ã¤ã³ã¹ãã¼ã«
- ã½ããã¦ã§ã¢ã¢ãããã¼ã
- ã·ã¹ãã ç°å¢è¨å®ã»ãã®1åºç¤è¨å®ç·¨
- ã·ã¹ãã ç°å¢è¨å®ã»ãã®2æ¡å¼µè¨å®ç·¨
- ã½ããã¦ã§ã¢ã¤ã³ã¹ãã¼ã«
- éçºç°å¢
ããã¯ã¢ãã
ããã¯ã¢ããã¯ä»¥ä¸ã®æ¹æ³ã§
- ãã¡ã¤ã«ãµã¤ãºã®å¤§ããç©ã¯ãå¤ä»ããã¼ããã£ã¹ã¯ã¸ã
- ãã¡ã¤ã«ãµã¤ãºã®å°ããç©ã¯ãDropboxã«ç§»åã
- ãã©ã¦ã¶ã®ããã¯ãã¼ã¯ã¯xmarksãå©ç¨ã
- ã¢ããªã³ã¯ãããªã«ä½¿ã£ã¦ãªãã®ã§ãEvernoteã®ã¡ã¢ã§æ¸ã¾ããã
- éçºç°å¢ã®è¨å®ãã¡ã¤ã«ï¼zshrcã¨ãï¼ã¯githubçµç±ã§ã
- ã¤ã³ã¹ãã¼ã«ãã¦ããã¢ããªã±ã¼ã·ã§ã³ï¼ç°å¢è¨å®é ç®ã¯ãEvernoteã«ã¡ã¢ããã
ã¯ãªã¼ã³ã¤ã³ã¹ãã¼ã«
id:amachangã®è¨äºãè¦ãªããã¯ãªã¼ã³ã¤ã³ã¹ãã¼ã«ã
OSã®ãã¼ã¸ã§ã³ãéããã©ãæ°ã«ããªãã
Macbook (with Snow Leopard) è²·ã£ãå¾ã«ãã£ããã¨ã¾ã¨ã
http://d.hatena.ne.jp/amachang/20090926/1253982602
- èªåã¡ã¢
- ï¼ãªããï¼èªåã¯è±èªç°å¢ã好ãã§ä½¿ã£ã¦ããã®ã§ããã¼ãã¼ãã¯U.S.ãã¼ãã¼ããè¨èªç°å¢ã¯è±èªãã¨ããè¨å®
- ã¯ã£ããè¨ã£ã¦ä½ãå°ããªãã
- ç¹ã«Macã ã¨ãè±èªç°å¢ã§ã»ããã¢ãããã¦ããæ¥æ¬èªã対å¿ãã¦ããã
- ãããã·ã³ãã«ã«ãªãã
- æ¥æ¬èªæªå¯¾å¿ã®ã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ãããã¨ãããã®ã§ãç°å¢ã¯æ¥æ¬èªã§ãªãã¦è¯ãã
ã½ããã¦ã§ã¢ã¢ãããã¼ã
ãããid:amachangã®è¨äºãã®ã¾ã¾ã
ã»ãã¥ãªãã£ã¢ãããã¼ãå«ããè²ã
ã¨ã¢ãããã¼ããããã®ã§å¿
é ã
æéã¯ãã£ã¡ããããããã®éã«å¯ã¦ãã¾ãï¼
ã·ã¹ãã ç°å¢è¨å®ã»ãã®1åºæ¬è¨å®ç·¨
ãããid:amachangã®è¨äºããã®ã¾ã¾åèã«ã
è¨å®å¤ã¯ã好ã¿ã§ã
OSã®ãã¼ã¸ã§ã³ãéãã®ã§ãè¨å®å¤ãè¨å®é
ç®ã«ãããå·®ç°ããããã©ãæ°ã«ããªãã
CapsLockãã¼ã¯åºæ¬ä½¿ããªãã®ã§ãéæ»ctrlãã¼ã¸ãªãããããã¼ãã¼ãã¨ãã¦ã¹ã®è¨å®ããå¤æ´ã
å¤ä»ããã¼ããã£ã¹ã¯ã«ãã¼ãã£ã·ã§ã³ãåã£ã¦ãTimeMachineã®è¨å®ããã¦ããã
ã·ã¹ãã ç°å¢è¨å®ã»ãã®2æ¡å¼µè¨å®ç·¨
ãã¼ãªãã¼ããæ©ãããç°å¢è¨å®é ç®ãèµ·åé³ãæ¶ãç°å¢è¨å®ãå ¥ããã
- Googleæ¥æ¬èªå
¥å
- http://www.google.co.jp/intl/ja/ime/
- ãã¨ããããããã©ãè£å®æ©è½ã®å¼·ãã§Googleæ¥æ¬èªå ¥åãã¤ã³ã¹ãã¼ã«
- Growl
- http://growl.info/
- ã¢ããªã±ã¼ã·ã§ã³ã¨é£åãã¦ããããªãã¨ãéç¥ãã¦ããã便å©ãªåã
- dmgããã±ã¼ã¸å ã®extrasãã£ã¬ã¯ããªã«ããgrowlnotifyã追å ã§ã¤ã³ã¹ãã¼ã«ãã¦ããã¨ãã³ãã³ãã©ã¤ã³ããèªä½ããã°ã©ã ãããéç¥ã§ããããã«ãªãã
- StartupSound.prefPane
- http://www5e.biglobe.ne.jp/~arcana/StartupSound/BETA/
- Macãèµ·åããã¨ãã®ãã¸ã£ã¼ã³ãã£ã¦ããèµ·åé³ãæ¶ãã¦ãããã¤ã±ã¦ãå
- åå¼·ä¼ã¨ãã«è¡ã£ã¦ãMacèµ·åãã¦ãã¸ã£ã¼ã³ãã¨ãçµæ§ããºã¤ã§ã
- KeyRemap4MacBook
- http://pqrs.org/macosx/keyremap4macbook/
- ãã¼ãªãã¼ãã¹ãã¼ãã®è¨å®ã¨ãã§ããè³¢ãå
ã½ããã¦ã§ã¢ã¤ã³ã¹ãã¼ã«
ããããã¨ã½ããã¦ã§ã¢ãå ¥ãã¦ãã
å¹çåç³»
- Quicksilver
- http://www.blacktree.com/
- ã¢ããªã±ã¼ã·ã§ã³ã©ã³ãã£ã¼ã®é«æ©è½ç
- 使ãæ¹ã¯ãMacã®ææ¸ã説ææ¸ãããã¿ã¦ãã ããã
- http://veadardiary.blog29.fc2.com/blog-entry-447.html
- InputSwitcher
- http://limechat.net/inputswitcher/index_ja.html
- MacOSX10.5ã¨ãã ã¨ãIMEã®å ¥åã½ã¼ã¹ã®ç¶æ ãã¢ããªã±ã¼ã·ã§ã³æ¯ã«ä¿æãã¦ããã¦ããªã
- Quicksilver使ãã¨ãã¨ãããããªãã¨ããã¦ãªãã
- ããããã¾ãä¿æãã¦ããã¦ãããããåã
- SIMBLãã©ã°ã¤ã³ãªã®ã§ãSIMBLãå ã«ã¤ã³ã¹ãã¼ã«ãã¾ãã
- ãããããã¯çãªTips
- Quicksilverã§IMEã®å ¥åã½ã¼ã¹ã®ç¶æ ãä¿æããããã¨ããã¨ãæåãã¾ããããªããã¨ãããã
- Quicksilverã®ã¢ã¤ã³ã³ãdockã«è¡¨ç¤ºãã¦ããããã«ããã¨ãåé¡ãªãä¿æãã¦ããã¦ãããã
- iStat Menus
- http://bjango.com/mac/istatmenus/
- Menuãã¼ã«CPUã®ç¶æ ããã温度ãããã¡ã¢ãªã®ä½¿ç¨éããã表示ãã¦ãããã
- ææçã ãã©ãå人çã«ã¯ç´å¾ã®å¤æ®µã
- Dropbox
- http://www.dropbox.com/
- ãã¡ã¤ã«å ±æã®ããã§ããã
- èªåãªããSugarSyncããã¾ããããªãã£ãã®ã§ãDropbox使ã£ã¦ã¾ãã
- Evernote (using beta version)
- http://www.evernote.com/
- æåãªããã§ããã
- ã¤ã³ã¹ãã¼ã«ãããEvernoteã®ç°å¢è¨å®ããã½ããã¦ã§ã¢ã¢ãããã¼ãã®è¨å®ã§ãbetaãã¼ã¸ã§ã³ã使ãçãªè¨å®ããã¦ããã¨ãåæã«betaãã¼ã¸ã§ã³ã«ãã¦ãããã
- Divvy
- http://mizage.com/divvy/
- ã¦ã£ã³ãã¦ã®ãµã¤ãºãã°ãªãããé¸ãã§å¤æ´ã§ãããã¨ããããæãã®ãã®
- ææçã ãã©ãèµ·åæã«Demoãæ¼ããã¨ã§ãï¼å¤åï¼ãã£ã¨ç¡æã§ä½¿ãã
- ã·ã§ã¼ãã«ãããã¼ãè¨å®ã§ããã®ã§ãããæãã
- DejaMenu
- http://homepage.mac.com/khsu/DejaMenu/DejaMenu.html
- Macã ã¨ç»é¢ä¸é¨ã«è¡¨ç¤ºããã¦ããã¡ãã¥ã¼ãã¼ã
- ãã®é ç®ãã·ã§ã¼ãã«ãããã¼ã使ã£ã¦ããããã¢ããã§ãã®å ´ã«è¡¨ç¤ºãã¦ãããåªããã®
- ãã°ã¤ã³æã«èµ·åãèªåã§è¨å®ããªãããããªãã®ã§ãç°å¢è¨å®ããã¢ã«ã¦ã³ãã¸é²ãã§ãã°ã¤ã³é ç®ã«è¿½å ãã¾ãã
ã¦ã¼ãã£ãªãã£ç³»
- ClamXav
- http://www.clamxav.com/
- ç¡æã§ãã¤ã¤ã±ãã«ãã¦ã£ã«ã¹ã¹ãã£ãã¼
- é§å±¯ããã¦ããå ´åãããããè¨å®ãå¤æ´ãã¾ãã
- ãã°ãã¡ã¤ã«ã¯è¦ãªãã®ã§ããªããã¾ãã
- ãã¹ã¦ã®ãã£ã¬ã¯ããªãç£è¦å¯¾è±¡ã«ãã¦ãã¾ãã¨ãã¡ã¢ãªããããã¨å°ãã®ã§ãçµã£ã¦è¨å®ãã¾ãã
- Macã«ã¯ããã±ã¼ã¸ç®¡çãã¨ããèãæ¹ã¯ãªãã®ã§ãã¢ãããã¼ãã®ä¸æ¬ç®¡çã¨ã¢ã³ã¤ã³ã¹ãã¼ã«ã¦ã¼ãã£ãªãã£ãã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã
- AppCleaner
- AppFresh
- å§ç¸®ãã¡ã¤ã«ã®è§£åã¦ã¼ãã£ãªãã£ãããã¦ããã¾ãã
- StuffItExpander
- http://www.stuffit.com/mac-expander.html
- ç¡æçã§OKã
- The Unarchiver
- http://wakaba.c3.cx/s/apps/unarchiver.html
- ãã¾ã«Stuffitã§è§£åã§ããªããã®ãããã®ã§ãä¸å¿ããã¦ããã¾ãã
- StuffitExpanderã®æ¹ãæåã ãã©ãUnarchiverã ãã§å®ã¯OKã ã£ããããã®ããªï¼
ãã©ã¦ã¶
- Chrome
- https://sites.google.com/a/chromium.org/dev/getting-involved/dev-channel
- devçãã¤ã³ã¹ãã¼ã«ãã¾ãã
- extensionsã¯ãAutoPatchworkã¨xmarksãããããªã
- ä¼ç¤¾ã ã¨ãæ¥ååãã«ããå°ãããããå ¥ãã¦ãã
- ãã¨ãAndroidã®ãã¼ãã«ããã¨ãAndroidãã²ããã£ã¨é¡ãåºãã¦ãã¦ãããã
- https://chrome.google.com/webstore/detail/oeljdmeofcikjblcoehpmdnooimalbmj
- Firefox
- vimperatorã使ããããããã«ãã¾ã firefox4ã«ã¯ç§»è¡ããªã
- add-onsã¯ä»¥ä¸ã®ãããªæãã
- AutoPager
- firebug
- xmarks
- hatena bookmark
- multi links
- vimperator
- XUL/migemo
- SpeedyFox
- http://veadardiary.blog29.fc2.com/blog-entry-3104.html
- Firefoxã®ã´ãæé¤ããã¦ãããããåã
Vimperator
ãæ°ã«å ¥ãã¯ã以ä¸ã®ãã©ã°ã¤ã³
- ime_controller.js
- migemo_find.js
- migemo_hint.js
- feedsomekey_2.js
- _smooziee.js
- copy.js
- char_hints_mod2.js
- bookmarktoolbar-hint.js
wget http://coderepos.org/share/export/38806/lang/javascript/vimperator-plugins/trunk/ime_controller.js wget http://coderepos.org/share/export/38806/lang/javascript/vimperator-plugins/trunk/migemo-find.js wget http://coderepos.org/share/export/38806/lang/javascript/vimperator-plugins/trunk/migemo_hint.js wget http://coderepos.org/share/export/38806/lang/javascript/vimperator-plugins/trunk/feedSomeKeys_2.js wget http://github.com/vimpr/vimperator-plugins/raw/2.3/_smooziee.js wget http://coderepos.org/share/export/38806/lang/javascript/vimperator-plugins/trunk/copy.js wget http://coderepos.org/share/export/38806/lang/javascript/vimperator-plugins/trunk/char-hints-mod2.js wget http://coderepos.org/share/export/38806/lang/javascript/vimperator-plugins/trunk/bookmarktoolbar-hint.js
Officeä½æ¥ç³»
- iWork
- Keynoteï¼officeã§ããã¨ããã®ãã¯ã¼ãã¤ã³ãï¼ã¯æ群ã«ã¤ã±ãã¾ãã
- ææã§ãè²·ã価å¤ãã
- Tree
- http://www.topoftree.jp/tree/
- ãã¡ããã¡ãã¤ã±ãã«ãã¢ã¦ãã©ã¤ã³ããã»ããµã¼
- ææçã§å°ãé«ãã®ã ãã©ããããªã³ã¹ããªã©æ°ã«ãªããªããããã®å¿«é©ããä¸ãã¦ãããã
ã¡ãã£ã¢ç³»ï¼éå¿ é ï¼
- Tune-up iTunes
- http://desireforwealth.com/software.shtml
- "ãããã¨ããã«æãå±ã"è¨å®ç³»ã®ã¢ããªã±ã¼ã·ã§ã³
- iTunesã®è¨å®ãã§ãã¾ãã
- å人çã«ã¯ãiTunesãã¸ã£ã³ã«ã¨ããåæã«ãã¼ã«ã©ã¤ãºï¼ãRockãããããã¯ãã«ããããã¨ãï¼ããã®ãå«ããªã®ã§ãããããªãã«ãã¦ãã¾ãã¾ããããã ãã«ä½¿ã£ã¦ã¾ãã
- VLC
- http://www.videolan.org/vlc/
- ããªãã¤ã±ãã«ãããªåçã¢ããªã±ã¼ã·ã§ã³ã
- Flip4Mac
- http://windows.microsoft.com/ja-jp/windows/products/windows-media-player/wmcomponents
- macã§ãwmvå½¢å¼ã®ãããªãã¡ã¤ã«ãåçã§ããããã«ãã¾ã
- perian
- http://perian.org/
- quicktimeãã¬ã¤ã¤ã¼ã«CODECã追å ãã¦ãããã¤ã±ãã«åã
éçºç°å¢
ãã£ãã¨ã»ããã¢ãããã¦ããã¾ãã
ColorPreference
http://niw.at/articles/2007/11/02/TerminalColoreopard/ja
Terminalã®ANSIã«ã©ã¼ãå¤æ´ãã¦èªå好ã¿ã«è¦ããããã¦ãããããæãã®è¨å®ãã©ã°ã¤ã³ã§ã
å人çã«ã¯ãBrightã§è¨å®ããã¦ããè²ããã©ãã°ããããã§ãBrightã§ãªãè²ã«ãè¨å®ãã¦ãã¾ããã¨ã§è¦ããããªãæ°ããã¾ã
SIMBLEãã©ã°ã¤ã³ãªã®ã§ãSIMBLã®ã¤ã³ã¹ãã¼ã«ãã¾ã ã®å ´åãå
ã«SIMBLãã¤ã³ã¹ãã¼ã«ãã¾ã
REDã¨ãBLUEã®è²ã調æ´ãã¦ãããã¨ãã ãã¶æ¥½ï¼terminalã®ã¦ã£ã³ãã¦è¨å®ãproã®å ´åï¼
Xcode
OSXã®DVDããXcodeToolsãå ¥ãã¦ããã¾ã
zsh
http://www.zsh.org/
ã¨ãããããshellã®ç°å¢ãbashããzshã«å¤ãããã®ã§ãzshããä½æ¥ãã¾ãã
source forgeããzshã®ææ°çããã¦ã³ãã¼ã
terminalãç«ã¡ä¸ãã¦ä»¥ä¸ã®ããã«ã¤ã³ã¹ãã¼ã«
% cd ~/src $ tar xzvf zsh-4.3.10.tar.gz $ cd zsh-4.3.10 $ ./configure --enable-multibyte --enable-locale $ make $ sudo make install
zsh-4.3.10ã/usr/local/binãããã«ã¤ã³ã¹ãã¼ã«ããã¾ãã
ããããããshellãå¤æ´ãã¾ãã
$ chsh
ãã¹ã¯ã¼ããæ±ããããã®ã§ãå
¥å
ã¨ãã£ã¿ç»é¢ã§ãShell: ã®ã¨ããã«ãzsh-4.3.10ã®ãã¹ãå
¥åãã¦ä¿åã
# Changing user information for takayukisugita. # Use "passwd" to change the password. ## # Open Directory: /Local/Default ## Shell: /usr/local/bin/zsh-4.3.10 Full Name: takayukisugita Office Location: Office Phone: Home Phone:
terminalãèµ·åããªããã¦zshã«ãªã£ã¦ããã°å®äºã
ä¸å¿ç¢ºèªã¨ãã¦ä»¥ä¸ã®ã³ãã³ãã§ä»ã®shellããªããªã®ãã確èªã
% echo $SHELL
paco
http://paco.sourceforge.net/
package管çããã¦ãããã¤ã±ãã«å
ã¨æã£ãããmacã ã¨åããªãï¼
http://d.hatena.ne.jp/mickey24/20081210/1228851077
ä»åã¯ä½¿ããªããã¨ã«ã
wget
http://www.rokujyouhitoma.com/javapg/2008/01/mac_os_x_105wget.html
macã«ã¯ï¼BSDã«ã¯ï¼ï¼wgetãããã©ã«ãã§ã¯å
¥ã£ã¦ããªãã®ã§ãwgetãå
¥ãã¦ããã¾ãã便å©ãªã®ã§
% cd ~/src % curl -O http://ftp.gnu.org/pub/gnu/wget/wget-1.9.tar.gz % tar xzvf wget-1.9.tar.gz % cd wget-1.9 % ./configure % make % make install
git
http://git-scm.com/
githubã§è¨å®ãã¡ã¤ã«ã®å¤ãã管çãã¦ããã®ã§ããã£ãã¨gitãã¤ã³ã¹ãã¼ã«ãã¾ãã
ã¨ããã¤ã¤ãããã¯ãããã¯ãsourceãããããã¨ã¼ããã¾ããã
åèã«ããã®ã¯ãhttp://www.msng.info/archives/2008/10/_git_mac_os_x.php
% cd ~/src % wget http://kernel.org/pub/software/scm/git/git-1.7.3.5.tar.bz2 % tar xvf git-1.7.3.5.tar.bz2 % cd git-1.7.3.5 % ./configure % make prefix=/usr/local all % sudo make prefix=/usr/local install
ç§å¯éµã¨å ¬ééµ
githubã«ã¢ã¯ã»ã¹ããããã«ãç§å¯éµã¨å ¬ééµãã¤ããã¾ãã
% cd ~/.ssh % ssh-keygen -t rsa -C "hoge@fuga"
å
¬ééµãã³ãã¼ãã¦ãgithubã®ãµã¤ãã«è¨å®ãã¾ãã
http://github.com
% cat id_rsa.pub | pbcopy
ã¡ãªã¿ã«åã®è¨å®ãã¡ã¤ã«ã¯https://github.com/sugilog/dotfilesã«ããã¾ãã
% cd ~ % git clone [githubã®sshã¢ãã¬ã¹]
è¨å®ãã¡ã¤ã«
zshã¨ãvimã¨ãã»ãããããã§è¨å®ãã¡ã¤ã«ãåæ ããããã®ã§githubã§ç®¡çãã¦ããdotfilesã«ã·ã³ããªãã¯ãªã³ã¯ãã¯ãã¾ãã
å
·ä½çã«ã¯ããã¼ã ãã£ã¬ã¯ããªç´ä¸ã«ã.ãªãã¨ãrcã£ã¦ãã¡ã¤ã«ãããç¶æ
ã«ãã¾ãã
% ln -s dotfiles/.zshrc
terminalãåèµ·åãã¦ãããã¨ã.zshrcãåæ ããã¦ãã¾ãï¼ããã
ã¡ãªã¿ã«è¤æ°ç°å¢ã使ã£ã¦ããé¢ä¿ã§ãç°å¢ã«åãããè¨å®ã¯ã.zshrc.localã¨ãããã¡ã¤ã«ã«åãã ãã¦ãã¾ãã
æ
ã«ã以ä¸ã®ã³ãã³ãã追å ã§ãã¦ããã¾ãã
% touch .zshrc.local
vim
ããã¯èªåã®ããã°ã«æ®ãã¦ãã£ãã
http://d.hatena.ne.jp/sugilog/20100909/1284037843
ææ°ã®Vimã使ãããï¼
% cd ~/src % wget http://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2 % tar jxfv vim-7.3.tar.bz2 % mkdir vim73/patches % cd vim73/patches % wget http://ftp.vim.org/pub/vim/patches/7.3/7.3.{001..107} % cd ../ % cat patches/7.3.* | patch -p0 % ./configure --prefix=/usr/local --enable-multibyte --with-features=huge % make % sudo make install
tscreen
http://d.hatena.ne.jp/willnet/20090714/1247564755
http://d.hatena.ne.jp/LukeSilvia/20090713/p1
縦åå²ãã§ããscreenãå
¥ãã¦ããã¨çµæ§ä¾¿å©ãªã®ã§ãããã¦ããã¾ãã
% cd ~/src % wget http://www.steve.org.uk/Software/tscreen/dist/tscreen-0.4.9.tar.gz % tar xzf tscreen-0.4.9.tar.gz % cd tscreen-0.4.9
ä¸ã®id:lukesilviaããã®ããã°ã§ç´¹ä»ããã¦ããpatchãå½ã¦ã¾ãã
ãããããã¨ã¯
% ./configure --prefix=/usr/local % make % sudo make install
MacPorts
http://www.macports.org/install.php
http://lapangan.net/darwinports/index.php?TheMacPortsWiki/InstallingMacPorts
MySQLã®ã¤ã³ã¹ãã¼ã«ã¯ãMacPortsã使ã£ãã»ãã楽ï¼ã³ã±ãªãï¼ã®ã§ãportãå
¥ãã¦ãã
% vi .zshrc.local
ç°å¢å¤æ°ãè¨å®ãã¾ã
export PATH=/opt/local/bin:/opt/local/sbin:$PATH export DISPLAY=:0.0
MacPortsæ¬ä½ãã½ã¼ã¹ãããããã¨ã¼ããã¾ãã
% cd ~/src % wget http://distfiles.macports.org/MacPorts/MacPorts-1.9.2.tar.gz % tar xzvf MacPorts-1.9.2.tar.gz % cd MacPorts-1.9.2/ % ./configure % make % sudo make install
ã¤ã³ã¹ãã¼ã«ã§ããããupdateãã¦ããã¾ãã
sudo port -v selfupdate
mysql
portã§ããããããã¦ããã¾ã
sudo port install mysql5-server sudo port load mysql5-server #startupã®è¨å® sudo -u _mysql mysql_install_db5 #ãã¼ã¿ãã¼ã¹ã®åæè¨å®
mysqlã§èµ·åããªãã¦ãmysql5ã§èµ·åããå ´åãã·ã³ããªãã¯ãªã³ã¯ãã¯ã£ã¦ããã¾ãã
which mysql5 #=> /opt/local/bin/mysql5ã ã£ãã¨ãã¦ã sudo ln -s /opt/local/bin/mysql5 /opt/local/bin/mysql
ruby
http://blog.s21g.com/articles/1600
æ¬ä½ã®rubyãå
¥ãããã¨ãããã1.8.7ã§ã
% cd ~/src % wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p330.tar.gz % tar xzvf ruby-1.8.7-p330.tar.gz % ./configure --enable-shared --enable-pthread --with-readline-dir=/usr/local CFLAGS=-D_XOPEN_SOURCE=1 % make % sudo make install
æ¥æ¬èªå ¥åã¾ããã§ãããã®ã§ãportããreadlineãå ¥ãã¦ã¿ãã
% sudo port install readline
ãã©ãã¾ã ãããã®ã§ãã¬ãªããã®è¨ãã¨ããã«å ¥ãã¦ã¿ã
% wget ftp://ftp.cwru.edu/pub/bash/readline-6.1.tar.gz % tar xzf readline-6.1.tar.gz % cd readline-6.1 % ./configure --enable-multibyte --enable-shared % make % sudo make install
å度rubyã./configureããã¯ãããã
ã¨ããªã«ãã./configureã§WARNINGã
configure: WARNING: unrecognized options: --with-readline-dir
http://d.hatena.ne.jp/willnet/20090131/1233411175
ãããªããªã£ãï¼
ã¡ãªã¿ã«ãirb --noreadline -Kuãã§å®è¡ãã¦ã¿ãããã¾ãæ¥æ¬èªå
¥åãã§ãã
readlineã¾ããã§ããã£ããªm(__)mï¼ãã¨ã§rvmãããã®ã§ãã¡ããåèã«ï¼
gem
ããã©ã«ãã§ã¤ã³ã¹ãã¼ã«ããã¦ããï¼gemãã¡ãã£ã¨ããããæ°ãããã®ã§ããã¡ããããã¦ããã¾ãã
ãªãããgem envã¨ãã£ã¦ãã§ã¦ããrubyã®ãã¼ã¸ã§ã³ã1.8.6ï¼ï¼ï¼ãã¼ã
RubyGems Environment: - RUBYGEMS VERSION: 1.0.1 (1.0.1) - RUBY VERSION: 1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
ã¨ãããããä»å ¥ã£ã¦ããgemãã®ãã¦ããã¾ã
% sudo mv /usr/bin/gem /usr/bin/gem_origin
ãã¨ã¯RubyGems.orgãããã¦ã³ãã¼ããã¦ã¤ã³ã¹ãã¼ã«
% cd ~/src % wget http://production.cf.rubygems.org/rubygems/rubygems-1.5.2.tgz % tar xzvf rubygems-1.5.2.tgz % cd rubygems-1.5.2 % sudo ruby setup.rb
ææ°çã®gemã«ãªãã¾ãã
rvm
railsãå
¥ããåã«ãããã ï¼ã¨æãåºãã¦ãrvmãå
¥ãã¦ã¿ããã¨ã«ã
http://d.hatena.ne.jp/hrsth/20100523/1274590336
ã»ã¨ãã©ããã®ã¾ãã¾å®è¡ãã¦å®äº
shellã®è¨å®ãã¡ã¤ã«ã«è¿½è¨ããå
容ãå°ãå¤ãã£ã¦ããã
-s "$HOME/.rvm/scripts/rvm" && source "$HOME/.rvm/scripts/rvm" # This loads RVM into a shell session.
ãã¡ãããã®ã¾ã¾ã§ããã¾ããï¼å¤±ç¤¼ãã¾ããï¼
if [[ -s ${HOME}/.rvm/scripts/rvm ]] ; then source ${HOME}/.rvm/scripts/rvm ; fi
gihyoããã®ãããªé£è¼ã
ã¡ãªã¿ã«èª¤è§£ãçã¾ãªãããã«ãbashã¹ã¯ãªããã£ã¦æ¸ãã¦ãããã©zshã§ã使ãã¾ã
http://gihyo.jp/dev/serial/01/ruby/0039
ãããã«ãrvmã§rubyã®ã¤ã³ã¹ãã¼ã«ãã¦ã¿ãã
% rvm list known
ruby-headï¼ææ°ï¼ãå ¥ãã¦ã¿ã
% rvm install ruby-head -C "--enable-shared=true,--with-opt-dir=/opt/local"
irbã®æ¥æ¬èªå
¥åãã¡ããã¨ããã¦ã¾ãã
ããããã¯GemSetsãå©ç¨ãã¦railsç°å¢ãä½ãã¾ã
rails
http://gihyo.jp/dev/serial/01/ruby/0040
å¼ãç¶ãgihyo.jpã®è¨äºãåèã«ã
rvmã«ãããruby-1.8.7-p330ã®rails2ç¨ã®gemsetãä½ãã¾ã
% rvm --create use ruby-1.8.7-p330@rails2
ãã¨ã¯é常ã®gemã®æä½
% gem install rails2
% rails -v Rails 2.3.11
ç¡äºå®äºã§ãï¼