4
1

The mosml package from Peter Sestofts homepage does not compile at all on 64 bit Linux and under certain circumstances not on 32 bit either. In the past there was a mosml-pakke in the Ubuntu packaging system, but it has been removed. How do get mosml running on my machine?

asked 30 Aug '12, 14:42

Munksgaard's gravatar image

Munksgaard
116115
accept rate: 66%


Update: As part of the preparations for this years course in Introduction to Programming, Moscow ML 2.10 has been released: http://mosml.org. My answer has been updated to reflect the changes. The comments below should also be disregarded, as they don't apply any more.

Furthermore, a binary package for Ubuntu 13.04 has been compiled, and is available through my personal Launchpad PPA. To install it, run:

$ sudo apt-add-repository ppa:pmunksgaard/mosml
$ sudo apt-get update
$ sudo apt-get install mosml

As I have understood, binary packages for Windows and Mac will also be provided, and I will update this answer as they become available.

A windows installer that also includes Emacs and SML-mode can be acquired from Sebbe's webpage here: http://mathemaniac.org/apps/ip-pakken/

Though not necessary, it is also possible to compile Moscow ML yourself (assuming that you have installed the build-essential package on Ubuntu, or the equivalent packages on other distributions) by first checking out the source:

$ git clone https://github.com/kfl/mosml
$ cd mosml/src

Then set the variable MOSMLHOME in the file Makefile.inc. It could look like one of the following:

MOSMLHOME=${HOME}/mosml   # this places mosml in a separate directory in your home directory
MOSMLHOME=/opt/mosml      # this places mosml in a separate system directory
MOSMLHOME=/usr/local      # this places mosml together with other installed software

Finally compile and install it by running

$ make world
$ sudo make install
link

answered 30 Aug '12, 14:43

Munksgaard's gravatar image

Munksgaard
116115
accept rate: 66%

edited 04 Sep '13, 21:52

Simon%20Shine's gravatar image

Simon Shine ♦
384310

Note, this is 2.10 and not 2.01. 2.10 has changed some things in the basis library, such as changing type on TextIO.inputLine, and thus isn't necessarily optimal for usage in IP. Ask your instructor if you plan to use it for that purpose. The changes can be seen in releases.txt.

(30 Aug '12, 17:15) Sebastian Pa... ♦♦ Sebastian%20Paaske%20T%C3%B8rholm's gravatar image

Be aware, that you will need git and the package build-essential for this to work.To be sure you have the right tools

sudo apt-get install build-essential checkinstall git-core
(30 Aug '12, 18:10) Brunsgaard Brunsgaard's gravatar image
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×122
×7
×4
×2

Asked: 30 Aug '12, 14:42

Seen: 2,767 times

Last updated: 04 Sep '13, 21:52

powered by OSQA