[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-0.1.2.1 (new package)
distributive-0.2.0.1 (new package)
semigroups-0.8 (new package)
comonad-1.1.1.1 (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-2.1.1.1 (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*
ghc-6.12.1:
package.conf.d

ghostscript:
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-0.3.0.3           directory-1.1.0.1              ghc-prim-0.2.0.0
hpc-0.5.1.0          libHSffi.a
libHSrts_l.a                    libHSrts_thr_l.a    runghc
base-4.4.0.0            extensible-exceptions-0.1.1.3  ghc-split
hsc2hs               libHSffi-ghc7.2.1.so
libHSrtsmain.a                  libHSrts_thr_p.a    settings
binary-0.5.0.2          filepath-1.2.0.1               ghc-usage.txt
HSffi.o              libHSffi_p.a
libHSrts_p.a                    old-locale-1.0.0.3  template-haskell-2.6.0.0
bin-package-db-0.0.0.0  ghc                            haddock
html                 libHSrts.a
libHSrts_thr.a                  old-time-1.0.0.7    template-hsc.h
bytestring-0.9.2.0      ghc-7.2.1                      haskell2010-1.1.0.0
include              libHSrts_debug.a
libHSrts_thr_debug.a            package.conf.d      time-1.2.0.5
Cabal-1.12.0            ghci-usage.txt                 haskell98-2.0.0.0
integer-gmp-0.3.0.0  libHSrts_debug-ghc7.2.1.so
libHSrts_thr_debug-ghc7.2.1.so  pretty-1.1.0.0      unix-2.5.0.0
containers-0.4.1.0      ghc-pkg                        hoopl-3.8.7.1
latex                libHSrts-ghc7.2.1.so
libHSrts_thr-ghc7.2.1.so
process-1.1.0.0     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

Regards
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