在 OS X 上安装 Arc [英] Installing Arc on OS X

查看:67
本文介绍了在 OS X 上安装 Arc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 https://arclanguage.github.io/ 上尝试说明时,在我输入球拍 -f as.scm"我得到了-bash:球拍:找不到命令".

When I tried the instructions at https://arclanguage.github.io/, after I entered "racket -f as.scm" I got "-bash: racket: command not found".

我也尝试了这些在 Linux 上下载 Arc 的说明:https://sites.google.com/site/arclanguagewiki/getting-started/安装弧我从 download.racket-lang.org 安装了 racket,当我到达 Arc/Nu 部分的./arc"时,终端的输出是env: racket: No such file or directory".

I also tried these instructions for downloading Arc on Linux: https://sites.google.com/site/arclanguagewiki/getting-started/install-arc I installed racket from download.racket-lang.org, and when I got to "./arc" in the Arc/Nu section, the output from the terminal was "env: racket: No such file or directory".

Arc Language Wiki(链接到上面)表明官方安装说明已经过时,并且几乎没有说明如何在 OS X 上安装 Arc.我尝试在谷歌上搜索找不到命令"和的通用解决方案"没有这样的文件或目录"问题,但找不到任何让我解决问题的东西.我还尝试将球拍和弧形下载移动到不同的位置组合.

The Arc Language Wiki (linked to above) indicates that the official installation instructions are out of date, and says little about how to install Arc on OS X. I tried googling for a general solution to "command not found" and "No such file or directory" problems but couldn't find anything that let me fix the problem. I also tried moving my racket and arc downloads to different combinations of places.

推荐答案

Arc 运行在 Racket 之上,尽管您已经下载了它,但它似乎不在 PATH 中,该环境变量包含 Bash 的文件夹列表搜索可执行文件.

Arc runs on top of Racket, which although you've downloaded it, does not appear to be in PATH, the environment variable containing the list of folders that Bash searches for executables.

直接的解决方法是,将 Arc 运行为 /path/to/racket/bin/racket -f as.scm,而不是将 Arc 运行为 racket -f as.scm/代码>.(Racket 文档指出 Racket 可执行文件位于 Racket 的 bin 文件夹中您下载的文件夹).

The immediate fix is to, instead of running Arc as racket -f as.scm, run it as /path/to/racket/bin/racket -f as.scm. (The Racket documentation points out that the Racket executable is in the bin folder of the Racket folder you downloaded).

假设可行,修复方法是将 Racket bin 文件夹添加到您的 PATH 变量中.在您喜欢的文本编辑器中打开 ~/.bashrc,并添加一行 export PATH=/path/to/racket/bin:"$PATH".

Assuming that works, the fix is to add the Racket bin folder to your PATH variable. Open up ~/.bashrc in your favorite text editor, and add a line export PATH=/path/to/racket/bin:"$PATH".

执行此操作后,您必须打开一个新终端,此更改才会生效.但是一旦你这样做了,你应该可以只运行 racket -f as.scm,它就会工作.

Once you do this, you'll have to open a new Terminal before this change will take effect. But once you do, you should be able to just run racket -f as.scm, and it will work.

这篇关于在 OS X 上安装 Arc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