I followed this one this time, obtained root from here, did the following:
cmake ../root/
then tried
cmake --build . -- -j8
but I have been asked to do ./configure
first, so I did and then I did:
cmake --build . -- -j8
because I have 8 cores. It failed again, I am pasting below the last few lines…
g++ -pipe -m64 -std=c++11 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -I/usr/include/freetype2 -I/usr/include/libpng16 -MMD -MP -I. -o graf2d/graf/src/G__Graf.o -c graf2d/graf/src/G__Graf.cxx
g++ -pipe -m64 -std=c++11 -Wshadow -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -MMD -MP -I. -o math/foam/src/G__Foam.o -c math/foam/src/G__Foam.cxx
/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libgslcblas.a(xerbla.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
/mnt/uuid/me/.../root/math/mathmore/Module.mk:98: recipe for target 'lib/libMathMore.so' failed
make: *** [lib/libMathMore.so] Error 1
make: *** Waiting for unfinished jobs....
Is this related to some libraries missing or something? Because I have installed all the pre-requisites, although the instructions are for Ubuntu 10 - 16
and mine is 18.04, but I remember last time it worked…I installed root on this same laptop 2 months ago and removed it using rm -rf /.../root/
as you suggested here. I have to install root asap though, please help.
Thanks