Failure loading library libMathMore.so for ROOT::Math::GSLIntegrator

Hi,

I just installed the binary distribution [root_v6.20.02.Linux-ubuntu18-x86_64-gcc7.5.tar.gz] under Linux Mint 19.3 (apparently based on Ubuntu 18.04) in a linux guest virtualbox.

When trying very simple things like

TH1F *h1 = new TH1F("h1","h1",100,0,10); 
TF1 *fs = new TF1("fs","[0]*TMath::Gaus(x,[1],[2],1)",0,10);
fs->SetParameters(1,5,0.5);
for (int i=0;i<200;++i) h1->Fill(fs->GetRandom(0,10));

I get many errors like

cling::DynamicLibraryManager::loadLibrary(): libgsl.so.23: cannot open shared object file: No such file or directory
Warning in <ROOT::Math::IntegratorOneDim::CreateIntegrator>: Error loading one dimensional GSL integrator - use Gauss integrator

Can anybody give an advice how to solve this?

Best,
Klaus


Please read tips for efficient and successful posting and posting code

ROOT Version: 6.20.02
Platform: Linux Mint 19.3 xfce (ubuntu 18.04)
Compiler: gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)


Try: sudo apt-get install libgsl-dev

1 Like

Hi,

thanks a lot!

It didn’t directly work with sudo apt-get (got the error E: Unable to locate package libgsl), but with the package manager I found the GSL library, and now it seems to work!

Best regards!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.