11

I downloaded and installed the SML NJ implementation using the DMG for x86 from here : http://smlnj.cs.uchicago.edu/dist/working/110.72/index.html

However when I open a terminal window and go to /usr/local/smlnj-110.72/bin and run sml i get a bash command not found. I am not very familiar with UNIX so I guess I am doing something wrong.

Thanks for the help!

user671382
  • 111
  • 1
  • 3

2 Answers2

10

Add the following line to your ~/.bash_profile

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

Then open a new terminal window and run sml.

justspamjustin
  • 1,730
  • 3
  • 19
  • 30
9

After going to the /usr/local/smlnj-xxx/bin directory, you need to run ./sml (as opposed to sml) because the current directory (.) is not on the default path on Unix.

Martin Klinke
  • 7,294
  • 5
  • 42
  • 64