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

  1. Update your package manager:

    sudo apt update
    
  2. 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)

  1. Clone the CLN repository:

    git clone git://www.ginac.de/cln.git
    
  2. Navigate to the cloned directory:

    cd cln
    
  3. Install cmake if you haven't already:

    sudo apt install cmake
    
  4. Prepare for building:

    mkdir build && cd build
    cmake ..
    
  5. 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.

  1. Return to the initial working directory and clone GiNaC:

    cd ../..
    git clone git://www.ginac.de/ginac.git
    
  2. Navigate to the GiNaC directory:

    cd ginac
    
  3. Prepare for building:

    mkdir build && cd build
    cmake ..
    
  4. Build GiNaC:

    make
    

    Optionally, run tests to verify the build (recommended):

    make check
    
  5. 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 and make 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.