Hi,
I was trying to install ROOT from the git repository.
First, I cloned the package: git clone https://github.com/root-project/root.git
Then, in the build directory, I run:
cmake . .
cmake --build . -j8
and I got this error:
CMakeFiles/MathMore.dir/src/GSLNLSMinimizer.cxx.o: In function ROOT::Math::GSLMultiFit::CovarMatrix() const': /home/ramij/root/math/mathmore/src/GSLMultiFit.h:185: undefined reference togsl_multifit_fdfsolver_jac’
CMakeFiles/MathMore.dir/src/GSLNLSMinimizer.cxx.o: In function ROOT::Math::GSLNLSMinimizer::Minimize()': GSLNLSMinimizer.cxx:(.text+0x139c): undefined reference togsl_multifit_fdfsolver_jac’
GSLNLSMinimizer.cxx:(.text+0x142b): undefined reference to gsl_multifit_fdfsolver_jac' GSLNLSMinimizer.cxx:(.text+0x1906): undefined reference togsl_multifit_fdfsolver_jac’
GSLNLSMinimizer.cxx:(.text+0x1f88): undefined reference to `gsl_multifit_fdfsolver_jac’
collect2: error: ld returned 1 exit status
gmake[2]: *** [lib/libMathMore.so] Error 1
gmake[1]: *** [math/mathmore/CMakeFiles/MathMore.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs…
A screenshot is attached below.
Please help me with this.
Hi, do you use builtin_gsl? Or do you have GSL installed in your system? If the latter, what version do you have installed? Please provide more information about the operating system and compiler you are using. Thanks.
Try cmake -DCMAKE_PREFIX_PATH=/usr/local ... instead. When you use -D<PKG_DIR>=... you need to pass the directory where its CMake config file resides, not the prefix. You may also have better luck passing -DGSL_ROOT_DIR=..., as that’s what cmake --help-module FindGSL tells me to do. Cheers,