Root on ubuntu 12.04

hi
i installed root version 5.32.04 on ubuntu 12.04
i followed fixed location installation instructions from

http://root.cern.ch/drupal/content/installing-root-source

after that i typed command as: root

i got error as:

Couldn’t find font “-adobe-helvetica-medium-r---10-----*-iso8859-1”,
trying “fixed”. Please fix your system so helvetica can be found,
this font typically is in the rpm (or pkg equivalent) package
XFree86-[75,100]dpi-fonts or fonts-xorg-[75,100]dpi.
/usr/local/bin/root.exe: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory

Hello, please have a look on [url=https://root-forum.cern.ch/t/adobe-helvetica-on-ubuntu-11-04/12319/1 post[/url].

hi
thanku :slight_smile:

first error is solved
now when i tried to run root

i got error as:
/usr/local/bin/root.exe: error while loading shared libraries: libCore.so: cannot open shared object file: No such file or directory

Which kind of installation did you choose : location independent installation or fixed location installation?
In the first case, did you modify your .bashrc (or .cshrc)

In the second case, did you type

also if i use

before i run root

then i am getting no error

If so, add this line in your .bashrc to avoid you to type it before running ROOT.

i choose fixed location installation

i also used

i got error as:
/sbin/ldconfig.real: Can’t create temporary cache file /etc/ld.so.cache~: Permission denied

after that i log on as root by using
su
and then used code:
ldconfig

i added line
source /home/raman/Downloads/root/bin/thisroot.sh
in my .bashrc

then i closed the terminal and i oened the terminal

i tried running root i still got the same error

[quote=“raman”]i added line
source /home/raman/Downloads/root/bin/thisroot.sh
in my .bashrc

then i closed the terminal and i oened the terminal

i tried running root i still got the same error[/quote]
Very strange because if you type this line before running ROOT and you have no error after then this line should be loaded when you start a new session in your terminal.
Are you sure you use a bash terminal and not a csh one (or other)?

Also, did you add bin/ to your PATH and lib/ to your LD_LIBRARY_PATH variables?

after adding line
source /home/raman/Downloads/root/bin/thisroot.sh

i didnot used

now after doing that i am getting no error.
Thanku :slight_smile:
but since i had used fixed location installation
do i still need to add bin/ to PATH and lib/ to LD_LIBRARY_PATH variables .

So, does it work after adding the line in your .bashrc or not.
If it works, then you do not need to modify other stuff.
If not, then could you show the output of the command

yes
it is working after adding that line in .bashrc

and output of command

is:
/usr/local/bin/root

Fine, so you do need to modify other stuff.
It works fine now :smiley:

hi
i tried to run script in root using

i got error as:
Error in TApplication::ExecuteFile: macro not found in path .:/usr/local/share/root/macros:

can you help?

If you are in the directory where FirstContour.C is located, just type

i first changed to directory root and then to directory where my script FirstContour.C is

then i simply typed

i got error as:
.x: command not found

i changed to directory where my script is

then i typed

now i got the contours :smiley:

i changed to directory where my script is

then i typed

now i got the contours :smiley:

hi
i changed to directory where my script is and then used

i got contour diagram

hi
i had already compiled root and to use pythia as a plugin to root , i configured root again using

--enable-pythia8 --with-pythia8-incdir=$PYTHIA8/include --with-pythia8-libdir=$PYTHIA8/lib

then i tried to run script

i got error as:
root [0]
Processing pythia8.C…
Error in TUnixSystem::DynamicPathName: libEGPythia8[.so | .dll | .dylib | .sl | .dl | .a] does not exist in /home/raman/Downloads/root/lib://home/raman/Downloads/fastjet-install/lib:LD_LIBRARY_PATH:.:/home/raman/Downloads/root/lib::/home/raman/Downloads/root/cint/cint/stl
Error: Symbol TPythia8 is not defined in current scope pythia8.C:45:
Error: Symbol TPythia8 is not defined in current scope pythia8.C:45:
Error: type TPythia8 not defined FILE:/home/raman/Downloads/root/tutorials/pythia/./pythia8.C LINE:45
Error: Invalid type ‘TPythia8*’ in declaration of ‘pythia8’ pythia8.C:45:
*** Interpreter error recovered ***