<div dir="ltr">I recently downloaded the ghc distribution for Linux (x86_64) and had difficulty installing to my machine.  The configure step seems to have completed successfully, but when I run the followup &quot;make install&quot;, it fails suggesting that I haven&#39;t run the configure command yet.  <br>

<div><br></div><div><div>atlas =&gt; ./configure --prefix=/opt/ghc</div><div>checking for path to top of build tree... /tmp/ghc-7.6.2</div><div>Build platform inferred as: x86_64-unknown-linux</div><div>Host platform inferred as: x86_64-unknown-linux</div>

<div>Target platform inferred as: x86_64-unknown-linux</div><div>GHC build  : x86_64-unknown-linux</div><div>GHC host   : x86_64-unknown-linux</div><div>GHC target : x86_64-unknown-linux</div><div>checking for perl... /rel/map/generic-2012.18.last/bin/perl</div>

<div>checking if your perl works in shell scripts... yes</div><div>checking for a BSD-compatible install... /usr/bin/install -c</div><div>checking whether ln -s works... yes</div><div>checking for gsed... sed</div><div>checking for gcc... /usr/bin/gcc</div>

<div>checking for gcc... /usr/bin/gcc</div><div>checking whether the C compiler works... yes</div><div>checking for C compiler default output file name... a.out</div><div>checking for suffix of executables... </div><div>
checking whether we are cross compiling... no</div>
<div>checking for suffix of object files... o</div><div>checking whether we are using the GNU C compiler... yes</div><div>checking whether /usr/bin/gcc accepts -g... yes</div><div>checking for /usr/bin/gcc option to accept ISO C89... none needed</div>

<div>checking version of gcc... 4.4.6</div><div>checking how to run the C preprocessor... /usr/bin/gcc -E</div><div>checking whether ld understands --hash-size=31... </div><div>checking whether ld understands --reduce-memory-overheads... </div>

<div>checking for extra options to pass gcc when compiling via C...  -fwrapv</div><div>checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and CPPFLAGS... done</div><div>checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done</div>

<div>checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done</div><div>checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done</div>

<div>checking for .subsections_via_symbols... no</div><div>checking whether your assembler supports .ident directive... yes</div><div>checking for GNU non-executable stack support... yes</div><div>checking for grep that handles long lines and -e... /bin/grep</div>

<div>checking for egrep... /bin/grep -E</div><div>checking for ANSI C header files... yes</div><div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... yes</div><div>checking for stdlib.h... yes</div><div>

checking for string.h... yes</div><div>checking for memory.h... yes</div><div>checking for strings.h... yes</div><div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes</div><div>checking for unistd.h... yes</div>

<div>checking size of void *... 8</div><div>checking for ar... /usr/bin/ar</div><div>checking whether /usr/bin/ar is GNU ar... yes</div><div>checking for ar arguments... q</div><div>checking whether ranlib is needed... no</div>

<div>configure: creating ./config.status</div><div>config.status: creating settings</div><div>config.status: creating mk/<a href="http://config.mk">config.mk</a></div><div>config.status: creating mk/<a href="http://install.mk">install.mk</a></div>

<div>****************************************************</div><div>Configuration done, ready to &#39;make install&#39;</div><div>(see README and INSTALL files for more info.)</div><div>****************************************************</div>

<div>                                                                                                                                        atlas =&gt; make install</div><div>make -r --no-print-directory -f <a href="http://ghc.mk">ghc.mk</a> install BINDIST=YES NO_INCLUDE_DEPS=YES</div>

<div><a href="http://ghc.mk:122">ghc.mk:122</a>: *** Please run ./configure first.  Stop.</div><div>make: *** [install] Error 2</div></div><div><br></div></div>