Error while compiling ROOT 6.04.18 on Ubuntu 16.04

Hi,

I’m trying to build root on my Ubuntu 16.04. I downloaded root_v6.04.18.source.tar.gz from http://www.root.cern.ch, then installed required packages with:

sudo apt-get install git dpkg-dev make g++ gcc binutils libx11-dev libxpm-dev \ libxft-dev libxext-dev

as well as the optional packages with:

sudo apt-get install gfortran libssl-dev libpcre3-dev \ xlibmesa-glu-dev libglew1.5-dev libftgl-dev \ libmysqlclient-dev libfftw3-dev cfitsio-dev \ graphviz-dev libavahi-compat-libdnssd-dev \ libldap2-dev python-dev libxml2-dev libkrb5-dev \ libgsl0-dev libqt4-dev

no error so far, then I unpack the source with gunzip and tar, after that I run ./configure or ./configure --all and after a few seconds I run make and here is the problem:
It is compiling for about a half hour to whole hour according to if I used --all or not, and allways crash and report:

/mnt/c2ed5467-d780-432e-8c30-bdc2a91f9272/root/root-6.04.18/math/mathmore/src/GSLMultiFit.h:146:38: error: ‘struct gsl_multifit_fdfsolver’ has no member named ‘J’ gsl_multifit_gradient(fSolver->J, fSolver->f,fVec); ^ /mnt/c2ed5467-d780-432e-8c30-bdc2a91f9272/root/root-6.04.18/math/mathmore/src/GSLMultiFit.h: In member function ‘const double* ROOT::Math::GSLMultiFit::CovarMatrix() const’: /mnt/c2ed5467-d780-432e-8c30-bdc2a91f9272/root/root-6.04.18/math/mathmore/src/GSLMultiFit.h:157:45: error: ‘struct gsl_multifit_fdfsolver’ has no member named ‘J’ int ret = gsl_multifit_covar(fSolver->J, kEpsrel, fCov); ^ Makefile:654: recipe for target 'math/mathmore/src/GSLNLSMinimizer.o' failed make: *** [math/mathmore/src/GSLNLSMinimizer.o] Error 1

/mnt/c2ed5467-d780-432e-8c30-bdc2a91f9272/root/root-6.04.18 is path where I unpacked the source.
I tried as well using

cmake --build . --target install

but with the same crash.
Please note that I’m new to Ubuntu, but have allready spend 5 days trying to find answers on forums and so, also the OS is fresh installed (week or so).

Thanks for any help.

The ROOT branch 6.04.xx does not support GSL version >= 2.0. Is there are reason for you not to migrate to 6.06.XX, which supports more recent versions of GSL?
Pere

I was told to use older more stable version and not the newest, so I went for 6.04, but you are right last night I tried 6.06/06 with this Pepe’s procedure : Memory leak in ROOT::Math::IntegratorMultiDim and it worked.
And at the end I could not run root with command root in terminal, and command
source ${HOME}/ROOT/v6-06-06/bin/thisroot.sh
works only until current terminal is closed so I added that to my ~/.bashrc file and it’s ok now.
Thanks for your response.

[quote=“mato”]The ROOT branch 6.04.xx does not support GSL version >= 2.0. Is there are reason for you not to migrate to 6.06.XX, which supports more recent versions of GSL?
Pere[/quote]

I guess you could have tried 6.06/08 which is newer.

16 posts were split to a new topic: Problem installing ROOT on Ubuntu 16.04

A post was merged into an existing topic: Problem installing ROOT on Ubuntu 16.04