Elektra
0.9.9
|
This document is intended for developers who want to get started with developing with Elektra.
Operating system
We recommend a Unix-based operating system to run Elektra (Linux, BSD, macOS) but it's also possible to use Windows which is supported but not yet fully tested.
Using command-line interface and commands
The easiest way to compile, install and use Elektra is by using the terminal. We will introduce the basic commands which you will need to run Elektra for the very first time.
Basic knowledge about git
Don't panic! GIT is a distributed version control system to track changes of the source code in a project. We will use a single GIT command to get the source code of Elektra.
Basic knowledge about make/cmake
make or cmake are used to generate an executable program from the code. If you are not used to these tools, it's not a problem, we will introduce them to you in later sections.
We also need your skill set to improve Elektra
You can contribute to Elektra to improve the source code, website, documentation, translation etc.
We need to install some basic tools to run Elektra: cmake, git and essential build tools (make, gcc, and some standard Unix tools; alternatively ninja and clang are also supported but not described here). Depending on your Linux distribution use the following commands to install these tools:
Or on RPM (Red Hat Package Manager) based systems (like Fedora, openSUSE, CentOS etc.):
Or on macOS, most of the build tools can be obtained by installing Xcode. Other required tools may be installed using brew. First, install brew as described on their website. Then issue the following command to get cmake to complete the basic requirements:
If you meet all the software requirements you can get the source code of Elektra by using this command:
Run the following commands to compile Elektra with non-experimental plugins where your system happens to fulfill the dependencies:
Optionally you can also run tests, see here for more information:
With these commands you will be able to run the "Hello World!" example, but usually you will need to use some of the plugins, tools and bindings of Elektra. Please take a look at the more detailed compiling documentation. After you completed building Elektra on your own, you can execute these commands to install Elektra (please check the installation documentation for the many available packages):
Installation documentation contains further information about available packages.
Optionally you can also run tests to verify the installed Elektra, see here for more information:
Start with your very first Elektra application in C and follow these steps: Hello World!