LuxMiranda/herms

Installing from cabal fails "vty-5.15.1 failed during the building phase."

Closed this issue · 5 comments

After cloning the repo and running cabal install -j. I'm installing on fedora 27.

[user@desktop herms]$ cabal install -j
Resolving dependencies...
Configuring vty-5.15.1...
Building vty-5.15.1...
Failed to install vty-5.15.1
Build log ( /home/user/.cabal/logs/vty-5.15.1.log ):
cabal: Entering directory '/tmp/cabal-tmp-2428/vty-5.15.1'
Configuring vty-5.15.1...
Building vty-5.15.1...
Preprocessing library vty-5.15.1...
[ 1 of 35] Compiling Graphics.Vty.Input.Events ( src/Graphics/Vty/Input/Events.hs, dist/build/Graphics/Vty/Input/Events.o )
[ 2 of 35] Compiling Graphics.Vty.Input.Terminfo.ANSIVT ( src/Graphics/Vty/Input/Terminfo/ANSIVT.hs, dist/build/Graphics/Vty/Input/Terminfo/ANSIVT.o )
[ 3 of 35] Compiling Graphics.Vty.Input.Terminfo ( src/Graphics/Vty/Input/Terminfo.hs, dist/build/Graphics/Vty/Input/Terminfo.o )
[ 4 of 35] Compiling Graphics.Vty.Input.Classify.Types ( src/Graphics/Vty/Input/Classify/Types.hs, dist/build/Graphics/Vty/Input/Classify/Types.o )
[ 5 of 35] Compiling Graphics.Vty.Input.Paste ( src/Graphics/Vty/Input/Paste.hs, dist/build/Graphics/Vty/Input/Paste.o )
[ 6 of 35] Compiling Graphics.Vty.Input.Classify.Parse ( src/Graphics/Vty/Input/Classify/Parse.hs, dist/build/Graphics/Vty/Input/Classify/Parse.o )
[ 7 of 35] Compiling Graphics.Vty.Input.Mouse ( src/Graphics/Vty/Input/Mouse.hs, dist/build/Graphics/Vty/Input/Mouse.o )
[ 8 of 35] Compiling Graphics.Vty.Input.Classify ( src/Graphics/Vty/Input/Classify.hs, dist/build/Graphics/Vty/Input/Classify.o )
[ 9 of 35] Compiling Graphics.Vty.Error ( src/Graphics/Vty/Error.hs, dist/build/Graphics/Vty/Error.o )
[10 of 35] Compiling Graphics.Vty.Config ( src/Graphics/Vty/Config.hs, dist/build/Graphics/Vty/Config.o )
[11 of 35] Compiling Graphics.Vty.Input.Loop ( src/Graphics/Vty/Input/Loop.hs, dist/build/Graphics/Vty/Input/Loop.o )
cabal: Leaving directory '/tmp/cabal-tmp-2428/vty-5.15.1'
cabal: Error: some packages failed to install:
brick-0.19 depends on vty-5.15.1 which failed to install.
herms-1.8.1.2 depends on vty-5.15.1 which failed to install.
vty-5.15.1 failed during the building phase. The exception was:
ExitFailure (-11)

Ah! This is a problem that we've encountered before... vty-5.15.1 is one of Herm's dependencies, I see you've found its repository. @PhilipNelson5 was able to solve this problem, I believe. I'll get in touch with him!

This seems like a tough one to hash out, and something that will be affected by local installation differences... In the meantime, I recommend installation through stack, instead:

cd herms
stack update
stack install

Edit: Especially if you're going to be hacking away at Herm's, stack is the way to go!

Ah I didn't realize I could use stack as well. Might be good to point it out in the readme because cabal has failed on almost everything I have tried it on and stack always works.

Yeah, I realized that too and have now updated the readme! Contributing.md has some other good stuff for you too since you'll be hacking away.

Good luck! Thanks for your interest :D Let me know if you have questions!

glguy commented

@Qwertie- Your local environment is probably corrupted, cabal-install normally has no problem building vty.