Thank you Magnus! It worked like a charm! Although, I don't know what it exactly did. I'll dig into the script and find out what it actually did. Thank you once again!<br><br><div class="gmail_quote">On Thu, Mar 15, 2012 at 5:23 PM, Magnus Therning <span dir="ltr"><<a href="mailto:magnus@therning.org">magnus@therning.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, Mar 15, 2012 at 09:55, AbdulSattar Mohammed<br>
<<a href="mailto:codingtales@gmail.com">codingtales@gmail.com</a>> wrote:<br>
> When I run<br>
> sudo pacman -S xmonad<br>
><br>
> I get this error:<br>
><br>
> warning: xmonad-0.10-3 is up to date -- reinstalling<br>
> resolving dependencies...<br>
> looking for inter-conflicts...<br>
><br>
> Targets (1): xmonad-0.10-3<br>
><br>
> Total Installed Size:   6.82 MiB<br>
> Net Upgrade Size:       0.00 MiB<br>
><br>
> Proceed with installation? [Y/n]<br>
> (1/1) checking package integrity<br>
> [#######################################] 100%<br>
> (1/1) loading package files<br>
>  [#######################################] 100%<br>
> (1/1) checking for file conflicts<br>
>  [#######################################] 100%<br>
> (1/1) checking available disk space<br>
>  [#######################################] 100%<br>
> ghc-pkg: cannot find package xmonad-0.10<br>
> error: command failed to execute correctly<br>
> (1/1) upgrading xmonad<br>
> [#######################################] 100%<br>
> Reading package info from stdin ... done.<br>
> xmonad-0.10: Warning: haddock-interfaces:<br>
> /usr/share/doc/xmonad-0.10/html/xmonad.haddock doesn't exist or isn't a file<br>
> xmonad-0.10: Warning: haddock-html: /usr/share/doc/xmonad-0.10/html doesn't<br>
> exist or isn't a directory<br>
> xmonad-0.10: dependency "X11-1.5.0.1-23969a606024c8baf35a42f59a8da104"<br>
> doesn't exist (use --force to override)<br>
> xmonad-0.10: dependency "mtl-2.0.1.0-db19dd8a7700e3d3adda8aa8fe5bf53d"<br>
> doesn't exist (use --force to override)<br>
> xmonad-0.10: dependency "utf8-string-0.3.7-ca3bc669f78a10f8e42ef22439bcf83c"<br>
> doesn't exist (use --force to override)<br>
> error: command failed to execute correctly<br>
><br>
> I get similar errors when I try to install<br>
> haskell-http,mtl,network,parsec,random,text,transformers etc. These are all<br>
> the packages that I installed previously, which worked fine and I somehow<br>
> removed them. I don't know how I did that. They do not show up in ghc-pkg<br>
> list. And that is the error that's being reported. From the above message I<br>
> gather that these packages are not actually installed, pacman thinks they<br>
> are and ghc thinks they are not. I should make pacman think they are not<br>
> installed and reinstall them again.<br>
><br>
> Or it might be other way around. They are actually present (most probably<br>
> indicated by the Net Upgrade Size: 0.00 MiB). Pacman could be right but<br>
> those packages are not registered with ghc. Then I should find a way to<br>
> register those packages with ghc. I think, the register.sh, unregister.sh in<br>
> /usr/share/haskell folder allow me to do that. But before I realized this, I<br>
> deleted the whole folder thinking it'd regenerate itself when I install them<br>
> again. I know that was stupid.<br>
><br>
> I tried removing those packages using pacman -R haskell-http etc. They won't<br>
> get removed. Same error.<br>
><br>
> I have one solution in mind, install cabal-install and install all those<br>
> packages via cabal-install. Then, they'd get registered with ghc-pkg and<br>
> removing them or reinstalling them via pacman would be possible. But I'm<br>
> sure there's a better way. Can you tell me which one it is?<br>
<br>
</div></div>I'm not sure how you managed to get into this situation, but a fairly<br>
sure way of fixing it is to first remove 'ghc' and then re-install the<br>
haskell packages you want.<br>
<br>
A script written by Xyne and advertised earlier on this list may help<br>
you out: <a href="http://www.haskell.org/pipermail/arch-haskell/2012-March/002014.html" target="_blank">http://www.haskell.org/pipermail/arch-haskell/2012-March/002014.html</a><br>
<div class="im"><br>
> P.S: I think (I'm not sure) this situation got created when I ran pacman -S<br>
> ghc after I installed all these pacakges. Could this be the problem or I'm<br>
> talking nonsense?<br>
<br>
</div>It is possible, but I've never tried that myself ;)<br>
<span class="HOEnZb"><font color="#888888"><br>
/M<br>
<br>
--<br>
Magnus Therning                      OpenPGP: 0xAB4DFBA4<br>
email: <a href="mailto:magnus@therning.org">magnus@therning.org</a>   jabber: <a href="mailto:magnus@therning.org">magnus@therning.org</a><br>
twitter: magthe               <a href="http://therning.org/magnus" target="_blank">http://therning.org/magnus</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Warm Regards,<br><br>AbdulSattar Mohammed<br>