Closed mango314 closed 9 years ago
There's a few things going on here.
./build.sh all
now builds all the display packages as well. If you only want IHaskell, use ./build.sh ihaskell
. It uses cabal install
internally so I'm not sure whether it's usable with a sandbox...cabal install
, run cabal install ./ipython-kernel ./ghc-parser .
to install IHaskell and all its local dependencies. Note that right now new versions of ihaskell
and ipython-kernel
are not on Hackage.linux-install.sh
and macosx-install.sh
to install on those respective platforms (but this does not use sandboxes).If you want the display packages, you need to install cairo
, which is a bit tricky, but *-install.sh
does that for you as well.
I cloned the github repository and ran ./linux-install.sh
it runs for a while and returns me
cabal: Error: some packages failed to install:
arithmoi-0.4.1.1 failed during the building phase. The exception was:
ExitFailure 1
diagrams-1.2 depends on arithmoi-0.4.1.1 which failed to install.
diagrams-contrib-1.1.2.5 depends on arithmoi-0.4.1.1 which failed to install.
ihaskell-diagrams-0.2.0.0 depends on arithmoi-0.4.1.1 which failed to install.
ihaskell-magic-0.2.0.0 depends on magic-1.1 which failed to install.
magic-1.1 failed during the configure step. The exception was:
ExitFailure 1
This is the arithmoi library used for number theory.
I have not tested linux-install.sh
; @FranklinChen may want to chime in.
However for arithmoi
you can install it manually with
cabal install arithmoi==0.4.*
or
cabal install arithmoi==0.4.* -fllvm
I'll fire up my Linux VM tomorrow, but suspect build.sh
may need to be changed so that the following simply uses the Darwin -llvm
flag for both Mac and Linux?
if [ `uname` = Darwin ]; then
echo CMD: cabal install --constraint "arithmoi -llvm" -j $INSTALL_DIRS --force-reinstalls --max-backjumps=-1 --reorder-goals
cabal install --constraint "arithmoi -llvm" -j $INSTALL_DIRS --force-reinstalls --max-backjumps=-1 --reorder-goals
else
echo CMD: cabal install -j $INSTALL_DIRS --force-reinstalls --constraint "arithmoi==0.4.*" --max-backjumps=-1 --reorder-goals
cabal install -j $INSTALL_DIRS --force-reinstalls --constraint "arithmoi==0.4.*" --max-backjumps=-1 --reorder-goals
fi
@FranklinChen Sounds good; if that's all it takes that'll be an easy fix.
Re-open if you encounter any more issues; hopefully linux-install.sh
will work now.
In order to play with iHaskell, I created both a cabal sandbox and python virtualenv to do
cabal install ihaskell
and still use iPython2. The rest of my computer uses iPython 3.When I looked this morning there was no
jupyter
branched. It had been merged. Does that mean we can install from github?I created a separate cabal sandbox for the github branch, cloned into there and tried
./build.sh all
It installs for a while but then failed:This is suspicious since it is installing into my main Cabal instead of the sandbox
Then maybe I forgot to use the build script from within the sandbox