7.8.1 cabal install of vector package (dependent on primitive package) fails

Hi, Ubuntu 12.04, 64 bit x86, ghc 7.8.1 gives the following: # cabal install --global vector ... [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package primitive-0.5.2.1 ... <command line>: can't load .so/.DLL for: libHSprimitive-0.5.2.1.so (libHSprimitive-0.5.2.1.so: cannot open shared object file: No such file or directory) cabal: Error: some packages failed to install: vector-0.10.9.1 failed during the building phase. The exception was: ExitFailure 1 Cheers, Vivian

i bet you have cabal --version reply with 1.16 :) 1) cabal update 2) cabal install cabal-install 3) rm ~/.cabal/config # old pre 1.18 config should go! 4) cabal update # also probably add ~/.cabal/bin to path 5) cabal install vector On Wed, Apr 9, 2014 at 11:24 PM, Vivian McPhail < haskell.vivian.mcphail@gmail.com> wrote:
Hi,
Ubuntu 12.04, 64 bit x86, ghc 7.8.1 gives the following:
# cabal install --global vector ... [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package primitive-0.5.2.1 ... <command line>: can't load .so/.DLL for: libHSprimitive-0.5.2.1.so (libHSprimitive-0.5.2.1.so: cannot open shared object file: No such file or directory) cabal: Error: some packages failed to install: vector-0.10.9.1 failed during the building phase. The exception was: ExitFailure 1
Cheers,
Vivian
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Indeed.
It was using the wrong cabal-install version. Even though I had installed
the newest cabal-install I needed to restart the xterm I was working in.
Thanks,
Vivian
On 10 April 2014 15:42, Carter Schonwald
i bet you have cabal --version reply with 1.16 :)
1) cabal update 2) cabal install cabal-install 3) rm ~/.cabal/config # old pre 1.18 config should go! 4) cabal update # also probably add ~/.cabal/bin to path 5) cabal install vector
On Wed, Apr 9, 2014 at 11:24 PM, Vivian McPhail < haskell.vivian.mcphail@gmail.com> wrote:
Hi,
Ubuntu 12.04, 64 bit x86, ghc 7.8.1 gives the following:
# cabal install --global vector ... [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package primitive-0.5.2.1 ... <command line>: can't load .so/.DLL for: libHSprimitive-0.5.2.1.so (libHSprimitive-0.5.2.1.so: cannot open shared object file: No such file or directory) cabal: Error: some packages failed to install: vector-0.10.9.1 failed during the building phase. The exception was: ExitFailure 1
Cheers,
Vivian
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

On 2014-04-10 at 06:00:43 +0200, Vivian McPhail wrote:
Indeed.
It was using the wrong cabal-install version. Even though I had installed the newest cabal-install I needed to restart the xterm I was working in.
Lemme guess, you're using Bash, and you installed cabal-install into a new location; however Bash caches the paths of called executables, see also http://unix.stackexchange.com/questions/5609/how-do-i-clear-bashs-cache-of-p...

Yes, exactly.
On 10 April 2014 22:03, Herbert Valerio Riedel
On 2014-04-10 at 06:00:43 +0200, Vivian McPhail wrote:
Indeed.
It was using the wrong cabal-install version. Even though I had installed the newest cabal-install I needed to restart the xterm I was working in.
Lemme guess, you're using Bash, and you installed cabal-install into a new location; however Bash caches the paths of called executables, see also
http://unix.stackexchange.com/questions/5609/how-do-i-clear-bashs-cache-of-p...

Yes, exactly. Thank you.
On 10 April 2014 22:03, Herbert Valerio Riedel
On 2014-04-10 at 06:00:43 +0200, Vivian McPhail wrote:
Indeed.
It was using the wrong cabal-install version. Even though I had installed the newest cabal-install I needed to restart the xterm I was working in.
Lemme guess, you're using Bash, and you installed cabal-install into a new location; however Bash caches the paths of called executables, see also
http://unix.stackexchange.com/questions/5609/how-do-i-clear-bashs-cache-of-p...
-- --- yolar et elver. --- DISCLAIMER This transmission contains information that may be confidential. It is intended for the named addressee only. Unless you are the named addressee you may not copy or use it or disclose it to anyone else.

On Wednesday 09 April 2014, 23:42:26, Carter Schonwald wrote:
i bet you have cabal --version reply with 1.16
1) cabal update 2) cabal install cabal-install 3) rm ~/.cabal/config # old pre 1.18 config should go! 4) cabal update # also probably add ~/.cabal/bin to path
There should be a step to edit the config file here, one may want to change a number of default settings, such as documentation library-profiling shared library-for-ghci split-objs
5) cabal install vector

On Thu, Apr 10, 2014 at 6:42 AM, Carter Schonwald < carter.schonwald@gmail.com> wrote:
i bet you have cabal --version reply with 1.16 :)
1) cabal update 2) cabal install cabal-install 3) rm ~/.cabal/config # old pre 1.18 config should go!
This was news to me. Is there a list of the important changes?
4) cabal update # also probably add ~/.cabal/bin to path 5) cabal install vector
On Wed, Apr 9, 2014 at 11:24 PM, Vivian McPhail < haskell.vivian.mcphail@gmail.com> wrote:
Hi,
Ubuntu 12.04, 64 bit x86, ghc 7.8.1 gives the following:
# cabal install --global vector ... [ 5 of 19] Compiling Data.Vector.Fusion.Stream.Monadic ( Data/Vector/Fusion/Stream/Monadic.hs, dist/build/Data/Vector/Fusion/Stream/Monadic.o ) Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. Loading package primitive-0.5.2.1 ... <command line>: can't load .so/.DLL for: libHSprimitive-0.5.2.1.so (libHSprimitive-0.5.2.1.so: cannot open shared object file: No such file or directory) cabal: Error: some packages failed to install: vector-0.10.9.1 failed during the building phase. The exception was: ExitFailure 1
Cheers,
Vivian
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
_______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
participants (6)
-
Alexander McPhail
-
Carter Schonwald
-
Daniel Fischer
-
Herbert Valerio Riedel
-
Michael Snoyman
-
Vivian McPhail