I use Ubuntu 12.04, and it seems to me that I had some trouble with the thisroot.sh script.
If configure and make showed no errors, did you check that $PATH and $LD_LIBRARY_PATH are set correctly (eg, printenv | grep PATH)?
I ended up setting PATH and LD_LIBRARY_PATH explicitly (ie, hard code the paths). If you have multiple versions of root, you have to keep track that you are sourcing the correct version, but it is probably the simplest way to get up and running.
did you try to run it outside bashrc script? in a terminal cd to root dir and execute
maybe you have to add rest of the path to root directory.
cd $HOME/root
source bin/thisroot.sh
cd
there is another possibility that exec file has another name as i had met lately.
cd to root dir and try ls bin/ |grep root. look for other name such as root.exe, roots.exe etc. i dont remember the names but they have different meanings to run, one of them being the usual root exe file
Thank you very much for your help!
I used the following code
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
cd root
. bin/thisroot.sh
cd
the one that I used at the beggining!
The problem is that I just saved the bashrc without
After that it worked like a charm!However if I open a terminal in a USB stick for instance I get this code
bash: cd: root: No such file or directory
bash: bin/thisroot.sh: No such file or directory
thanos@thanos-laptop:~$
So, something really is still wrong.
In addition, I remember that I have edited the bashrc in order to replace root -l with root, but I can’t remember how. Any idea?
My root folder is in /home/thanos/root. I changed the paths accordingly like this
export PATH=/home/thanos/root/bin
export LD_LIBRARY_PATH=/home/thanos/root/lib:$LD_LIBRARY_PATH
However when I start root, in any folder a get the following message
but root starts and runs normally! I also try to edit bashrc but when in home and type
I get the message
Command 'gedit' is available in '/usr/bin/gedit'
The command could not be located because '/usr/bin' is not included in the PATH environment variable.
gedit: command not found
The same happens even if I use ls…but thankfully I fixed it by changing the PATH like this
Hmm, I had trouble installing 5.34 on my 32-bit Ubuntu, and was getting the
"libX11 MUST be installed"
error. Beginning around line 2550 of the “configure” file, I noticed that I needed to add “/usr/lib/i386-linux-gnu” to several library lists (I suspect something similar would be needed for 64-bit).
Once “configure” ran, I then “sudo make” which runs for a while. Then I “sudo make install”, and this crashes with
"undefined reference to `TIFFOpen’" (and others)
so I had to rerun the command that crashed adding “-ltiff -lpng -ljpeg” at the end of that command:
"
g++ -shared -Wl,-soname,libASImage.so -m32 -O2 -Wl,–no-undefined -Wl,–as-needed -o lib/libASImage.so graf2d/asimage/src/TASImage.o graf2d/asimage/src/TASPluginGS.o graf2d/asimage/src/G__ASImage.o -Llib -lGraf -lMathCore lib/libAfterImage.a -L/usr/lib/i386-linux-gnu -lfreetype -lz -lz -lXpm -lXext -lX11 -Llib -lCore -lCint -ldl -ltiff -lpng -ljpeg
"
Then I “sudo make install” again and it finishes. I finally add “. /usr/local/root/bin/thisroot.sh” to my bashrc, and everything works perfectly. Now I can do my analysis locally instead of our shared tier3 machine (and the monster desktop I built is slightly faster). Thanks, ROOT!