Arc Forumnew | comments | leaders | submitlogin
Step Three of Installing Arc
1 point by PebblesRox 5633 days ago | 21 comments
Where do I type "mzscheme -m -f as.scm" to get an Arc prompt? (I'm on Windows.)


1 point by thaddeus 5633 days ago | link

This is what I did:

    1. On desktop: right click -> new -> shortcut
    2. Enter a target of: C:\MzScheme\MzScheme.exe -m -f as.scm (or where ever mzscheme is installed)
    3. Name the shortcut Arc3
    4. Find the shortcut on desktop; right click on it and select properties.
    5. Add the path to the arc directory in the 'start-in' box. (example: C:\arc3)
Launch shortcut.

This will get you started with pg's release, but you will need to make changes to account for windows:

at a minimum you can do this:

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

(and I might be wrong, but it would seem that since were now using scheme 372 we no longer need to account for the sticky bit problem that anarki accounted for - this was mentioned as a reply in the above post).

notes:

    * ensure-dir is an existing function (so replace it), 
    mkdir is new so add it.

    * in the new arc3 you need to take out the qoute on 
    make-directory:
ie

    (xdef make-directory make-directory)
    (xdef make-directory* make-directory*)
instead of:

    (xdef 'make-directory make-directory)
    (xdef 'make-directory* make-directory*)

-----

1 point by shader 5633 days ago | link

As far as I know, windows is not officially supported. I think I've gotten it to work on windows before, but you might have some trouble with file system differences, etc.

However, the place to type that in is a command line window in the folder arc was unzipped to.

So for example:

1) Type Windows Key-R to bring up run window 2) Type in "cmd", and hit enter to bring up command prompt 3) Use the "cd" command followed by the directory path of your arc installation. 4) Execute "mzscheme -m -f as.scm" to start arc.

Alternatively, if you're using Vista (not sure about XP), you can Shift-Right Click in a explorer window, and click the dropdown item "Open Command Window Here" to do the same thing as the first three steps.

I hope that helps.

-----

1 point by PebblesRox 5629 days ago | link

Thank you for your help. I tried to follow these directions, but it didn't work. I'm not sure I understand them correctly. Steps 1 and 2 are fine, but maybe I didn't do step 3 or 4 the right way. Here's what happened:

I have a folder with MzScheme in it and a folder with arc3 in it. I entered "cd" and the directory of the arc3 folder: "cd C:\Program Files\Arc\arc3" and then I hit enter. The next line looked like this:

    C:\Program Files\Arc\arc3>
so I typed in "mzscheme -m -f as.scm" and pressed enter. This message appeared: 'mzscheme' is not recognized as an internal or external command, operable program, or batch file.

Do I need to be more specific with my directory path? Is there a file inside the arc3 folder that I need to name? Or am I not executing "mzscheme -m -f as.scm" when I type it in?

-----

1 point by shader 5629 days ago | link

Ok, so the problem is that windows doesn't know where to find mzscheme.

To rectify the situation, you could either type in the full path to mzscheme instead of just it's name, or you could add it to your PATH variable (that's where windows looks to locate programs when you type them in on the command line)

Here's how to do that temporarily:

  PATH=%PATH%;<insert mzscheme path here>
Again, that's PATH=%PATH%, followed by a semicolon and then the path to mzscheme. Unfortunately, this is a temporary fix that will only last as long as that command window.

To make it permanent: right click on "Computer" and go to properties. Somewhere there should be an Advanced Settings link, which should pop up a new window. Click the Environment Variables button, and edit the PATH variable (either for your user or the whole system). Add a semicolon, and then paste in the path to the mzscheme executable.

Hopefully that works for you ;)

-----

1 point by PebblesRox 5629 days ago | link

Oh, yes! I got the arc prompt. Thank you for your help :)

-----

1 point by noodle 5630 days ago | link

sub-question: i'm having a problem with mzscheme and i can't find a good answer.

  root@mybox:~/arc3# mzscheme -m -f as.scm
  -bash: /usr/bin/mzscheme: No such file or directory
any thoughts?

-----

1 point by CatDancer 5630 days ago | link

