Installing SEB: Guide for GiNaC and GSL Dependencies - Tobionecenobi/SEB GitHub Wiki
To use SEB, you need to install its dependencies: GiNaC and GSL. This can be efficiently done through your Linux distribution's package manager. Follow the steps below to get started.
Installing Dependencies with Package Manager
-
Update your package manager:
sudo apt update
-
Install GSL and GiNaC development libraries:
sudo apt install libgsl-dev libginac-dev
In some cases, GiNaC may not be readily available for your system through the package manager, requiring you to build GiNaC from source. Below are the steps to manually install GiNaC and its prerequisite, CLN (Class Library for Numbers).
Manually Installing CLN (Dependency for GiNaC)
-
Clone the CLN repository:
git clone git://www.ginac.de/cln.git
-
Navigate to the cloned directory:
cd cln
-
Install
cmake
if you haven't already:sudo apt install cmake
-
Prepare for building:
mkdir build && cd build cmake ..
-
Build and install CLN:
cmake --build . sudo cmake --build . --target install
Optionally, run tests to verify the build (recommended):
cmake --build . --target check
Manually Installing GiNaC
After installing CLN, you can proceed with GiNaC installation.
-
Return to the initial working directory and clone GiNaC:
cd ../.. git clone git://www.ginac.de/ginac.git
-
Navigate to the GiNaC directory:
cd ginac
-
Prepare for building:
mkdir build && cd build cmake ..
-
Build GiNaC:
make
Optionally, run tests to verify the build (recommended):
make check
-
Install GiNaC:
sudo make install
Final Steps
After completing these steps, you should have both GSL and GiNaC installed on your system, allowing you to proceed with the installation and use of SEB.
Troubleshooting
- If you encounter any issues during installation, refer to the
INSTALL
files within the CLN or GiNaC directories for additional guidance and alternative installation methods. - Ensure all dependencies for
cmake
andmake
are installed on your system to avoid common pitfalls during the build process.
By following these streamlined instructions, you should be able to set up your environment for SEB with minimal hassle.