Problem with make

24 views
Skip to first unread message

gustav...@gmail.com

unread,
Jan 28, 2012, 10:53:48 AM1/28/12
to proglang-course-2012
I'm trying to follow the example on page 25-26 in the plt-book. When
im running make i get the following error:

happy -gca ParCalc.y
unused terminals: 1
alex -g LexCalc.x
latex DocCalc.tex; dvips DocCalc.dvi -o DocCalc.ps
process_begin: CreateProcess((null), latex DocCalc.tex; dvips
DocCalc.dvi -o Doc
Calc.ps, ...) failed.
make (e=2): Det gÕr inte att hitta filen.
make: *** [all] Error 2

I have GHC, Happy and Alex installed, so I don't understand why I get
this error.

Arnar Birgisson

unread,
Jan 28, 2012, 12:08:46 PM1/28/12
to proglang-c...@googlegroups.com

If you don't have LaTeX installed on your system, try commenting out
the latex and dvips commands in the makefile.

cheers,
Arnar

gustav...@gmail.com

unread,
Jan 28, 2012, 12:14:08 PM1/28/12
to proglang-course-2012
That did it. Thanks!

On 28 Jan, 18:08, Arnar Birgisson <arna...@gmail.com> wrote:
> On Sat, Jan 28, 2012 at 16:53, lgus...@student.chalmers.se

Daniel Kvarfordt

unread,
Jan 30, 2012, 12:42:13 PM1/30/12
to proglang-c...@googlegroups.com
I found that even with latex installed, I got errors about invalid parameters on the latex line in the make file. I edited the makefile every time but that got really tedious. Also, the output from the test suit is badly formed in windows cmd (extra symbols instead of colors). I switched to using linux in a virtual machine, and now everything works smoothly, so I can really recommend running it in linux if you can.

André Laszlo

unread,
Jan 30, 2012, 1:37:18 PM1/30/12
to proglang-c...@googlegroups.com

You only need to use the m flag once though.

Daniel Kvarfordt

unread,
Jan 30, 2012, 2:28:21 PM1/30/12
to proglang-c...@googlegroups.com
Good point!
Reply all
Reply to author
Forward
0 new messages