Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

rurban (7989)

  reversethis-{ta.yar-x} {ta} {nabrur}

cygwin maintainer for perl, parrot, clisp, postgresql, ... and some perl modules (perl-libwin32, perl-Win32-GUI). Has also some hairy CPAN packages: B::C, B::Generate, C::DynaLib, B::Debugger ...

Journal of rurban (7989)

Friday July 11, 2008
09:43 AM

pugs installation on cygwin

[ #36897 ]

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
    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 /cygdrive/c/ghc/ghc-6.8.3/bin/*; do ln -s $f /usr/local/bin/; done

Download and install Cabal required for cabal-install. Cabal-, which comes with ghc-6.8.3, is not new enough. Sigh.
Cabal tar.gz packages at

tar xfz Cabal-
cd Cabal-
runhaskell ./Setup.hs configure --ghc
runhaskell ./Setup.hs build
runhaskell ./Setup.hs install
cd ..

# Get zlib and HTTP, two required deps for cabal-install:

tar xfz HTTP-3001.0.4.tar.gz
cd HTTP-3001.0.4.tar.gz
runhaskell ./Setup.lhs configure --ghc
runhaskell ./Setup.lhs build
runhaskell ./Setup.lhs install
cd ..

tar xfz zlib-
cd zlib-
runhaskell ./Setup.hs configure --ghc
runhaskell ./Setup.hs build
runhaskell ./Setup.hs install
cd ..

# now get cabal-install, which is the haskell version of CPAN.

wget 5.1.tar.gz
tar xfz cabal-install-0.5.1.tar.gz
cd cabal-install-0.5.1
runhaskell ./Setup.hs configure --ghc
runhaskell ./Setup.hs build
runhaskell ./Setup.hs install
cd ..

# copy the installed bin\cabal.exe to /usr/local/bin/
cp /cygdrive/c/Program\ Files/Cabal/.../bin/cabal.exe /usr/local/bin/
# 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 ./Setup.hs configure --ghc
# => stupid error
joe regex-base.cabal
# add Build-Type: Simple
# after Tested-With:
# Ctrl-k x
runhaskell ./Setup.hs configure --ghc
runhaskell ./Setup.hs build
runhaskell ./Setup.hs install
cd ..

# and continue...
cabal install Pugs

# dada!
cp 'C:\Program Files\Haskell\bin\pugs.exe' /usr/local/bin/


      ______ /\ __ \
  \ \ \/\ \ __ __ ______ ______ (P)erl 6
    \ \ __//\ \/\ \/\ __ \/\ ___\ (U)ser's
      \ \ \/ \ \ \_\ \ \ \/\ \ \___ \ (G)olfing
        \ \__\ \ \____/\ \____ \/\_____\ (S)ystem
          \/__/ \/___/ \/___/\ \/____/ /\____/ Version:
                                              \/___/ Copyright 2005-2008, The Pugs Contributors
  Web: Email:

Welcome to Pugs -- Perl6 User's Golfing System
Type :h for help.

Loading Prelude... done.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.