Manual installation
Requirements
To build Chrysalide from scratch, the following tools are needed:
- autoconf
- automake
- make
- bison
- flex
- gettext
- libtool
- git
- libgtk-3-dev
- libxml2-dev
- python3-dev
- python-gi-dev
- libarchive-dev
- libsqlite3-dev
- libssl-dev
On systems running Debian, you can simply execute:
apt-get install autoconf automake make bison flex gettext libtool git libgtk-3-dev libxml2-dev python3-dev python-gi-dev libarchive-dev libsqlite3-dev libssl-dev
Getting the source code
To grab the source code, you can check out the repository using Git over HTTP:
git clone http://git.0xdeadc0de.fr/chrysalide.git
Setup the configuration
Simply run the convenient autogen.sh script:
cd chrysalide
./autogen.sh
Then define the way the program will be built:
./configure --prefix=/usr/local --enable-silent-rules
You can also choose to install Chrysalide into an easy-to-clean directory:
./configure --prefix=/tmp/RemoveMeLater --enable-silent-rules
In that case, you have to either:
- add
/tmp/RemoveMeLater/lib
into/etc/ld.so
.conf to tell the system where the libraries can be located. - or export LD_LIBRARY_PATH=/tmp/RemoveMeLater/lib in your terminal before launching Chrysalide.
Final steps
Build the program:
make
Install it, as root if needed:
make install
Without exporting LD_LIBRARY_PATH, the system cache of directories in which to search for libraries needs to be updated (as root
):
ldconfig
In order to be able to use the Python bindings directly from a regular Python interpreter, an environment variable has to point to the location of the pychrysalide.so
file:
export PYTHONPATH=/usr/local/lib/chrysalide-plugins/
Particularities for the debug mode
Requirements
In addition to the basic items, the following pieces of software get mandatory:
- python3-dbg
- python-gi-dbg
The relative Debian command used to install them is:
apt-get install python3-dbg python3-gi-dbg
In order to enjoy beautiful traces, it is a good idea to install GTK symbols, too:
apt-get install libgtk-3-0-dbg
Configuration
It is the same as the basic configuration, except for the end:
./configure --prefix=/usr/local --enable-silent-rules --enable-debug