How do I install a working version of Standard ML on Mac?

后端 未结 5 824
灰色年华
灰色年华 2021-01-05 20:17

I\'m using Mac OSX 10.7.5 and I can\'t seem to get download a working Standard ML compiler with a REPL available. Is this supposed to be so difficult? Is there a best ML t

5条回答
  •  不知归路
    2021-01-05 20:28

    I did the following:

    --download appropriate(for your operating system) .dmg file from http://www.smlnj.org/dist/working/110.75/

    --in your ~/.bash_profile: export PATH="$PATH:/usr/local/smlnj-110.75/bin"

    --run your bash_profile by doing source .bash_profile

    --go to terminal and type sml.

    I personally use sml mode for emacs. Add the following to your .emacs file and make sure that sml mode is installed in your emacs from M-list-packages.

    (setenv "PATH" (concat "/usr/local/smlnj-110.75/bin:" (getenv "PATH")))

    (setq exec-path (cons "/usr/local/smlnj-110.75/bin" exec-path))

    You can start sml REPL in emacs by doing C-c C-s.

提交回复
热议问题