[Haskell-cafe] Error in Installing Data.deriveTH

mukesh tiwari mukeshtiwari.iiitm at gmail.com
Sat Sep 17 12:41:17 CEST 2011

Thanks Daniel . It works.

$ cabal install --with-compiler=/usr/local/bin/ghc-7.2.1 -v keys --dry-run

> work?
> ntro at ntro-HP-dx2480-MT-NA121PA:~$ cabal install
--with-compiler=/usr/local/bin/ghc-7.2.1 -v keys --dry-run
Reading available packages...
Resolving dependencies...
In order, the following would be installed:
contravariant- (new package)
distributive- (new package)
semigroups-0.8 (new package)
comonad- (new package)
semigroupoids-1.2.6 (new package)
comonad-transformers-2.0.2 (new package)
comonads-fd-2.0.2 (new package)
data-lens-2.0.1 (new package)
free-2.0.2 (new package)
keys- (new package)

> Does there exist an unversioned ghc? What does

> $ which ghc
> print?

 It prints nothing .
ntro at ntro-HP-dx2480-MT-NA121PA:~$ which ghc
ntro at ntro-HP-dx2480-MT-NA121PA:~$

Looks bad. The only idea I have is that it could be a PATH issue, your
global db for 6.12.3 was under /var/lib, and your 7.2.1 lives under
/usr/local, but it doesn't seem likely.

Precisely this was the issue . My /var/lib directory contains ghc-6.12.1 .

ntro at ntro-HP-dx2480-MT-NA121PA:/var/lib$ ls gh*

CMap  fonts

ntro at ntro-HP-dx2480-MT-NA121PA:/usr/local/lib$ ls
ghc-7.2.1  python2.6  python2.7  python3.1  python3.2  site_ruby

ntro at ntro-HP-dx2480-MT-NA121PA:/usr/local/lib$ ls ghc*
array-           directory-              ghc-prim-
hpc-          libHSffi.a
libHSrts_l.a                    libHSrts_thr_l.a    runghc
base-            extensible-exceptions-  ghc-split
hsc2hs               libHSffi-ghc7.2.1.so
libHSrtsmain.a                  libHSrts_thr_p.a    settings
binary-          filepath-               ghc-usage.txt
HSffi.o              libHSffi_p.a
libHSrts_p.a                    old-locale-  template-haskell-
bin-package-db-  ghc                            haddock
html                 libHSrts.a
libHSrts_thr.a                  old-time-    template-hsc.h
bytestring-      ghc-7.2.1                      haskell2010-
include              libHSrts_debug.a
libHSrts_thr_debug.a            package.conf.d      time-
Cabal-1.12.0            ghci-usage.txt                 haskell98-
integer-gmp-  libHSrts_debug-ghc7.2.1.so
libHSrts_thr_debug-ghc7.2.1.so  pretty-      unix-
containers-      ghc-pkg                        hoopl-
latex                libHSrts-ghc7.2.1.so
process-     unlit


ntro at ntro-HP-dx2480-MT-NA121PA:/usr/local/bin$ ls ghc*
ghc-7.2.1  ghci-7.2.1  ghc-pkg-7.2.1

ntro at ntro-HP-dx2480-MT-NA121PA:/usr/local/bin$ ls
django-admin.py  eggy       eric4-compare    eric4-doc
eric4-pluginrepository  eric4-re          eric4-trpreviewer
eric4-webbrowser  ghc-pkg-7.2.1      hp2ps   runghc      spyder
Editra           eric4      eric4-configure  eric4-editor
eric4-pluginuninstall   eric4-sqlbrowser  eric4-uipreviewer
ghc-7.2.1         haddock            hpc     runhaskell  UTscapy
Editra.pyw       eric4-api  eric4-diff       eric4-plugininstall
eric4-qregexp           eric4-tray        eric4-unittest
ghci-7.2.1        haddock-ghc-7.2.1  hsc2hs  scapy

So should i delete ghc-6.12.1 from /var/lib and move the ghc-7.2.1 from
/usr/local/lib to /var/lib to execute cabal install <pkg-name> -v --dry-run
? As /usr/local/bin is already in the path i don't need to move any files
from here. Am i correct  ? I am already on delay for my project so i don't
want to take chances again if moving these files will again break something
so i am asking you although i am pretty comfortable with $ cabal install
--with-compiler=/usr/local/bin/ghc-7.2.1 -v keys --dry-run

Mukesh Tiwari
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20110917/27a5c5a2/attachment.htm>

More information about the Haskell-Cafe mailing list