CDSoft / pp

PP - Generic preprocessor (with pandoc in mind) - macros, literate programming, diagrams, scripts...
http://cdelord.fr/pp
GNU General Public License v3.0
252 stars 21 forks source link

pp won't build on LUbuntu 18.04 as of 2019-02-26 #72

Open astesin opened 5 years ago

astesin commented 5 years ago

Tried to build pp locally (as there isn't a ready Ubuntu package for it). Installed haskell-stack amd64 1.5.1-1 package, launched make and got

~/pp_generic_preprocessor$ make
Downloading lts-13.1 build plan ...
Downloaded lts-13.1 build plan.
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""
#### converting .stack-work/Plantuml.jar to C
stack tools/blob.hs .stack-work/Plantuml.jar
Downloaded lts-13.1 build plan.    
AesonException "Error in $.packages.cassava.constraints.flags['bytestring--lt-0_10_4']: Invalid flag name: \"bytestring--lt-0_10_4\""
Makefile:128: recipe for target '.stack-work/PlantumlJar_c.c' failed
make: *** [.stack-work/PlantumlJar_c.c] Error 1
~/pp_generic_preprocessor$

What I am doing wrong? Thanks in advance! Andreas

CDSoft commented 5 years ago

Have you tried to upgrade stack (stack upgrade && stack update)? It seems to be a bug with stack on Ubuntu (https://bugs.launchpad.net/ubuntu/+source/haskell-stack/+bug/1786197).

CDSoft commented 5 years ago

You can also try to use another stackage LTS version (line 21 in stack.yaml). e.g. 13.9 or 12.26 I don't use the stack version packaged for my OS. I prefer to install the latest version from haskellstack.org: wget -qO- https://get.haskellstack.org/ | sh

pomdtr commented 4 years ago

stack upgrade did resolve the issue

CDSoft commented 6 months ago

Sorry for the late reply... Please keep in mind that pp is not supported anymore, it's hard to deploy. For new projects I suggest ypp which is is based on a Lua interpreter and way easier to compile and install and binaries are easier to produce (thanks to zig) and deploy (see hey).