Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Latest commit

 

History

History
128 lines (87 loc) · 2.71 KB

INSTALL.org

File metadata and controls

128 lines (87 loc) · 2.71 KB

Installation Instructions

Installing Sly is rather easy (but not easy enough) if you are on a GNU/Linux system. This installation guide assumes that you have the GNU build system (automake, autoconf, texinfo, pkg-config) and git installed.

Install dependencies

Guile

Debian

sudo apt-get install guile-2.0-dev

This assumes that the version of Debian you are running has Guile 2.0.11.

Gentoo

sudo emerge ">=dev-scheme/guile-2.0.11"

Check the versions available to you with sudo apt-cache show guile-2.0-dev.

SDL

SDL is a very popular, cross-platform game library.

Debian

sudo apt-get install libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev

Gentoo

sudo emerge libsdl sdl-image sdl-mixer sdl-ttf

Freeimage

Freeimage is to used to load textures. Make sure that your distro provides at least version 3.14.

Debian

sudo apt-get install libfreeimage-dev

Gentoo

sudo emerge freeimage

guile-sdl

guile-sdl is the GNU Guile wrapper for SDL.

Grab the latest release tarball from http://www.gnu.org/software/guile-sdl/.

Source

tar xf guile-sdl-<version>.tar.xz
cd guile-sdl-<version>/
./configure --prefix=/usr
make
sudo make install

Note: guile-sdl is currently broken on OS X. Please see this issue for more information: davexunit/guile-2d#2

guile-opengl

Source

guile-opengl is the GNU Guile wrapper for OpenGL.

Grab the latest release tarball from http://ftp.gnu.org/gnu/guile-opengl/.

tar -xvf guile-opengl-<version>.tar.gz
cd guile-opengl/
./configure --prefix=/usr
make
sudo make install

Install Sly

Once the dependencies have been installed, installing Sly is pretty straightforward.

GNU/Linux

git clone https://gitorious.org/sly/sly.git
cd sly/
./autogen.sh
./configure --prefix=/usr
make
sudo make install

Install to /usr/local

If you want to avoid installing to /usr, you can build like this:

./configure
GUILE_LOAD_PATH=/usr/local/share/guile/site/2.0/:/usr/local/share/guile/site/ make
sudo make install

Then use the same call to run guile:

GUILE_LOAD_PATH=/usr/local/share/guile/site/2.0/:/usr/local/share/guile/site/ guile