This tutorial installs STARTER from source release tarballs on GNU/Linux. The Autotools steps are the same everywhere; only how you install build dependencies changes. Use the tabs below for your distribution family.

Covers:

  • starter-core — controller
  • starter-debugger — CLI debugger
  • starter-configurable-service (STCS)
  • starter-configurable-adapter (STCA)
  • starter-addons — helpers and tools

By the end you should be able to run the binaries and have pkg-config find the libraries. Plant database setup is a separate tutorial.

1. Prerequisites

  • A supported GNU/Linux host with sudo (or root)
  • Network access for the package manager
  • Enough disk for builds (a few hundred MB)

Work in a directory you own:

mkdir -p ~/starter-src && cd ~/starter-src

2. Download the source packages

Release tarballs will be published on the Download page. Typical names:

starter-core-0.1.0.tar.xz
starter-debugger-0.1.0.tar.xz
starter-configurable-service-0.1.0.tar.xz
starter-configurable-adapter-0.1.0.tar.xz
starter-addons-0.1.0.tar.xz

Source packages are not published yet — they will appear on Download shortly. When they do, download all five archives into ~/starter-src and continue.

cd ~/starter-src
for f in starter-*-*.tar.xz starter-*-*.tar.gz; do
  [ -f "$f" ] || continue
  tar -xf "$f"
done

3. Install build dependencies

Pick your distribution family. Avahi is required for STARTER to work: install both the development libraries and the daemon so peers can discover each other over mDNS. texinfo provides makeinfo (used when building Info manuals).

Debian, Ubuntu, and derivatives — including free-software distros such as Trisquel and PureOS that follow the same apt layout.

sudo apt update
sudo apt install --no-install-recommends \
  build-essential \
  autoconf automake libtool pkg-config \
  flex bison gettext \
  texinfo \
  libglib2.0-dev \
  libavahi-client-dev libavahi-glib-dev \
  avahi-daemon \
  default-libmysqlclient-dev \
  libreadline-dev \
  libxml2-dev libjson-glib-dev libsoup-3.0-dev
  • Older Ubuntu: if libsoup-3.0-dev is missing, try libsoup2.4-dev.
  • Optional PDF manuals: texlive-base.
  • MariaDB/MySQL server comes in the Prepare the database tutorial.

4. Build and install order

Install starter-core first. STCS and addons look up starter-core (and related .pc files) via pkg-config. Order:

  1. starter-core
  2. starter-debugger
  3. starter-configurable-service (STCS)
  4. starter-configurable-adapter (STCA)
  5. starter-addons

After each make install, refresh the linker cache if libraries went under /usr/local/lib:

sudo ldconfig
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"

Put that PKG_CONFIG_PATH in ~/.bashrc if /usr/local is not already searched (common on Fedora/RHEL and sometimes Debian).

4.1 starter-core

cd ~/starter-src/starter-core-*
./configure
make -j"$(nproc)"
sudo make install
sudo ldconfig
pkg-config --modversion starter-core
command -v starter-core

4.2 starter-debugger

cd ~/starter-src/starter-debugger-*
./configure
make -j"$(nproc)"
sudo make install
command -v starter-debugger
starter-debugger --version

4.3 starter-configurable-service (STCS)

Needs starter-core visible to pkg-config.

cd ~/starter-src/starter-configurable-service-*
./configure
make -j"$(nproc)"
sudo make install
sudo ldconfig
pkg-config --modversion starter-configurable-service
command -v starter-configurable-service

4.4 starter-configurable-adapter (STCA)

cd ~/starter-src/starter-configurable-adapter-*
./configure
make -j"$(nproc)"
sudo make install
sudo ldconfig
pkg-config --modversion starter-configurable-adapter
command -v starter-configurable-adapter

4.5 starter-addons

Build last so core / STCS / STCA .pc files exist. Categories default to auto.

cd ~/starter-src/starter-addons-*
./configure
make -j"$(nproc)"
sudo make install
command -v current-time
command -v sun-position
command -v starter-db

5. Smoke check

pkg-config --exists starter-core \
  starter-configurable-service \
  starter-configurable-adapter && echo "pkg-config: OK"

for b in starter-core starter-debugger \
         starter-configurable-service starter-configurable-adapter \
         current-time sun-position starter-db; do
  command -v "$b" >/dev/null && echo "ok  $b" || echo "MISSING  $b"
done

Next: prepare the plant database — Prepare the database. Then start starter-core and attach peers; see Documentation.

6. Troubleshooting

Symptom What to check
Package requirements (starter-core) were not met Install core first; set PKG_CONFIG_PATH to /usr/local/lib/pkgconfig.
Binary not found after install Ensure /usr/local/bin is on PATH.
error while loading shared libraries sudo ldconfig; confirm libs under /usr/local/lib.
libsoup / mysqlclient not found Install the alternate -devel package noted in your distro tab; re-run ./configure.
Peers never appear avahi-daemon installed and running; firewall not blocking mDNS.

If something still fails, ask on the forum with the ./configure or make log.