Problem starting smlnj under OSX 10.6

I downloaded and installed the SML NJ implementation using DMG for x86: 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 that was not found. I am not very familiar with UNIX, so I think I'm doing something wrong.

Thanks for the help!

+8
sml macos smlnj
source share
2 answers

Going to the /usr/local/smlnj-xxx/bin , you need to run ./sml (unlike sml ) because the current directory ( . ) Is not located by default on Unix.

+8
source share

Add the following line to your ~ / .bash_profile

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

Then open a new terminal window and run sml.

+8
source share

All Articles