<div>I&#39;m using Mac OS X 10.6.</div><div><br></div>Sorry, everyone, for just dumping a bunch of terminal output here, but:<div>When I tried to install SDL-0.6.2 in Cabal, I ultimately end up with the same error:</div><div>
<br></div><div>&quot;</div><div><div>cm-macbookpro-3:roadmap colinmurphy$ cabal install -v SDL-0.6.2</div><div>/opt/local/bin/ghc --numeric-version</div><div>looking for package tool: ghc-pkg near compiler in /opt/local/bin</div>
<div>found package tool in /opt/local/bin/ghc-pkg</div><div>/opt/local/bin/ghc-pkg --version</div><div>/opt/local/bin/ghc --supported-languages</div><div>Reading installed packages...</div><div>/opt/local/bin/ghc-pkg dump --global</div>
<div>/opt/local/bin/ghc-pkg dump --user</div><div>Reading available packages...</div><div>Resolving dependencies...</div><div>selecting SDL-0.6.2 (hackage)</div><div>selecting base-3.0.3.1 (installed) and 4.1.0.0 (installed) and discarding</div>
<div>syb-0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2, 0.2.1, 0.2.2 and 0.3</div><div>selecting ghc-prim-0.1.0.0 (installed)</div><div>selecting integer-0.1.0.1 (installed)</div><div>selecting rts-1.0 (installed)</div><div>selecting syb-0.1.0.1 (installed)</div>
<div>In order, the following would be installed:</div><div>SDL-0.6.2 (new package)</div><div>SDL-0.6.2 has already been downloaded.</div><div>Extracting</div><div>/Users/colinmurphy/.cabal/packages/<a href="http://hackage.haskell.org/SDL/0.6.2/SDL-0.6.2.tar.gz">hackage.haskell.org/SDL/0.6.2/SDL-0.6.2.tar.gz</a></div>
<div>to /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837...</div><div>Creating</div><div>/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup</div><div>(and its parents)</div>
<div>/opt/local/bin/ghc --make /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/Setup.lhs -o /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup/setup -odir /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup -hidir /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup -i -i/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2 -package Cabal-1.6.0.3</div>
<div>[1 of 1] Compiling Main             ( /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/Setup.lhs, /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup/Main.o )</div>
<div><br></div><div>/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/Setup.lhs:2:2:</div><div>    Warning: In the use of `defaultUserHooks&#39;</div><div>             (imported from Distribution.Simple):</div>
<div>             Deprecated: &quot;Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2</div><div>             compatibility in which case you must stick with defaultUserHooks&quot;</div><div>Linking /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup/setup ...</div>
<div>ld: warning: -read_only_relocs cannot be used with x86_64</div><div>/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup/setup</div><div>configure --verbose=2 --ghc --prefix=/Users/colinmurphy/.cabal --user</div>
<div>--constraint=base ==3.0.3.1</div><div>Warning: defaultUserHooks in Setup script is deprecated.</div><div>Configuring SDL-0.6.2...</div><div>Dependency base &gt;=3 &amp;&amp; &lt;5 &amp;&amp; ==<a href="http://3.0.3.1">3.0.3.1</a>: using base-3.0.3.1</div>
<div>Using Cabal-1.6.0.3 compiled by ghc-6.10</div><div>Using compiler: ghc-6.10.4</div><div>Using install prefix: /Users/colinmurphy/.cabal</div><div>Binaries installed in: /Users/colinmurphy/.cabal/bin</div><div>Libraries installed in: /Users/colinmurphy/.cabal/lib/SDL-0.6.2/ghc-6.10.4</div>
<div>Private binaries installed in: /Users/colinmurphy/.cabal/libexec</div><div>Data files installed in: /Users/colinmurphy/.cabal/share/SDL-0.6.2</div><div>Documentation installed in: /Users/colinmurphy/.cabal/share/doc/SDL-0.6.2</div>
<div>Using alex version 2.3.1 found on system at: /opt/local/bin/alex</div><div>Using ar found on system at: /usr/bin/ar</div><div>No c2hs found</div><div>No cpphs found</div><div>No ffihugs found</div><div>Using gcc version 4.2.1 found on system at: /usr/bin/gcc</div>
<div>Using ghc version 6.10.4 found on system at: /opt/local/bin/ghc</div><div>Using ghc-pkg version 6.10.4 found on system at: /opt/local/bin/ghc-pkg</div><div>No greencard found</div><div>Using haddock version 2.4.2 found on system at: /opt/local/bin/haddock</div>
<div>Using happy version 1.18.4 found on system at: /opt/local/bin/happy</div><div>No hmake found</div><div>Using hsc2hs version 0.67 found on system at: /opt/local/bin/hsc2hs</div><div>No hscolour found</div><div>No hugs found</div>
<div>No jhc found</div><div>Using ld found on system at: /usr/bin/ld</div><div>No nhc98 found</div><div>Using pkg-config version 0.25 found on system at: /opt/local/bin/pkg-config</div><div>Using ranlib found on system at: /usr/bin/ranlib</div>
<div>Using strip found on system at: /usr/bin/strip</div><div>Using tar found on system at: /usr/bin/tar</div><div>sh configure --with-hc=ghc --prefix=/Users/colinmurphy/.cabal</div><div>configure: WARNING: unrecognized options: --with-hc</div>
<div>checking for sdl-config... no</div><div>checking for sdl11-config... no</div><div>configure: error: *** SDL not found! Get SDL from <a href="http://www.libsdl.org">www.libsdl.org</a>.</div><div>If you already installed it, check it&#39;s in the path. If problem remains,</div>
<div>please send a mail to the address that appears in ./configure --version</div><div>indicating your platform, the version of configure script and the problem.</div><div>cabal: Error: some packages failed to install:</div>
<div>SDL-0.6.2 failed during the configure step. The exception was:</div><div>exit: ExitFailure 1</div><div>cm-macbookpro-3:roadmap colinmurphy$ </div><div>&quot;</div><div><br></div><div>The final error is different, but it&#39;s still before the claim that SDL-0.6.2 can&#39;t be found.</div>
<div><br></div><div>Thanks for any help!</div><div>Tom</div><div><br></div><div><br></div><div><br></div><div><br><br><div class="gmail_quote">On Mon, Feb 21, 2011 at 2:23 PM, Stephen Tetley <span dir="ltr">&lt;<a href="mailto:stephen.tetley@gmail.com">stephen.tetley@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Tom<br>
<br>
What OS are you using?<br>
<br>
Could you try to install SDL-0.6.2 (i.e. the Haskell binding) with the<br>
verbose output from Cabal, probably -v for the command line switch.<br>
<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</blockquote></div><br></div></div>