We've launched our new site at www.openlighting.org. This wiki will remain and be updated with more technical information.
Difference between revisions of "OLA on Linux"
From wiki.openlighting.org
(→Install libraries) |
|||
Line 1: | Line 1: | ||
− | + | This describes how to get [[OLA]] working on a Linux system either from the git repo or by using a [http://code.google.com/p/linux-lighting/downloads/list released tarball]. | |
− | + | =Checkout or Download an Archive= | |
− | + | Either download a tarball from the releases page, or check out the git repo with the following command: | |
git clone http://www.nomis52.net/git/lla | git clone http://www.nomis52.net/git/lla | ||
− | If you don't have | + | If you don't have '''git''' yet, you'll need to install it with your distro's package manager. |
− | + | =Install libraries= | |
You need a couple of libraries installed for everything to work correctly. Some of these are available as packages in distros but others need to be downloaded and built manually. | You need a couple of libraries installed for everything to work correctly. Some of these are available as packages in distros but others need to be downloaded and built manually. | ||
Line 42: | Line 42: | ||
$ sudo ldconfig | $ sudo ldconfig | ||
− | + | =Configure= | |
If you checked out the sources from git, you'll need to run | If you checked out the sources from git, you'll need to run | ||
Line 52: | Line 52: | ||
./configure | ./configure | ||
− | + | =Building & Testing= | |
Build | Build |
Revision as of 15:04, 14 March 2010
This describes how to get OLA working on a Linux system either from the git repo or by using a released tarball.
Checkout or Download an Archive
Either download a tarball from the releases page, or check out the git repo with the following command:
git clone http://www.nomis52.net/git/lla
If you don't have git yet, you'll need to install it with your distro's package manager.
Install libraries
You need a couple of libraries installed for everything to work correctly. Some of these are available as packages in distros but others need to be downloaded and built manually.
First up you'll need the following:
- cppunit
- uuid or ossp uuid
- pkg-config
- curses
Debian/Ubuntu users can install them with apt:
apt-get install libcppunit-dev libcppunit-1.12-1 uuid-dev pkg-config libncurses5-dev
Next, you need Protocol Buffers http://code.google.com/p/protobuf/ version 2.1.0 or above from Google (BSD license). Most likely, you'll need to download and build them yourself.
Debian (and Ubuntu) users can, in some cases, use the following packets (not yet in stable): libprotobuf2 (libprotobuf3), libprotobuf-dev, protobuf-compiler
Finally, if you want to use the built in webserver, you'll need microhttpd and ctemplate. Note: you'll need version >= 0.4.0 of microhttpd else you will get errors:
Once everything is installed, run ldconfig as root to pick up the new libraries
$ sudo ldconfig
Configure
If you checked out the sources from git, you'll need to run
autoreconf -i
After that run
./configure
Building & Testing
Build
make
If you get an error like the following:
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I/opt/local/var/macports/software/protobuf-cpp/2.0.3_0/opt/local/include/ -g -O2 -c -o ltdl.lo ltdl.c ./libtool: line 464: CDPATH: command not found /Users/simonn/lighting/lla/libltdl/libtool: line 464: CDPATH: command not found /Users/simonn/lighting/lla/libltdl/libtool: line 1142: func_opt_split: command not found libtool: Version mismatch error. This is libtool 2.2.6, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6 libtool: and run autoconf again.
Your system uses a different version of libtool. Run:
libtoolize --ltdl -c -f
and then start from the autoreconf step again.
Run the tests
make check
And install OLA
sudo make install sudo ldconfig