|
|
| (25 intermediate revisions by 11 users not shown) |
| Line 1: |
Line 1: |
| − | This page describes how to get LLA 0.3 working on OS X.
| + | #REDIRECT [[Download_%26_Install_OLA#Mac_OS_X]] |
| − | | |
| − | == Basic setup ==
| |
| − | | |
| − | * Install xcode [[http://developer.apple.com/technology/xcode.html]]
| |
| − | * install git [[http://code.google.com/p/git-osx-installer/]]
| |
| − | * install mac ports [[http://www.macports.org/]]
| |
| − | | |
| − | == Use Mac Ports to install stuff==
| |
| − | | |
| − | $ port install pkgconfig cppunit unittest-cpp
| |
| − | | |
| − | == Set some env vars==
| |
| − | | |
| − | set $PATH to point to something sane (you should also make sure you point it at your ctemplate and libmicrohttpd)
| |
| − | | |
| − | export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
| |
| − | export CPPFLAGS="-I/opt/local/var/macports/software/protobuf-cpp/2.0.3_0/opt/local/include/"
| |
| − | export LDFLAGS="-L/opt/local/var/macports/software/protobuf-cpp/2.0.3_0/opt/local/lib/"
| |
| − | | |
| − | == Installed protobuf libraries ==
| |
| − | | |
| − | http://code.google.com/p/protobuf/
| |
| − | | |
| − | | |
| − | == Optionally install microhttpd and ctemplate==
| |
| − | | |
| − | If you want the http interface you need these
| |
| − | | |
| − | * http://www.gnu.org/software/libmicrohttpd/ [>= 0.4] (Currently you need to install libgcrypt too for this library to work)
| |
| − | sudo port install libgcrypt
| |
| − | or you can disable https support (which should work with LLA just fine) by using the configure line "./configure --enable-https=no"
| |
| − | * http://code.google.com/p/google-ctemplate/
| |
| − | | |
| − | * Make sure both of these are made AND installed before running "./configure" on LLA otherwise it will not detect the libraries and ignore all the HTTP server code
| |
| − | | |
| − | == Checkout LLA ==
| |
| − | | |
| − | git clone http://www.nomis52.net/git/lla
| |
| − | cd lla
| |
| − | | |
| − | == Run reautoconf==
| |
| − | | |
| − | If this is the first time run with -i to install the missing files
| |
| − | | |
| − | autoreconf -i
| |
| − | | |
| − | == Do the usual steps==
| |
| − | | |
| − | ./configure
| |
| − | make
| |
| − | make check
| |
| − | sudo make install
| |
| − | | |
| − | 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:
| |
| − | | |
| − | glibtoolize --ltdl -c -f
| |
| − | | |
| − | and then start from the autoreconf step again.
| |