It's a bug in the install.sh script. Here's the fix:<br><br><span style="font-family: courier new,monospace;">36a37,42</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">> # Is this exact version of the package already installed?</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">> is_pkg_installed () {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">> PKG_VER=$1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">> grep " ${PKG_VER} " installed.packages > /dev/null 2>&1</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">> }</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">40,43c46,53</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">< cd "${pkg}" || die "The directory for the component ${PKG} is missing"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">< echo "Installing ${pkg}..."</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">< install_pkg ${pkg}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">< cd ..</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">---</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">> if is_pkg_installed "${pkg}"; then</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">> echo "Platform package ${pkg} is already installed. Skipping..."</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">> else</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">> cd "${pkg}" || die "The directory for the component ${PKG} is missing"</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">> echo "Installing ${pkg}..."</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">> install_pkg ${pkg}</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">> cd ..</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">> fi</span><br style="font-family: courier new,monospace;"><br><div class="gmail_quote">On Fri, Sep 11, 2009 at 1:04 PM, Lyle Kopnicky <span dir="ltr"><<a href="mailto:lists@qseep.net">lists@qseep.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">OK, I was able to build the Haskell Platform on Ubuntu 9.04 with GHC 6.10.4. But when I try to install it, I get an error:<br>
<br><span style="font-family: courier new,monospace;">Registering haskell-platform-2009.2.0.2...<br>
Reading package info from "dist/inplace-pkg-config" ... done.<br>Writing new package config file... done.<br>**************************************************</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">* Building each component completed successfully. </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">* </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">* Now do "sudo make install" </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">**************************************************</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">lwk@lwk-desktop:~/downloads/haskell-platform-2009.2.0.2$ sudo make install</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">[sudo] password for lwk: </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">scripts/install.sh</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Installing mtl-1.1.0.2...</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Error:</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">The mtl-1.1.0.2/Setup script does not exist or cannot be run</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">make: *** [install] Error 2</span><br style="font-family: courier new,monospace;"><font color="#888888"><br>- Lyle<br>
</font></blockquote></div><br>