Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 http://www.smlnj.org/dist/working/110.75/NOTES/INSTALL 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

1 Answer 1

Try re-installing, running these commands:

For 32bit:

wget http://launchpadlibrarian.net/48337000/smlnj_110.72-1_i386.deb; sudo dpkg -i ./smlnj_110.72-1_i386.deb; rm ./smlnj_110.72-1_i386.deb; sudo apt-get -f install

For 64bit:

wget http://launchpadlibrarian.net/48558006/smlnj_110.72-1_amd64.deb; 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.