[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.
Thanks!
-deech
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-1.1.0.2...
> Error:
> The mtl-1.1.0.2/Setup script does not exist or cannot be run
>
> And indeed mtl-1.1.0.2/Setup 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-2.2.1.4/Setup
> ./editline-0.2.1.0/Setup
> ./alex-2.3.1/Setup
> ./happy-1.18.4/Setup
> ./haskell-platform-2009.2.0.2/Setup
> ./fgl-5.4.2.2/Setup
> ./cgi-3001.1.7.1/Setup
> ./cabal-install-0.6.2/Setup
> ./HTTP-4000.0.6/Setup
> ./GLUT-2.1.1.2/Setup
> ./OpenGL-2.2.1.1/Setup
> ./zlib-0.5.0.0/Setup
> ./time-1.1.2.4/Setup
>
> Here is the current contents of my global and local packages:
> Global Packages:
> Cabal-1.6.0.3, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0,
> base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, containers-0.2.0.1,
> directory-1.0.0.3, (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-0.1.1.0, filepath-1.1.0.2,
> (ghc-6.10.4), ghc-prim-0.1.0.0, haddock-2.4.2, haskell-src-1.0.1.3,
> haskell98-1.0.1.0, hpc-0.5.0.3, html-1.0.1.2, integer-0.1.0.1,
> mtl-1.1.0.2, network-2.2.1.2, old-locale-1.0.0.1, old-time-1.0.0.2,
> packedstring-0.1.0.1, parallel-1.1.0.1, parsec-2.1.0.1,
> pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1,
> regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3,
> rts-1.0, stm-2.1.1.2, syb-0.1.0.1, template-haskell-2.3.0.1,
> time-1.1.4, unix-2.3.2.0, 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