The new Self Linux VM is available for download in binary form from the Self website. For most purposes this will be the easiest way to get Self running on Linux.
Nevertheless, Self is an open source language and so the source for the VM is available. If you wish to compile Self on Linux, it is quite easy and straightforward.
The binary available on selflanguage.org was compiled on Ubuntu 7.04 running in VMWare on a Macbook Pro. The version of GCC was 4.1.2. Later versions of GCC should work, but will give a lot of warnings (“deprecated conversion from string constant to char*” – just ignore it).
From a clean Ubuntu 7.04, I installed:
- libc6-dev
- g++
- flex-old
- build-essentials
- xorg-dev
- libncurses5-dev
I then got a copy of the source from the Self Github repository:
git clone git://github.com/russellallen/self.git
I then cd into the Self directory and:
cd release
chmod a+x buildLinuxVM
./buildLinuxVM
This should build a stripped Linux VM and put it in the top level of your source directory.
[…] Howto: Compile the Self VM on LinuxSelf on Planet SmalltalkTopics: MacBook Pro, MacBook […]
Hi,
I tried these instructions on Mac OS X 10.6 with Xcode 4.0.2. I replaced ./buildLinuxVM with ./buildMacOSXVM. But the build fails on makeDeps.
/bin/sh -c “\”/Users/d3atiq/projects/Self/self/vm/mac_osx/vm_project/build/vm_project.build/Optimized Self/Self.build/Script-BC9F9E750558F27700ECBD80.sh\””
Updating include dependency database
make: ../../../bin/mac_osx/makeDeps: No such file or directory
Thanks in advance.
— Douglas
Hi,
Here is some information on how to build Self on Mac OS X, according to my own experience.
http://d3atiq.wordpress.com/2011/05/19/building-self-on-mac-os-x/
— Douglas