Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

Re: It now works. :)

by pernod (Chaplain)
on Feb 18, 2005 at 09:26 UTC ( #432228=note: print w/replies, xml ) Need Help??

in reply to It now works. :)
in thread Hello Perl 6. Running pugs on Windows

I'm very happy that you are checking out my code! There were multiple reasons that broke the quicksort example, chief among them being that "map" and "grep" had not been implemented. :-)

A little too much enthusiasm on my part there, perhaps. I saw something that looked like it could work, and did not actually check out if the internals were implemented :)

Thank you very much for this initiative autrijus. In my humble opinion, you deserve all the praise the Perl community can muster. Keep up the good work!

I'm having some trouble building Pugs right now, though. I am therefore unable to run your examples ... It looks like an issue with the generated Makefile. Building the darcs repository now fails with dmake complaining about:

dmake.exe: Error -- 'C:\dev\fun\pugs\pugs.exe' not found, and can't be made.

I tried to copy in the old executable from a previous install, but then it would not rebuild, even after resaving the files to rewrite their dates. Fetching the repository again didn't work either. I dont't have more time to investigate this now (I'm at work), but I'll see if can figure something out when I get home.

Mischief. Mayhem. Soap.

Replies are listed 'Best First'.
Re^2: It now works. :)
by audreyt (Hermit) on Feb 18, 2005 at 11:02 UTC
    I think it's a dmake issue. Try tweaking the Makefile and replace all c:\dev\fun\pugs\pugs.exe to pugs.exe and let me know if it works?

    Of course you can always do a cd src then ghc --make Main.hs by hand...

      You were right about dmake. Doing a s#C:\def\fun\pugs\(pugs.exe)#$1#g on the Makefile removes the previous error. I also tried to modify the Makefile.PL to not use a complete path, which gave the same result. So now I get to build the sources, but linking fails:

      C:\dev\fun\pugs>dmake ghc --make -o pugs src/Main.hs -isrc Chasing modules from: src/Main.hs Skipping Cont ( src/Cont.hs, src/Cont.o ) Skipping Internals ( src/Internals.hs, src/Internals.o ) Skipping Context ( src/Context.hs, src/Context.o ) Skipping AST ( src/AST.hs, src/AST.o ) Skipping Lexer ( src/Lexer.hs, src/Lexer.o ) Skipping Monads ( src/Monads.hs, src/Monads.o ) Skipping Bind ( src/Bind.hs, src/Bind.o ) Skipping Junc ( src/Junc.hs, src/Junc.o ) Skipping Shell ( src/Shell.hs, src/Shell.o ) Skipping Pretty ( src/Pretty.hs, src/Pretty.o ) Skipping Help ( src/Help.hs, src/Help.o ) Skipping Parser ( src/Parser.hs, src/Parser.o ) Skipping Prim ( src/Prim.hs, src/Prim.o ) Skipping Eval ( src/Eval.hs, src/Eval.o ) Skipping Main ( src/Main.hs, src/Main.o ) Linking ... C:/ghc/ghc-6.2.2/libHSreadline.a(Readline__56.o)(.text+0x33):ghc11748. +hc: undefined reference to `rl_initialize' C:/ghc/ghc-6.2.2/libHSreadline.a(Readline__96.o)(.text+0xaa):ghc11748. +hc: undefined reference to `readline' C:/ghc/ghc-6.2.2/libHSreadline.a(Readline__98.o)(.text+0x63):ghc11748. +hc: undefined reference to `add_history' dmake.exe: Error code 1, while making 'pugs.exe'

      I tried with source both from the darcs repository and the subversion repository at They both give the same result. Looks like my windows box lacks some neat library. Oh well, I've got OS X at home, so perhaps it will work out better there.

      I hope this doesn't take your attention from making Pugs better, though!

      Edit: autrijus, would you prefer to use instead of posting here? Is feedback like this at all useful for Pugs? Just wondering if there is a small way I can help ...

      Mischief. Mayhem. Soap.

        Hey, your feedback is very useful. :-) I have fixed it on trunk again so building on Win32 should again work. If the readline problem persists, try changing "$has_readline=1" to "$has_readline=0" in Makefile.PL, rerun Makefile.PL and it sould work.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://432228]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2019-08-21 04:42 GMT
Find Nodes?
    Voting Booth?

    No recent polls found