[Haskell-beginners] [SOLVED] Issues With Install Script in Haskell Platform 2009.2.0.2

aditya siram aditya.siram at gmail.com
Fri Mar 12 19:26:08 EST 2010

It looks as though the Haskell platform install script doesn't like it
if you are overwriting an existing installation.

The problem is line 18 of scripts/install.sh:
[ -x Setup ] || die "The ${PKG}/Setup script does not exist or cannot be run"

So if the 'Setup' executable doesn't exist in a certain directory the
whole process errors. For my purposes I changed it to:
[ -x Setup ] || return 0

and things proceeded smoothly.


On 3/12/10, aditya siram <aditya.siram at gmail.com> wrote:
> Hi all,
> I am running Ubuntu Karmic Kameleon and GHC 6.10.4 and am having
> issues with the Haskell Platform 2009.2.0.2 source installer.
> The 'configure' and 'make' step work fine, but 'make install' errors with:
> scripts/install.sh
> Installing mtl-
> Error:
> The mtl- script does not exist or cannot be run
> And indeed mtl- does not exist. It appears that the
> 'make' step builds some packages and not others. The 'Setup'
> executable is only in the following package directories:
> ./network-
> ./editline-
> ./alex-2.3.1/Setup
> ./happy-1.18.4/Setup
> ./haskell-platform-2009.2.0.2/Setup
> ./fgl-
> ./cgi-3001.1.7.1/Setup
> ./cabal-install-0.6.2/Setup
> ./HTTP-4000.0.6/Setup
> ./GLUT-
> ./OpenGL-
> ./zlib-
> ./time-
> Here is the current contents of my global and local packages:
> Global Packages:
>     Cabal-, HUnit-, QuickCheck-, array-,
>     base-, base-, bytestring-, containers-,
>     directory-, (dph-base-0.3), (dph-par-0.3),
>     (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3),
>     (dph-seq-0.3), extensible-exceptions-, filepath-,
>     (ghc-6.10.4), ghc-prim-, haddock-2.4.2, haskell-src-,
>     haskell98-, hpc-, html-, integer-,
>     mtl-, network-, old-locale-, old-time-,
>     packedstring-, parallel-, parsec-,
>     pretty-, process-, random-,
>     regex-base-, regex-compat-, regex-posix-,
>     rts-1.0, stm-, syb-, template-haskell-,
>     time-1.1.4, unix-, xhtml-3000.2.0.1
> Local Packages:
>     haskelldb-0.13, haskelldb-hsql-0.10, haskelldb-hsql-sqlite3-0.10,
>     hsql-1.8.1, hsql-sqlite3-1.8.1

More information about the Beginners mailing list