Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed smlnj using sudo apt-get install smlnj, but when I try to run it on the CLI using sml, I get this error /usr/lib/smlnj/bin/.run/run.x86-linux: 1: Syntax error: "(" unexpected.

I found this documentation that suggested that you also need to have 32-bit support, so I also installed these suggested packages: apt-get install gcc-multilib g++-multilib ia32-libs, but I still get the same error. Is there a different package that I need, or do I need to add something to my bash configuration to get this to work?

share|improve this question

Try re-installing, running these commands:

For 32bit:

wget; sudo dpkg -i ./smlnj_110.72-1_i386.deb; rm ./smlnj_110.72-1_i386.deb; sudo apt-get -f install

For 64bit:

wget; sudo dpkg -i ./smlnj_110.72-1_amd64.deb; rm ./smlnj_110.72-1_amd64.deb; sudo apt-get -f install
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.