1

I'm a bit lost. Typically getting something programming related working on Ubuntu is painless while Windows always a pain. Not the case this time around. I followed the instructions from here...

http://smlnj.org/dist/working/110.79/index.html

"The only file you need to download manually is config.tgz. Unpack, configure by editing config/targets, and install by running config/install.sh."

I added a folder to home with the label "smlnj", extracted the files and then ran the setup

After that, I added the path...

sudo gedit ~/.bashrc
export PATH=$PATH:/home/andyd/smlnj

When I type "sml" at the terminal, I get the following message...

"The program 'sml' is currently not installed. You can install it by typing: sudo apt-get install smlnj"

Not sure why I'm getting that. I would be totally fine with just doing apt-get but I need version 117.90 for class and apt-get keeps installing 117.82.

Anyone able to help me with this? I'm still a bit of a novice when it comes to Linux

cpd1
  • 2,503

1 Answers1

0

From the INSTALL file:

 2.5.  What needs to be on my PATH?
 ----------------------------------
  • You should include $d/bin into your PATH.

i.e. if you have installed into directory d=/home/andyd/smlnj then you should export PATH=$PATH:/home/andyd/smlnj/bin

BTW it is bad practice to use sudo to edit files in your own user directory, and bad practice to use plain sudo at all with GUI applications like gedit: it can lead to unexpected file ownership issues.

steeldriver
  • 142,475