Reputation: 1465
I followed this instruction http://smlnj.cs.uchicago.edu/dist/working/110.70/NOTES/INSTALL
and install smlnj on mu laptop(ubuntu).
However, when I want run run the sml I have to change to /usr/share/smlnj/bin/ and run ./sml
before I can use sml.
I read something before, that I can add it to my PATH? so that I can run ./sml without going to that directory?
Upvotes: 0
Views: 735
Reputation: 42915
Well, either add /usr/share/smlnj/bin
to your PATH env variable, or make a symlink to the command in a standard folder like /usr/bin
, or write a small wrapper script which would also allow you to make additional adjustments like working directory, further environment variables and the like...
Upvotes: 3