I installed the GSL and the MathMore libraries in the root lib directory of my machine (using the make install command according to the instructions in the web site) and I tried to run from an interactive root session the code you suggested.
I loaded successfully the library (line 1 of your root code). However, when I try to evaluate the function expint(1) (line 2 of your code), I get the following error message:
Error: Function expint() is not defined in current scope FILE:(tmpfile) LINE:1
Possible candidates are…
filename line:size busy function type and name
*** Interpreter error recovered ***
Did I make any mistake in the installation of the libraries?
You dont have in this case the CINT dictionary. You can use MathMore as an external C++ library but not interactivly from the ROOT prompt.
If you want to do that, you need to build MathMore using the ROOT build system.
For versions before 5.12, you need to re-configure and build the ROOT mathmore package by doing:
./configure --enable-mathmore
make
From ROOT versions 5.12 a version of GSL (>= 1.5) is first required.
After having installed GSL, you then re-configure ROOT by doing:
./configure --with-gsl-incdir=....... --with-gsl-libdir=...........
make
I hope my instructions are clear enough. If you still have problems, please let me know,