[Haskell-cafe] DBDirect trouble

Ferenc Wagner wferi at tba.elte.hu
Wed Jun 14 07:00:51 EDT 2006


Hi!

Let me repeat my question from IRC here, too...
I installed HaskellDB and all the necessary stuff (I hope)
as local (not system-wide) packages:

$ ghc-pkg list
/usr/lib/ghc-6.4.1/package.conf:
    rts-1.0, base-1.0, haskell98-1.0, template-haskell-1.0, unix-1.0,
    Cabal-1.0, parsec-1.0, haskell-src-1.0, network-1.0,
    QuickCheck-1.0, HUnit-1.1, mtl-1.0, fgl-5.2, X11-1.1, HGL-3.1,
    stm-1.0, readline-1.0, (lang-1.0), (concurrent-1.0), (posix-1.0),
    (util-1.0), (data-1.0), (text-1.0), (net-1.0), (hssource-1.0)
/home/wferi/.ghc/i386-linux-6.4.1/package.conf:
    NewBinary-0.1, Crypto-3.0.3, (Cabal-1.0), Cabal-1.1.4, hsql-1.7,
    hsql-mysql-1.7, haskelldb-0.9, plugins-1.0, haskelldb-dynamic-0.9,
    haskelldb-hsql-0.9, haskelldb-hsql-mysql-0.9

Still, DBDirect doesn't run:

$ ~/haskell/installed/bin/DBDirect Test mysql server=myserver,db=test,uid=wferi,pwd=secret
DB/Direct: Daan Leijen (c) 1999, HWT (c) 2003-2004,
           Bjorn Bringert (c) 2005
Connecting to database...

DBDirect: user error (Couldn't load Database.HaskellDB.HSQL.MySQL.driver from package haskelldb-hsql-mysql-0.9)

strace -eopen shows it reads /usr/lib/ghc-6.4.1/package.conf
only, not the local one...  Any ideas how to persuade it to
use the locally installed packages?
-- 
Thanks,
Feri.


More information about the Haskell-Cafe mailing list