This is how I managed to install latest pugs on cygwin. This is the same as for any platform without existing packages.
Download and install ghc from http://www.haskell.org/ghc/download.html
Note that from ghc 6.8 on Pugs will not compile OOTB, you'd need Cabal then.
This is a win32 native and goes into "c:/ghc/ghc-6.8.3"
Create symlinks in our path:
$ for f in ln -s
Download and install Cabal required for cabal-install. Cabal-1.2.4.0, which comes with ghc-6.8.3, is not new enough. Sigh.
Cabal tar.gz packages at http://hackage.haskell.org/cgi-bin/hackage-scripts/package/Cabal
wget http://hackage.haskell.org/packages/archive/Cabal/1.4.0.1/Cabal-1.4.0.1.tar.gz
tar xfz Cabal-1.4.0.1.tar.gz
cd Cabal-1.4.0.1
runhaskell
runhaskell
runhaskell
cd
# Get zlib and HTTP, two required deps for cabal-install:
wget http://hackage.haskell.org/packages/archive/HTTP/3001.0.4/HTTP-3001.0.4.tar.gz
tar xfz HTTP-3001.0.4.tar.gz
cd HTTP-3001.0.4.tar.gz
runhaskell
runhaskell
runhaskell
cd
wget http://hackage.haskell.org/packages/archive/zlib/0.4.0.4/zlib-0.4.0.4.tar.gz
tar xfz zlib-0.4.0.4.tar.gz
cd zlib-0.4.0.4
runhaskell
runhaskell
runhaskell
cd
# now get cabal-install, which is the haskell version of CPAN.
wget http://hackage.haskell.org/packages/archive/cabal-install/0.5.1/cabal-install-0
tar xfz cabal-install-0.5.1.tar.gz
cd cabal-install-0.5.1
runhaskell
runhaskell
runhaskell
cd
# copy the installed bin\cabal.exe to
cp
# and now it's getting easier:
cabal update
cabal install Pugs
# here I get a stupid regex-base-0.93.1 failure
# ghc version >=6.4 is required but it could not be found.
# The package locations are registered in C:\ghc\ghc-6.8.3\package.conf
cabal install -v regex-base
# verbose. aha, the cached tar.gz is deep there
cp 'C:/Doc..../regex-base-0.93.1.tar.gz' .
tar xfz regex-base-0.93.1.tar.gz
cd regex-base-0.93.1
runhaskell
# => stupid error
joe regex-base.cabal
# add Build-Type: Simple
# after Tested-With:
# Ctrl-k x
runhaskell
runhaskell
runhaskell
cd
# and continue...
cabal install Pugs
# dada!
cp 'C:\Program Files\Haskell\bin\pugs.exe'
pugs
______
\ \ \/\ \ __ __ ______ ______ (P)erl 6
\ \ __//\ \/\ \/\ __ \/\ ___\ (U)ser's
\ \ \/ \ \ \_\ \ \ \/\ \ \___ \ (G)olfing
\ \__\ \ \____/\ \____ \/\_____\ (S)ystem
\/__/ \/___/ \/___/\ \/____/
\/___/ Copyright 2005-2008, The Pugs Contributors
--------------------------------------------------------------------
Web: http://pugscode.org/ Email: perl6-compiler@perl.org
Welcome to Pugs -- Perl6 User's Golfing System
Type
Loading Prelude... done.
pugs>
pugs installation on cygwin 0 Comments More | Login | Reply /