PugsãHardyã«æåã§ã¤ã³ã¹ãã¼ã«ãã
andLinuxã§ã¯aptã§ç°¡åã«Pugsãã¤ã³ã¹ãã¼ã«ã§ããã®ã«Hardyã§ã¯è¦ã¤ãããªãã£ããï¼ã¬ãã¸ããªç»é²ãã¦ãªãããããªï¼ã¨ãæã£ãã®ã§ããé¢åã ã£ãã®ã§æåã§å
¥ãã¾ããã
ãã£ãããªã®ã§æé ãæ®ãã¦ããã¾ãã
Pugsã£ã¦ï¼
ç¾å¨éçºä¸ã®Perl6ã®ã¤ã³ã¿ã©ã¯ãã£ãã·ã§ã«ã¨ãã¦æ©è½ãã¾ãã
ä¸èº«ã¯ãããããã¾ãããHaskellã§å®è£
ããã¦ãããããã§ãããããã£ã¦Haskellã®ããã±ã¼ã¸ãäºåã«ã¤ã³ã¹ãã¼ã«ãã¦ããå¿
è¦ãããã¾ããç§ã®Hardyã§ãHaskellã¯ã¡ããã¨ã¤ã³ã¹ãã¼ã«ããã¦ãã¾ããã
Pugsã®ãã§ãã¯ã¢ã¦ã
ã¾ãã¯ãã®è¾ºãçºãã¾ãï¼Perl6ï¼ã
ãã¼ã¸å·¦ã®ã¡ãã¥ã¼ã«Pugsã¨ãããªã³ã¯ãè¦ã¤ããã¾ããï¼Pugsï¼ã
ããã¦ãã®ã¡ãã¥ã¼ã«ãDownloadãã¨ãããªã³ã¯ãããã¾ãã»ã»ã»ãããªã³ã¯åãã¦ãããã§ãã幸ãã«ãã¡ã¤ã³ã«ã©ã ã«ãHow to get the codeãã¨ããã¾ããããã«Subversionã®ã¬ãã¸ããªã¸ã®ãªã³ã¯ããã£ãã®ã§ãããããã§ãã¯ã¢ã¦ããã¦ããã¾ããç§ã¯ã¡ã¤ã³ã¬ãã¸ããªããã§ãã¯ã¢ã¦ããã¾ããã
svn co http://svn.pugscode.org/pugs/
ãã§ãã¯ã¢ã¦ããã¦ä¸ãè¦ãã¨INSTALLã¨ãããã¡ã¤ã«ã転ãã£ã¦ã¾ãããä¸èº«ãè¦ãã¨ã»ã»ã»
2. Type the following commands:
cabal update
cabal install Pugs...and you're done.
cabalï¼Haskellä»å±ã®ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã©ã¿ãããªãã®ï¼ãè¦ããããï¼å ¥ã£ã¦ãªãï¼
ä¾åé¢ä¿ã®è§£æ¶:Cabalã®ã¤ã³ã¹ãã¼ã«
ããã¦
% apt-cache search cabal libghc6-cabal-dev - Haskell Common Architecture for Building Applications and Libraries
ã¨ããã®ãè¦ã¤ãã¦ã¤ã³ã¹ãã¼ã«ã試ã¿ã¾ããã
以ä¸ã®ããã±ã¼ã¸ã«ã¯æºãããªãä¾åé¢ä¿ãããã¾ã:
libghc6-cabal-dev: ä¾å: ghc6 (< 6.6.1+) ãããã6.8.2-2ubuntu1 ã¯ã¤ã³ã¹ãã¼ã«ããããã¨ãã¦ãã¾ã
E: å£ããããã±ã¼ã¸
ã»ã»ã»ï¼ghcã®ãã¼ã¸ã§ã³ãæ°ããããã¨è¨ããã¦ããï¼
ä»æ¹ãªãã®ã§cabalãæåã§ã¤ã³ã¹ãã¼ã«ãã¾ãã
cabalã¯The Haskell Cabalããå
¥æãã¾ããDownloadãã¯ãªãã¯ãã¦cabal-install-0.6.0.tar.gzãå
¥æã
READMEãèªãã§ã¾ãbootstrap.shãèµ°ããã¾ããä¾åããã±ã¼ã¸3ã¤ãèªåã§ãã¦ã³ãã¼ãã»ã¤ã³ã¹ãã¼ã«ãã¦ãããããã§ãã
cabalãã¤ã³ã¹ãã¼ã«ããã®ã«cabalãå¿
è¦ãªã¨ããããããããã§ãããã®æä½ãé常ã¦ã¼ã¶ã§ã§ãã¾ãã
% sh bootstrap.sh
èµ°ãããã¨ããã±ã¼ã¸ã®ä¾åé¢ä¿ããã¾ããããªãã¨è¨ããã¾ãããHTTP,networkãããããã¡ã®ããã§ããã
ä¾åé¢ä¿ã®è§£æ¶:HTTP,network
ããããããã§
% apt-cache search haskell | grep network % apt-cache search haskell | grep http
ã§æ¢ãåºãã¾ãã
% sudo apt-get install libghc6-network-dev libghc6-http-dev
ã§å ¥ã£ãããã§ããããä¸åº¦bootstrap.shãèµ°ããããæåãã¾ããã~/.cabal/binã«PATHãéãã¦ããã¾ãã
% export PATH=$PATH:~/.cabal/bin
æ¬é¡ã«æ»ã
å ã«æ»ã£ã¦Pugsãå ¥ãã¾ãããã£ãã®ã¯ã¼ãã³ã°ã³ãã¼ã¸ã
cabal update;cabal install Pugs
ããã§ã¤ã³ã¹ãã¼ã«ã§ãã¾ãããpugsã®ãã¤ããªã~/.cabal/binã«å ¥ã£ã¦ãã¾ãã
åä½ãã§ãã¯
% pugs ______ /\ __ \ \ \ \/\ \ __ __ ______ ______ (P)erl 6 \ \ __//\ \/\ \/\ __ \/\ ___\ (U)ser's \ \ \/ \ \ \_\ \ \ \/\ \ \___ \ (G)olfing \ \__\ \ \____/\ \____ \/\_____\ (S)ystem \/__/ \/___/ \/___/\ \/____/ /\____/ Version: 6.2.13.14 \/___/ Copyright 2005-2008, The Pugs Contributors -------------------------------------------------------------------- Web: http://pugscode.org/ Email: [email protected] Welcome to Pugs -- Perl6 User's Golfing System Type :h for help. Loading Prelude... done. pugs> "Hello World!".say; Hello World! pugs>
ããã§å¤§ä¸å¤«ããã§ããã