You will need to download and install PLT version 372 to use with arc3.

http://download.plt-scheme.org/v372.html

The installer will ask you where you want to install mzscheme, you can choose any directory that is convenient for you. You do not need the option to create links in standard directories, say "no" to that.

Then you'd run mzscheme from the directory that you installed it to.

  ~/arc3$ ...where-you-said-to-install-mzscheme/bin/mzscheme -m -f as.scm

-----

1 point by noodle 5630 days ago | link

yes, i did that. just in case, i removed and reinstalled everything. same result.

-----

1 point by CatDancer 5630 days ago | link

In what you posted above, you don't include the path to mzscheme. Are you now including the path? If so, what exactly are you typing, and what error message are you getting exactly?

-----

1 point by noodle 5629 days ago | link

  * tried it with the absolute path
  * tried it without
  * tried running it in its directory
  * tried running it without parameters just to see what happens
all of these ways with the exact same output result (except the path changes as it should)

-----

1 point by CatDancer 5629 days ago | link

When you try it with the absolute path, what is the exact command line that you are using?

-----

1 point by noodle 5629 days ago | link

  root@mybox:~/arc3# /root/mz/bin/mzscheme -m -f as.scm
  -bash: /root/mz/bin/mzscheme: No such file or directory
  root@mybox:~/arc3# cd /root/mz/bin/
  root@mybox:~/mz/bin# ls
  mzc  mzpp  mzscheme  mztext  pdf-slatex  planet  plt-web-server-text  setup-plt  slatex  swindle  tex2page
  root@mybox:~/mz/bin# ./mzscheme -m -f /root/arc3/ac.scm
  -bash: ./mzscheme: No such file or directory
  root@mybox:~/mz/bin#
  root@mybox:~# cd /root/plt/bin/
  root@mybox:~/plt/bin# ls
  drscheme   mred  mzpp      mztext      planet     plt-web-server       setup-plt  slideshow  tex2page
  help-desk  mzc   mzscheme  pdf-slatex  plt-games  plt-web- server-text  slatex     swindle
  root@mybox:~/plt/bin# ./mzscheme
  -bash: ./mzscheme: No such file or directory
  root@mybox:~/plt/bin# ./mzscheme -m -f /root/arc3/as.scm
  -bash: ./mzscheme: No such file or directory
  root@mybox:~/plt/bin#
please ignore my poor security practices. :)

-----

1 point by CatDancer 5629 days ago | link

Yup, that's weird!

You're going to need to get help on the PLT Scheme user mailing list for this one. (This is the first mailing list listed at the top of http://www.plt-scheme.org/community.html)

Tell them what operating system you're running, including the output of "uname -a", and which distribution of PLT Scheme you downloaded. Mention you need to run PLT Scheme version 372 specifically. No need to include the "-m" or "-f" options or to mention Arc, just show them the output of when you're in the bin directory and you type just "./mzscheme"

Then, once you have mzscheme working, we may be able to help with any Arc problems you have... :-)

Good luck!

-----

1 point by noodle 5629 days ago | link

yeah, i was going to hit that next. this is just an easier resource i figured i'd tap first :) appreciate the input.

-----

1 point by conanite 5629 days ago | link

Is ./mzscheme a symbolic link pointing to a missing file? Or is ./mzscheme a shell script with an invalid interpreter line? (the first line, beginning with #! )

-----

1 point by CatDancer 5629 days ago | link

yeah, you might try typing "file mzscheme" and see what it says.

-----

1 point by noodle 5629 days ago | link

no, its an ELF.

-----

1 point by tc-rucho 5630 days ago | link

So, did you solve it or still with problems? It looks like you don't have mzscheme in your PATH.

-----

1 point by noodle 5629 days ago | link

still have problems. it is in PATH, afaik. and i get the exact same error trying to execute from where its installed.

-----

1 point by shader 5629 days ago | link

The error message looks funny. Did you add the path yourself? What does your path variable look like?

It may be that you added the path including the file, when you're only supposed to include the directory.

-----

1 point by noodle 5629 days ago | link

everything i've done so far is all done from the installer. no hands-on anything.

-----