Skip to content

Instantly share code, notes, and snippets.

@piyush-kurur
Created October 2, 2016 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piyush-kurur/0dd772a80d25d345359de335141f0050 to your computer and use it in GitHub Desktop.
Save piyush-kurur/0dd772a80d25d345359de335141f0050 to your computer and use it in GitHub Desktop.
Result of compiling yi and the errors
$ stack --stack-yaml lts-6.yaml install yi --flag yi:vty --flag yi:pango #installing with flags
Invalid flag specification:
- Package 'yi' does not define the following flags (specified on command line):
pango
vty
- Flags defined by package 'yi':
$ stack --stack-yaml lts-6.yaml install yi # installing without the flags
Copying from /home/ppk/code/git/yi/.stack-work/install/x86_64-linux/lts-6.19/7.10.3/bin/yi to /home/ppk/.local/bin/yi
Copied executables to /home/ppk/.local/bin:
- yi
$ stack exec yi # executing
Configuration '/home/ppk/.config/yi/yi.hs' changed. Recompiling.
Error occurred while loading configuration file.
yi: panic: no frontend compiled in! (configure with -fvty or another frontend.)
CallStack (from HasCallStack):
error, called at src/Yi/Config/Default.hs:87:31 in yi-core-0.13.0.1-I1ZHUhLqSSi5xLyazMQIVc:Yi.Config.Default
@piyush-kurur
Copy link
Author

Fixed it finally. Not really sure how it went but

  1. Only do stack install and not stack install yi
  2. copy the example config file from the examples-config to ~/.config/yi/yi.hs
  3. need to stack install gtk2hs-buildtools separately
  4. Make sure that libgtk2.* installed (libgtk2.0-dev on my debian)

There was lot of linking issue as well. Had to nuke .stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment