Tutorials Install from source
Install from source
Build and install core, debugger, STCS, STCA, and addons — Debian, Fedora/RHEL, Arch, or Guix System.
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-devis missing, trylibsoup2.4-dev. - Optional PDF manuals:
texlive-base. - MariaDB/MySQL server comes in the Prepare the database tutorial.
Fedora, CentOS Stream, Rocky Linux, AlmaLinux (dnf). On older RHEL-like hosts, yum is equivalent.
sudo dnf install \
gcc gcc-c++ make \
autoconf automake libtool pkgconf-pkg-config \
flex bison gettext \
texinfo \
glib2-devel \
avahi-devel avahi-glib-devel avahi \
mariadb-connector-c-devel \
readline-devel \
libxml2-devel json-glib-devel libsoup3-devel
- If
mariadb-connector-c-develis unavailable, trycommunity-mysql-devel/mysql-devel(providesmysqlclientfor pkg-config). - If
libsoup3-develis missing, trylibsoup-devel(libsoup 2.x). - Ensure the Avahi service is running:
sudo systemctl enable --now avahi-daemon.
Arch Linux (and Arch-based systems that use official repos the same way).
sudo pacman -Syu --needed \
base-devel \
autoconf automake libtool pkgconf \
flex bison gettext \
texinfo \
glib2 \
avahi \
mariadb-libs \
readline \
libxml2 json-glib libsoup3
base-develpulls the compiler toolchain (gcc,make, …).avahiincludes the daemon; enable it:sudo systemctl enable --now avahi-daemon.mariadb-libsprovides the MySQL client library for linking; the server is installed in the database tutorial.
Guix System is a GNU project free system distribution (100% free software). Use a development shell with the libraries STARTER needs, then build the tarballs as usual. Enable Avahi in your system services so peers can discover each other.
guix shell --pure \
gcc-toolchain make autoconf automake libtool pkg-config \
flex bison gettext texinfo \
glib avahi \
mariadb readline libxml2 json-glib libsoup \
-- bash
Inside that shell, ./configure && make && make install for each package (see below). For a persistent profile instead of a one-off shell:
guix install gcc-toolchain make autoconf automake libtool pkg-config \
flex bison gettext texinfo \
glib avahi mariadb readline libxml2 json-glib libsoup
- On Guix System, add an Avahi Shepherd service to your
operating-systemand reconfigure so mDNS works at runtime. - Install prefix defaults may differ; set
PKG_CONFIG_PATH/LD_LIBRARY_PATHfromguix shell/ your profile when linking against Guix libraries. - MariaDB server setup is in Prepare the database (Guix tab).
4. Build and install order
Install starter-core first. STCS and addons look up starter-core (and related .pc files) via pkg-config. Order:
- starter-core
- starter-debugger
- starter-configurable-service (STCS)
- starter-configurable-adapter (STCA)
- 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.