10

我从这里下载并使用 DMG for x86 安装了 SML NJ 实现:http: //smlnj.cs.uchicago.edu/dist/working/110.72/index.html

但是,当我打开终端窗口并转到 /usr/local/smlnj-110.72/bin 并运行 sml 时,我得到一个 bash 命令未找到。我对 UNIX 不是很熟悉,所以我想我做错了什么。

谢谢您的帮助!

4

2 回答 2

9

Add the following line to your ~/.bash_profile

export PATH=$PATH:/usr/local/smlnj/bin

Then open a new terminal window and run sml.

于 2013-09-12T19:08:34.170 回答
9

进入/usr/local/smlnj-xxx/bin目录后,您需要运行./sml (而不是sml),因为当前目录 ( .) 不在 Unix 的默认路径上。

于 2011-03-22T19:40:11.330 回答