Quantcast

Missing dependency?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Missing dependency?

Lyle Kopnicky
Hi folks,

Since the time package is not included in ghc-6.10.2, I installed it via cabal. Then I tried to configure my project, and it says that the dependency is missing. Mysterious. Can anyone explain?

lwk@lwk-desktop:~/devel/vintage-basic$ ghc-pkg list
/usr/local/lib/ghc-6.10.2/./package.conf:
    Cabal-1.6.0.3, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0,
    base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, containers-0.2.0.1,
    directory-1.0.0.3, (dph-base-0.3), (dph-par-0.3),
    (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3),
    (dph-seq-0.3), editline-0.2.1.0, filepath-1.1.0.2, (ghc-6.10.2),
    ghc-prim-0.1.0.0, haddock-2.4.2, haskell-src-1.0.1.3,
    haskell98-1.0.1.0, hpc-0.5.0.3, html-1.0.1.2, integer-0.1.0.1,
    mtl-1.1.0.2, network-2.2.1, old-locale-1.0.0.1, old-time-1.0.0.2,
    packedstring-0.1.0.1, parallel-1.1.0.1, parsec-2.1.0.1,
    pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1,
    regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3,
    rts-1.0, stm-2.1.1.2, syb-0.1.0.1, template-haskell-2.3.0.1,
    unix-2.3.2.0, xhtml-3000.2.0.1
/home/lwk/.ghc/i386-linux-6.10.2/package.conf:
    HTTP-4000.0.4, time-1.1.2.3, zlib-0.5.0.0
lwk@lwk-desktop:~/devel/vintage-basic$ runhaskell Setup.hs configure
Configuring vintage-basic-1.0.1...
Setup.hs: At least the following dependencies are missing:
time >=1.1
lwk@lwk-desktop:~/devel/vintage-basic$

Thanks,
Lyle

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing dependency?

Bugzilla from jonathanccast@fastmail.fm
On Thu, 2009-04-02 at 16:13 -0700, Lyle Kopnicky wrote:

> Hi folks,
>
> Since the time package is not included in ghc-6.10.2, I installed it
> via cabal. Then I tried to configure my project, and it says that the
> dependency is missing. Mysterious. Can anyone explain?
>
> lwk@lwk-desktop:~/devel/vintage-basic$ ghc-pkg list
> /usr/local/lib/ghc-6.10.2/./package.conf:
>     Cabal-1.6.0.3, HUnit-1.2.0.3, QuickCheck-1.2.0.0, array-0.2.0.0,
>     base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4,
> containers-0.2.0.1,
>     directory-1.0.0.3, (dph-base-0.3), (dph-par-0.3),
>     (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3),
>     (dph-seq-0.3), editline-0.2.1.0, filepath-1.1.0.2, (ghc-6.10.2),
>     ghc-prim-0.1.0.0, haddock-2.4.2, haskell-src-1.0.1.3,
>     haskell98-1.0.1.0, hpc-0.5.0.3, html-1.0.1.2, integer-0.1.0.1,
>     mtl-1.1.0.2, network-2.2.1, old-locale-1.0.0.1, old-time-1.0.0.2,
>     packedstring-0.1.0.1, parallel-1.1.0.1, parsec-2.1.0.1,
>     pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1,
>     regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3,
>     rts-1.0, stm-2.1.1.2, syb-0.1.0.1, template-haskell-2.3.0.1,
>     unix-2.3.2.0, xhtml-3000.2.0.1
> /home/lwk/.ghc/i386-linux-6.10.2/package.conf:
>     HTTP-4000.0.4, time-1.1.2.3, zlib-0.5.0.0
> lwk@lwk-desktop:~/devel/vintage-basic$ runhaskell Setup.hs configure
> Configuring vintage-basic-1.0.1...
> Setup.hs: At least the following dependencies are missing:
> time >=1.1
> lwk@lwk-desktop:~/devel/vintage-basic$

You need to use runhaskell Setup.hs configure --user, or else re-install
time globally (as root).

jcc


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Missing dependency?

Brandon S Allbery KF8NH-2
In reply to this post by Lyle Kopnicky
On 2009 Apr 2, at 19:13, Lyle Kopnicky wrote:
Since the time package is not included in ghc-6.10.2, I installed it via cabal. Then I tried to configure my project, and it says that the dependency is missing. Mysterious. Can anyone explain?

You installed time in the per-user package dictionary, but by default Setup.hs uses only the global dictionary.  Try:

runhaskell Setup.hs --user

-- 
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] [hidden email]
system administrator [openafs,heimdal,too many hats] [hidden email]
electrical and computer engineering, carnegie mellon university    KF8NH



_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe

PGP.sig (202 bytes) Download Attachment
Loading...