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 that I should be downloading. I've tried SML/NJ and MLton to no avail.
A Mac user can also use
$ brew install smlnj
Add path similar to /usr/local/Cellar/smlnj/110.82/libexec/bin
to your .bash_profile.
$ source ~/.bash_profile
See this article for more information.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With