Patch: Instructions for Installing Open Dylan 2014.1 on Ubuntu 14.04.2

Patch Pony <[email protected]> Thu, 23 Jul 2015 19:58:14 +0000 (UTC)
Newsgroups gmane.comp.lang.dylan.gwydion.devel
Message-ID <[email protected]>
Submitted for your approval, the process of installing OD 2014.1 on Linux (Ubuntu 14.04.2)  Could be used as the basis for supplementary notes for Linux.


(Use by: 4/2016 for maximum freshness.)


Thank you,

--Patch Pony

----8<----snip----8<----

[Started at 19:29PM 7/17/2015]

# Booted Ubuntu 14.04.2 Live
ubuntu@ubuntu:~$ uname -a
Linux ubuntu 3.16.0-30-generic #40~14.04.1-Ubuntu SMP Thu Jan 15 17:43:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

# Installed emacs24
ubuntu@ubuntu:~$ sudo apt-get install emacs
Reading package lists... Done
Building dependency tree 
Reading state information... Done
The following extra packages will be installed:
emacs24 emacs24-bin-common emacs24-common emacs24-common-non-dfsg
emacsen-common imagemagick-common libfftw3-double3 libgif4 liblqr-1-0
libm17n-0 libmagickcore5 libmagickwand5 libotf0 m17n-contrib m17n-db
...

# Untarred Open Dylan 2014.1
sudo tar xvjf /media/ubuntu/4684-F62A/opendylan-2014.1-x86_64-linux.tar.bz2
...

# Installed libgc-dev
sudo apt-get install libgc-dev
...

# Setup environment variables
ubuntu@ubuntu:/opt/opendylan-2014.1$ export PATH=/opt/opendylan-2014.1/bin:$PATH    # for bash

# Read
# https://opendylan.org/documentation/getting-started-ide/console.html#dylan-interactor-mode-for-emacs-dime

# Downloaded dylan-mode package from: https://github.com/dylan-lang/dylan-mode [Download ZIP]
# Uzipped, renamed, and moved
ubuntu@ubuntu:~/Downloads$ unzip dylan-mode-master.zip 
Archive:  dylan-mode-master.zip
...
ubuntu@ubuntu:~/Downloads$ mv dylan-mode-master dylan-mode
ubuntu@ubuntu:~/Downloads$ sudo mv dylan-mode /opt/opendylan-2014.1/

# Created the hello-world app
ubuntu@ubuntu:~$ mkdir OD
ubuntu@ubuntu:~$ cd OD
ubuntu@ubuntu:~/OD$ export PATH=/opt/opendylan-2014.1/bin:$PATH
ubuntu@ubuntu:~/OD$ make-dylan-app hello-world
ubuntu@ubuntu:~/OD$ cd hello-world
ubuntu@ubuntu:~/OD/hello-world$ dylan-compiler -build hello-world.lid
...
ubuntu@ubuntu:~/OD/hello-world$ _build/bin/hello-world
Hello, world!

# Created a source registry
ubuntu@ubuntu:~/OD$ mkdir -p src/registry/generic
ubuntu@ubuntu:~/OD$ mv hello-world/ src
ubuntu@ubuntu:~/OD$ echo abstract://dylan/hello-world/hello-world.lid > src/registry/generic/hello-world
ubuntu@ubuntu:~/OD$ export OPEN_DYLAN_USER_REGISTRIES=`pwd`/src/registry

# Edited the ~ubuntu/.emacs file:
(add-to-list 'load-path "/opt/opendylan-2014.1/dylan-mode")
(setq inferior-dylan-program "/opt/opendylan-2014.1/bin/dswank")
(require 'dime)
(dime-setup '(dime-dylan dime-repl))
(setenv "OPEN_DYLAN_USER_REGISTRIES" "/home/ubuntu/OD/src/registry")

# Setup a dime-test app
ubuntu@ubuntu:~/OD/src$ export PATH=/opt/opendylan-2014.1/bin:$PATH
ubuntu@ubuntu:~/OD/src$ echo abstract://dylan/dime-test/dime-test.lid > registry/generic/dime-test
ubuntu@ubuntu:~/OD/src$ make-dylan-app dime-test
ubuntu@ubuntu:~/OD/src$ cd dime-test/
ubuntu@ubuntu:~/OD/src/dime-test$ emacs dime-test.dylan

# Key bindings don't seem to be working in the source buffer (C-c M-p, for example)
# Possible GC problem (look in *dylan-inferior* buffer for message)

[Ended 21:13 7/17/2015]
----8<----snip----8<----