Next: , Up: Getting started   [Contents]


1.1 Installation

mu-guile is part of mu - by installing the latter, the former is necessarily installed as well. At the time of writing, there are no distribution-provided packaged versions of mu-guile; so for now, you need to follow the steps below.

1.1.1 Guile 2.x

mu-guile is built automatically when mu is built, if you have guile version 2 or higher. (mu checks for this during configure). Thus, the first step is to ensure you have guile installed.

On Debian/Ubuntu you can install guile 2.x using the guile-2.0-dev package (and its dependencies):

$ sudo apt-get install guile-2.0-dev

At the time of writing, there are no official packages for Fedora1. If you are using Fedora or any other system that does not have packages, you need to compile guile from source2.

1.1.2 gnuplot

For creating graphs with mu-guile, you need the gnuplot program – most likely, there is a package available for your system; for example:

$ sudo apt-get install gnuplot

and in Fedora:

$ sudo yum install gnuplot

1.1.3 mu

Assuming guile 2.x is installed correctly, mu finds it during its configure-stage, and creates mu-guile. Building mu follows the normal steps – please see the mu documentation for the details.

The output of ./configure should end with a little text describing the detected versions of various libraries mu depends on. In particular, it should mention the guile version, e.g.

Guile version                        : 2.0.3.82-a2c66

If you don’t see any line referring to guile, please install it, and run configure again. After a succesfull ./configure, we can make and install the package:

$ make && sudo make install

1.1.4 mu-guile

After this, mu and mu-guile are installed – usually somewhere under /usr/local.You may need to update guile’s %load-path to find it there. You can check the current %load-path with the following:

guile -c '(display %load-path)(newline)'

If necessary, you can add the %load-path by adding to your ~/.guile:

(set! %load-path (cons "/usr/local/share/guile/site/2.0" %load-path))

Or, alternatively, you can set GUILE_LOAD_PATH:

export GUILE_LOAD_PATH="/usr/local/share/guile/site/2.0"

In both cases the directory should be the directory that contains the installed mu.scm; if you installed mu under a different prefix, you must change the %load-path accordingly. After this, you should be ready to go!


Footnotes

(1)

https://bugzilla.redhat.com/show_bug.cgi?id=678238

(2)

http://www.gnu.org/software/guile/manual/html_node/Obtaining-and-Installing-Guile.html#Obtaining-and-Installing-Guile


Next: , Up: Getting started   [Contents]