Arc Forumnew | comments | leaders | submitlogin
How to get Racket to run arc?
5 points by pyTony 4589 days ago | 6 comments
I downloaded the tar, untared it and downloaded Racket as mzscheme was not there.

I added #lang scheme line in beginning of the .scm files, but I get error: ac.scm:4:0: module: illegal use (not at top-level) in: (module ac mzscheme (provide (all-defined)) (require (lib "port.ss")) (require (lib "process.ss")) (require (lib "pretty.ss"),,,,,



4 points by zck 4589 days ago | link

Two notes:

1. Get http://ycombinator.com/arc/arc3.1.tar instead of arc3.tar

2. Run the command racket -f as.scm . No -m flag.

-----

1 point by pyTony 4588 days ago | link

I got arc3.1, installed in arc3.1 in Racket directory, now I got (I am running Windows XP in Finnish)

I:\Lisps\Racket\arc3.1>..\racket -f as.scm ffi-obj: couldn't get "setuid" from #f (Määritetty proseduuria ei löydy .; errno=127)

=== context === I:\Lisps\Racket\collects\ffi\unsafe.rkt:178:2: get-ffi-obj* I:\Lisps\Racket\arc3.1\ac.scm: [running body]

-----

2 points by akkartik 4587 days ago | link

Yeah that's a known issue on windows. Just turn setuid into a no-op:

http://arclanguage.org/item?id=10625

I'll add it to the wiki at http://sites.google.com/site/arclanguagewiki

-----

1 point by rocketnia 4587 days ago | link

Since aw started the wiki, there's always been a link to http://www.arclanguage.org/item?id=12397 on the front page. ^_^

Maybe there's a better way to organize that page...?

-----

1 point by pyTony 4589 days ago | link

Also the document in Racket tells differences:

Unlike version 372, the mzscheme language does not include set-car! or set-cdr!, and cons makes immutable pairs, as in scheme/base; those changes make modules built on mzscheme reasonably compatible with modules built on scheme/base.

The file gave error on set-car! when I removed from start (module ac mzscheme and the ) in the end.

-----

1 point by pyTony 4589 days ago | link

I tried to run it from IDE, maybe the command switches would work from command line with Racket?

Did not:

I:\Lisps\Racket>mzscheme.exe -m -f arc3\as.scm main: not defined or required into the top-level environment

I:\Lisps\Racket>

-----