MzScheme No More

As I was reading "Teach Yourself Scheme in Fixnum Days", which surprisingly have its own Wikipedia page, and eager to try out the Scheme tutorial in my recently upgraded Ubuntu 15.04 and noticed that that MzScheme is not available anymore in the repository.

$ sudo apt-get install mzscheme
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package mzscheme is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'mzscheme' has no installation candidate

Checking the MzScheme official site, I've learned that MzScheme is the core virtual machine of the PLT Scheme and PLT Scheme has been renamed to Racket to show that it is a descendant instead of variant of Scheme.

Searching the repository for any Racket packages.
$ sudo apt-cache search ^racket
plt-scheme - Racket Programming Environment (transitional package)
racket - extensible programming language in the Scheme family
racket-common - extensible programming language in the Scheme family (shared files)
racket-doc - extensible programming language in the Scheme family (documentation)

Since PLT Scheme is a transitional package, installing it will let us install Racket as well.
$ sudo apt-get install plt-scheme
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  racket racket-common racket-doc
The following NEW packages will be installed:
  plt-scheme racket racket-common racket-doc
0 upgraded, 4 newly installed, 0 to remove and 98 not upgraded.
Need to get 64.2 MB of archives.
After this operation, 390 MB of additional disk space will be used.
Do you want to continue? [Y/n]

To test our installation.
$ mzscheme 
Welcome to Racket v6.1.
> 

Let's try our first hello world example in Scheme.
;The first program

(begin
  (display "Hello, World!")
  (newline))

Execute the program from console.
$ mzscheme -r hello.scm 
Hello, World!

No comments:

Post a Comment