åã㦠Unix ã®ã¢ã«ã¦ã³ãè²°ã£ã¦ãã°ã¤ã³ããã¨ããã¾ã£ãããªãã¼ã ãã£ã¬ã¯ããªãã©ã使ãã°ãããæ©ã¿ã¾ããã§ããï¼
ãã¡ãã好ãã«ããã°ãããã§ããããã¹ããã©ã¯ãã£ã¹ãç¥ããããªãã¨æãã¾ãããã¨ããããèªåã®ãæãã¦ã¿ã¾ãã
/home/*/local/
å人ç¨éã®ãã¼ã«ãã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ããªã
apt ã«ããã±ã¼ã¸ããªããã® (ãã£ã¦ãå¤ããããã®) ã§ã常ç¨ãã確信ããããã®ã対象ãã¡ãã£ã¨è©¦ãã¦ã¿ããã ããªããå¾è¿°ã® /home/*/work/local/ ã使ãã
å人ç¨éã®ãã¼ã«ã /usr/local/ ã«ã¤ã³ã¹ãã¼ã«ãããã¨ã¯ãªããããã¿ã« sudo ããããªãã®ã§ã*1
ã¼ãã®å ´åã¯ã主㫠ruby é¢ä¿ã®ãã¡ã¤ã« (ãªãªã¼ã¹ç) ãå ããã
$ ls local bin include lib share $ ls local/bin bundle erb ... ruby ...
/home/*/build/
/home/*/local/ ã«ã¤ã³ã¹ãã¼ã«ãããã¼ã«ããã«ããããã£ã¬ã¯ããªã
ãã«ããããã®ã¯ããã»ã©ãã£ã¹ã¯ãé¼è¿«ããªãéãæ¶ããªããlocal ãå£ããæã«ãmake install ã ãã§å¾©å
ã§ããã¨ãããªãã¨æã£ã¦ (å®éã«ãããªç¶æ³ã«ãªã£ããã¨ã¯ãªããã©) ããã¨ããã¼ã«ã«ä½ãåé¡ãèµ·ããæã«ã½ã¼ã¹ãããåç
§ã§ããã¨ãã¾ã«å¬ããã
$ ls build ... ruby-1.9.3-p125/ ruby-1.9.3-p125.tar.bz2 ...
/home/*/config/
dot.bashrc ãã dot.vimrc ãããç½®ãã¦ããã/home/*/.bashrc ãªã©ã¯ãããã¸ã®ã·ã³ããªãã¯ãªã³ã¯ã«ãªã£ã¦ããã
ããããæ§æã«ãªã£ã¦ãã®ã¯ãgit ã§ç®¡çãã¦ããããã¨ãã£ã¦ãè¨å®ã¯å¤§å«ããªã®ã§ã大ããå
容ã¯ãªãã
ããæ¸ãã¦ã¦æã£ããã©ã/home/*/work/config/ ã®æ¹ãããæ°ããã¦ããã
/home/*/work/
ä½æ¥ç°å¢ãå¥ã«ä»äºé¢ä¿ã®ãã®ã¨ã¯éããªããã¾ããã«ä½ãä½ããããªã£ãããã¾ããã®ä¸ã«ãµããã£ã¬ã¯ããªãä½ã£ã¦ãããgit clone ãã¦ããæã大æµããã
$ ls work Phun Rubinius jruby local ruby tmp walking ...
/home/*/work/local/
èªåã§ã½ã¼ã¹ãããã£ã (ãããå¯è½æ§ã®ãã) ãã¼ã«ã試ãã«ã¤ã³ã¹ãã¼ã«ãããã£ã¬ã¯ããªã
ãã®ãã£ã¬ã¯ããªã¯ä¸å®æã§å
¨æ¶å»ããã®ã§ã常ç¨ãããã®ã¯ã¤ã³ã¹ãã¼ã«ããªããPATH ãéãã¦ãªãã
ã¼ãã®å ´åã¯ä¸»ã« ruby-trunk é¢ä¿ãå
¥ãã
/home/*/work/tmp/
ææ°æã 㨠work ã«ãã£ã¬ã¯ããªãä½ã£ãããã©é£½ãããã®ã移åãããã¤ã¾ãããã¸ã§ã¯ãã®å¢å ´ã
è£è¶³
/home/*/work/ ã®ãµããã£ã¬ã¯ããªä»¥å¤ã«ã¯ããã¡ã¤ã«ããã£ã¬ã¯ããªãä½ãã¾ããã
â¦â¦ã¨ããã«ã¼ã«ãå³æ ¼ã«å®ããã°ããã®ã§ãããå®éã«ã¯è²ããªã¨ããã«ã´ããã¡ã¤ã«ã氾濫ãã¦ã¾ããt.c ã¨ã t.rb ã¨ã *.patch ã¨ãã¢ã¼ã«ã¤ãã¨ããæ´çãã§ããªãã¿ã¤ãã
*1:sudo gem install ã¨ãã¯ç¡é²åãããã¨æãã