Arc Forumnew | comments | leaders | submitlogin
1 point by jsgrahamus 4680 days ago | link | parent

I'm on Windows 7x64, mzscheme 372 and I just downloaded arc this morning.


1 point by rocketnia 4680 days ago | link

This is a bit off-topic, but despite your best efforts, you are probably not using the latest version of Arc. Sounds like you've been following the instructions at http://www.arclanguage.org/install for the whole time you've been posting here, and those are out of date by almost two years, even linking to a version of Arc 3 (one of a few Arc 3s, I think :-p ) instead of Arc 3.1. I think this is a better starting resource: http://sites.google.com/site/arclanguagewiki/.

Old versions of Arc needed to run on MzScheme 372 because it was the last MzScheme with mutable lists, but now Arc 3.1 uses some pointer manipulation to mutate lists behind Racket's back, meaning any version of Racket is fine. However, this actually introduced a rare garbage collection bug, if you can believe it. ;) That means there is actually a legitimate reason to keep using MzScheme 372, but as described at http://sites.google.com/site/arclanguagewiki/arc-3_1/known-b..., pretty much every Arc setup besides the official one avoids this bug, and it's possible to patch the official one too.

Anyway, you're the first person I've heard of who's tried Arc on Windows 7 (which isn't to say there aren't Arc Forum lurkers in the same position ^_^ ). If you encounter Arc-on-Windows-7 stumbling blocks, please continue talking about them like you have in this thread!

-----

1 point by jsgrahamus 4680 days ago | link

Just downloaded arc3.1 and am trying to run it against Racket 5.1.

C:\Users\Steve\Desktop\arc3\arc3.1>c:"\Program Files (x86)"\Racket\Racket -m -f as.scm main: not defined or required into the top-level environment

C:\Users\Steve\Desktop\arc3\arc3.1>c:"\Program Files (x86)"\Racket\mzscheme -m - f as.scm main: not defined or required into the top-level environment

C:\Users\Steve\Desktop\arc3\arc3.1>

-----

1 point by rocketnia 4680 days ago | link

The -m option means to call the "main" function now. Just leave it out. It used to mean "--mute-banner", which suppressed the "Welcome to MzScheme" line.

-----

1 point by jsgrahamus 4680 days ago | link

C:\Users\Steve\Documents\Programming\Lisp\arc\arc3.1>"c:\Program Files (x86)\Racket"\racket

Welcome to Racket v5.1.1.

> user break

=== context ===

c:\Program Files (x86)\Racket\collects\racket\private\misc.rkt:85:7

>

C:\Users\Steve\Documents\Programming\Lisp\arc\arc3.1>"c:\Program Files (x86)\Racket"\racket -d as.scm

default-load-handler: expected a `module' declaration for `as', found: something else in: #<path:C:\Users\Steve\Documents\Programming\Lisp\arc\arc3.1\as.scm>

=== context ===

standard-module-name-resolver

C:\Users\Steve\Documents\Programming\Lisp\arc\arc3.1>"c:\Program Files (x86)\Racket"\racket -f as.scm

ffi-obj: couldn't get "setuid" from #f (The specified

procedure could not be found.; errno=127)

=== context ===

c:\Program Files (x86)\Racket\collects\ffi\unsafe.rkt:176:2: get-ffi-obj*

C:\Users\Steve\Documents\Programming\Lisp\arc\arc3.1\ac.scm: [running body]

C:\Users\Steve\Documents\Programming\Lisp\arc\arc3.1>

-----

2 points by rocketnia 4680 days ago | link

That "racket -f as.scm" command is the right one. The 'setuid issue is one of a few known issues on Windows, and it has a known fix: http://arclanguage.org/item?id=10625.

I give a whole step-by-step process for setting up Arc on Windows XP at http://www.arclanguage.org/item?id=12397. This link actually appears on http://sites.google.com/site/arclanguagewiki/, but it's okay if you didn't read that far down. :-p

By the way, I committed a 'setuid fix to Anarki a while ago, and unlike the fix above, this version of 'setuid should still work as usual on Linux: https://github.com/nex3/arc/commit/3201b34f3ed89e6305b0d9906...

-----

1 point by jsgrahamus 4680 days ago | link

Thanks for the tip and the understanding ;-)

Works great.

-----

1 point by rocketnia 4680 days ago | link

Erm, make sure to take another look. I've been ninja-editing that post for the last ten minutes. XD

-----