-
-
Notifications
You must be signed in to change notification settings - Fork 132
1. Build and install
John edited this page Dec 27, 2016
·
26 revisions
Building ebusd from the source requires the following packages and/or features on your build system:
- autoconf (>=2.63)
- automake (>=1.11)
- g++
- make
- kernel with pselect or ppoll support
- glibc with argp support or argp-standalone
(see --with-argp-lib and --with-argp-include options of configure script)
dpkg install git autoconf automake g++ make
pacman -S git autoconf automake gcc make
brew install automake autoconf argp-standalone
In order to build ebusd, follow these steps:
- Get the source
For the time being, ebusd is only available on git. If you have git installed, simply type:
git clone https://github.com/john30/ebusd.git
cd ebusd
- Configure your directory structure
The default destination of the compiled ebusd binary is /usr/bin/ebusd. If that's fine for you, simply type:
./autogen.sh
If you prefer having the ebusd binary in another directory, you have to adjust the prefix, e.g. like this:
./autogen.sh --prefix=/usr/local
In case you want to get a debuggable version of the binaries, you can simply change the environment variable CXXFLAGS before invoking ./autogen.sh (actually ./configure), e.g.:
CXXFLAGS="-g -O0 -ggdb" ./autogen.sh
- Compile the source
To compile it, simply type:
make
After that, you should be able to run it directly and get the command line help like this:
./src/ebusd/ebusd --help
To install the binaries together with an init script on the local machine, type:
make install