Hi. I installed root v5-34-34 patches as instructed in this forum (Trouble Installing) and it seemed as if all was fine. When I try to draw a TGraph, for instance, or execute one of the macros provided ($ root ~/Programs/v5-34-00-patches/tutorials/math/Legendre.C) there is a big error that shows up that I have not encountered before. I did make clean after that and redid the configuration and make but the same problem persists. Is there anyone that can help me with this?
I would focus on first cleaning that up. For example, I see the same directory added at least three times. You can inspect the path with the following on bash:
printenv LD_LIBRARY_PATH
Then I would look in each directory for the library that is being requested and see if it is actually available. Finally, one can search the filesystem for the library being requested to find out if it lives in a directory that is not in the path as follows:
So I have a better grasp of the problem. My environment is set correctly I think so I won’t change that. I did “$ ls $ROOTSYS/lib” which does show all the ROOT libraries. When I try to draw a normal TCanvas for example, libGraf.so and libGpad.so are the two that are missing so I used grep to try and find the two missing libraries. They are not present (looked for them manually just to make sure and searched the whole root directory). Only libGraf.rootmap and libGpad.rootmap are there which remotely resembles the missing files. The output for all is attached.
I am not sure why those would be missing after a fresh install but how do I go about fixing it? I am running Ubuntu 18.04 LTS.
During my previous installation that worked completely fine, the only other thing I did was to run “make install” after “make”. I know you are not supposed to as Wiley (?) advised me. Normally running “make” is all you need to install ROOT in this way. However, I took a chance and ran “make install” expecting it to fail. It did but in doing so generated the missing library files and everything works as it did before. I tried running an example, generating a TCanvas etc. but all is fine. I think I might just need to do --enable-mathmore as my Legendres weren’t drawing.
Is there an explanation to this? I don’t understand why a command that fails as is not supposed to run completes the installation (so to speak).
What do you get when you type “which root” … ? it might be you still point to the old installed version and may be there is some mixed up with the new version you made but not “make install”…
It seems like it isn’t all fixed. It complains that limMathMore does not exist in $ROOTSYS/lib. I configured with --all but running ~/root/tutorials/math/Legendre.C does not yield the correct output.
I suspect that your operating system is missing the “libgsl-dev” package (and you may need to use “--all --enable-soversion --enable-gsl-shared” for ROOT 5.34).
Thank you for the input. Firstly, the libgsl-dev was installed. I configured with those options as you stated. There were make errors relating to lib/libFITSIO.so or something but I am able to draw canvasses now and I’m able to draw Legendre polynomials. I didn’t run “make install” or anything like that because it didn’t complain about libGraf.so or libGpad.so being missing this time. I’m just wondering if I should correct this make error and how to do that. I’m sure it might bring problems further down the line and you would probably also advise to have no make errors.
It does mention something about “curl” but I have done “sudo apt-get install curl”.
I see that this has been discussed at length on this forum that Ubuntu 18.04 LTS should be used with cmake to build it. I just don’t know how to use cmake with the options “–all --enable-soversion --enable-gsl-shared”. Can this be used for v5.34?