Hi folks, I had trouble installing the Haskell Platform 2009.2.0.2 from source on Ubuntu 9.04 with an existing GHC 6.10.4 installation. The problem was that some packages were already installed. The build.sh script was smart enough to avoid building packages that were already installed, but the install.sh script assumed all package directories would have been built. The fix is this patch:
36a37,42 > # Is this exact version of the package already installed? > is_pkg_installed () { > PKG_VER=$1 > grep " ${PKG_VER} " installed.packages > /dev/null 2>&1 > } > 40,43c46,53 < cd "${pkg}" || die "The directory for the component ${PKG} is missing" < echo "Installing ${pkg}..." < install_pkg ${pkg} < cd .. --- > if is_pkg_installed "${pkg}"; then > echo "Platform package ${pkg} is already installed. Skipping..." > else > cd "${pkg}" || die "The directory for the component ${PKG} is missing" > echo "Installing ${pkg}..." > install_pkg ${pkg} > cd .. > fi - Lyle
_______________________________________________ Haskell-platform mailing list Haskell-platform@projects.haskell.org http://projects.haskell.org/cgi-bin/mailman/listinfo/haskell-platform