Robert van Herk wrote:
> Hi all,
>=20
> I have a problem with configuring haskelldb:
>=20
> I am trying to build haskelldb, with support for ghc-hsql.
>=20
> I do not have root permissions on this box. Therefore, I made a local=20
> file containing my ghc package configuration. The local file is in=20
> /Users/rherk/soft/package.conf. It does have an entry for hsql, and the=
=20
> entry is correct. When I do:
>=20
> ./configure --with-ghc-pkg=3D"ghc-pkg -f /Users/rherk/soft/package.conf=
"=20
> --prefix=3D/Users/rherk/soft/haskelldb
>=20
> I end up with:
>=20
> checking for ghc-pkg -f /Users/rherk/soft/package.conf... no
> configure: error: ghc-pkg is required for GHC support
>=20
> So, I though I'd make a script in ~/soft/ghc-pkg, namely:
>=20
> ghc-pkg -f /Users/rherk/soft/package.conf $@
>=20
> Then, I try:
>=20
> ./configure --with-ghc-pkg=3D"/Users/rherk/soft/ghc-pkg"=20
> --prefix=3D/Users/rherk/soft/haskelldb --enable-ghc-hsql
>=20
> Now, I get:
> configure: WARNING: HSQL for ghc not found, not
> building ghc HSQL support
>=20
> and I end up with:
> HaskellDB will support:
> -----------------------
>=20
> GHC: yes
> HSQL: no
> ODBC: no
> MySql: no
> SQLite: no
> PostgreSQL: no
> WxHaskell: no
> Hugs: no
> HSQL: no
> ODBC: no
> MySql: no
> SQLite: no
> PostgreSQL: no
> WxHaskell: no
>=20
> My own ghc-pkg script does however seem to work:
> ./ghc-pkg -l
> /Users/rherk/soft/package.conf:
> hsql
> /usr/local/lib/ghc-6.2.1/package.conf:
> rts, base, haskell98, haskell-src, network, parsec, QuickCheck,
> readline, OpenGL, GLUT, unix, lang, concurrent, posix, util, data,
> text, net, hssource, uust
>=20
> Does anyone have any idea on what might be wrong?
I think that:
./configure --with-ghc-flags=3D-package-conf=3D/Users/rherk/soft/package.=
conf
should work, but I haven't tested it.
I think that the problem is that when the configure script checks for=20
the presence of some module, it uses ghc, not ghc-pkg, since ghc must be=20
able to find the module later during the compilation. I guess you could=20
make another script which calls ghc and uses your local package conf.=20
You could then use --with-ghc to use it for compilation. Using=20
--with-ghc-flags as above should also work.
/Bj=F6rn
|