Re: [Haskell-cafe] building the unix package and cabal
I don't know. Maybe someone on @cafe can help. (I CC'd) On Feb 4, 2008 5:22 PM, Galchin Vasili <vigalchin@gmail.com> wrote:
I have the gmp shared objects installed, i.e. .so's. Does ghc require static linking with .a archive files?
On 2/4/08, Thomas Schilling <nominolo@googlemail.com> wrote:
This is the GNU Multi-Precision library. You have to install that separately, Cabal can't do that for you. You should use the redhat package manager to install it. HTH
On Feb 4, 2008 4:43 PM, Galchin Vasili <vigalchin@gmail.com> wrote:
Hi Thomas,
Have you tried to build this package yourself? I get a linker error .. unresolved symbol "gmp".
Vasili
On 2/4/08, Thomas Schilling <nominolo@googlemail.com> wrote:
Build-type: Configure means that *Cabal uses ./configure * to build the package. Nothing changes for you. Just use the usual:
runhaskell Setup.hs configure --prefix=... [--user] runhaskell Setup.hs build runhaskell Setup.hs install
or with cabal-install:
cabal install unix
2008/2/4 Galchin Vasili <vigalchin@gmail.com>:
Hello,
I have been trying to build the unix package on RedHat RHEL 5. Over the weekend I read through the Cabal documentation. The unix-2.2.0.0 unix.cabal specifies the "build-type" attribute as "Configure". Based on Cabal doc, I should run ./configure. After this step then what? Bottom line is how do I build the unix-2.2.0.0 package on RHEL 5?
Thank you, Vasili _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
more specifically the "gmp" unsatisfied ref shows up with the DynamicLinker. On 2/4/08, Thomas Schilling <nominolo@googlemail.com> wrote:
I don't know. Maybe someone on @cafe can help. (I CC'd)
On Feb 4, 2008 5:22 PM, Galchin Vasili <vigalchin@gmail.com> wrote:
I have the gmp shared objects installed, i.e. .so's. Does ghc require static linking with .a archive files?
On 2/4/08, Thomas Schilling <nominolo@googlemail.com> wrote:
This is the GNU Multi-Precision library. You have to install that separately, Cabal can't do that for you. You should use the redhat package manager to install it. HTH
On Feb 4, 2008 4:43 PM, Galchin Vasili <vigalchin@gmail.com> wrote:
Hi Thomas,
Have you tried to build this package yourself? I get a linker error .. unresolved symbol "gmp".
Vasili
On 2/4/08, Thomas Schilling <nominolo@googlemail.com> wrote:
Build-type: Configure means that *Cabal uses ./configure * to build the package. Nothing changes for you. Just use the usual:
runhaskell Setup.hs configure --prefix=... [--user] runhaskell Setup.hs build runhaskell Setup.hs install
or with cabal-install:
cabal install unix
2008/2/4 Galchin Vasili <vigalchin@gmail.com>:
Hello,
I have been trying to build the unix package on RedHat RHEL 5. Over the weekend I read through the Cabal documentation. The unix-2.2.0.0 unix.cabal specifies the "build-type" attribute as "Configure". Based on Cabal doc, I should run ./configure. After this step then what? Bottom line is how do I build the unix-2.2.0.0 package on RHEL 5?
Thank you, Vasili _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
On Mon, Feb 04, 2008 at 10:50:13AM -0600, Galchin Vasili wrote:
more specifically the "gmp" unsatisfied ref shows up with the DynamicLinker.
This works for me, with GHC 6.8.2 and http://hackage.haskell.org/packages/archive/unix/2.2.0.0/unix-2.2.0.0.tar.gz $ ghc --make Setup $ ./Setup configure --user $ ./Setup build If it's not working for you then you might need a RHEL package called something like gmp-devel. If that doesn't fix it, please send us the exact commands you are running and the complete output. Note that you wouldn't normally compile the unix package yourself, however, as it is one of the packages that comes with GHC. Thanks Ian
Hi Ian, I am trying to add new Posix functionality and it would be nice to be able to build unix myself. In any case, I will try your suggestion and see what happens. Regards, Vasili On 2/4/08, Ian Lynagh <igloo@earth.li> wrote:
On Mon, Feb 04, 2008 at 10:50:13AM -0600, Galchin Vasili wrote:
more specifically the "gmp" unsatisfied ref shows up with the DynamicLinker.
This works for me, with GHC 6.8.2 and
http://hackage.haskell.org/packages/archive/unix/2.2.0.0/unix-2.2.0.0.tar.gz
$ ghc --make Setup $ ./Setup configure --user $ ./Setup build
If it's not working for you then you might need a RHEL package called something like gmp-devel. If that doesn't fix it, please send us the exact commands you are running and the complete output.
Note that you wouldn't normally compile the unix package yourself, however, as it is one of the packages that comes with GHC.
Thanks Ian
Hi Ian, Should gmp-devel be an archive (.a) or a shared object (.so)? If an .a, don't I have to have an environemmt var to point at it's directory? I tried your sequence below on unix-2.2.0.0 and still cannot resolve "gmp". I did find one gmp .rpm on one of the RHEL cds but without "-devel". Regards, Vasili On 2/4/08, Ian Lynagh <igloo@earth.li> wrote:
On Mon, Feb 04, 2008 at 10:50:13AM -0600, Galchin Vasili wrote:
more specifically the "gmp" unsatisfied ref shows up with the DynamicLinker.
This works for me, with GHC 6.8.2 and
http://hackage.haskell.org/packages/archive/unix/2.2.0.0/unix-2.2.0.0.tar.gz
$ ghc --make Setup $ ./Setup configure --user $ ./Setup build
If it's not working for you then you might need a RHEL package called something like gmp-devel. If that doesn't fix it, please send us the exact commands you are running and the complete output.
Note that you wouldn't normally compile the unix package yourself, however, as it is one of the packages that comes with GHC.
Thanks Ian
participants (3)
-
Galchin Vasili -
Ian Lynagh -
Thomas Schilling