Root 5.18: compiled but not working

Hi all,
I tried to compile 5.18 on my laptop. I launch root and I get errors.

Here are the details

I have downloaded the source,
sudo ./configure --prefix=.
sudo make
sudo make install <-- it says ‘already installed’

then

export ROOTSYS=pwd
export LD_LIBRARY_PATH=pwd/lib
export PATH=$ROOTSYS/bin:$PATH

but then

bomben@diabolik:~/work/root-518/root$ root
rootx xpm error: XpmOpenFailed


  •                                     *
    
  •    W E L C O M E  to  R O O T       *
    
  •                                     *
    
  • Version 5.18/00 16 January 2008 *
  •                                     *
    
  • You are welcome to visit our Web site *
  •      [root.cern.ch](http://root.cern.ch)            *
    
  •                                     *
    

ROOT 5.18/00 (trunk@21744, Mar 04 2008, 12:16:00 on linux)

CINT/ROOT C/C++ Interpreter version 5.16.29, Jan 08, 2008
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
Error: cannot open file “iostream” (tmpfile):2:
*** Interpreter error recovered ***
Error: cannot open file “_string” (tmpfile):2:
*** Interpreter error recovered ***
Error: cannot open file “RtypesCint.h” (tmpfile):2:

etcetera etcetera

I noticed this error before root-logo

rootx xpm error: XpmOpenFailed

which I have no idea how to fix…

Many thanks in advance for the help!

Regards,
Marco

sudo ./configure --prefix=. You should not configure to install in the same directory as the source code. If this is indeed the desired behavior, you should just drop the --prefix from the configure command line.

Cheers,
Philippe

Dear Philippe,
in I see that the default for prefix is /usr/local and not the current directory

FLAG DESCRIPTION DEFAULT
[…]
–prefix Installation prefix (/usr/local)

Am I wrong?

BTW, I’ve located libXmp.a: /usr/lib. Since configure does not complain about it I’m a bit lost now…

Regards,
Marco

Well somewhat :slight_smile:

See root.cern.ch/root/Install.html for a complete explanation.
The behavior with and without --prefix is quite different (wihout --prefix the installation directory is not embedded in the executable and thus you can relocate the files but you need to set ROOTSYS, LD_LIBRARY_PATH, etc).

Cheers,
Philippe.

Dear Philippe,
thanks for the explanation!

I managed to get things working:

What it is strange to me is that /usr/lib is in the path for libXpm.a in the configure script (and infact I get no warning from configuration). But in the end it doesn’t work if you don’t tell configure where to look for that library.

Regards,
Marco

The problem is not that libXpm is not found, but the icons it has to open are not found. Please install like this for personal use on a laptop:

cd root
./configure
make

. bin/thisroot.sh ( this can be added to you .bash_profile: . ~/root/bin/thisroot.sh)

root

Cheers, Fons.

Dear Fons,
many thanks for your explanation. It works indeed!

Regards,
Marco

[dounia@secret root]$ root
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.
Warning in TGClient::GetFontByName: couldn’t retrieve font -adobe-helvetica-medium-r-
--12------iso8859-1, using "fixed"
Warning in TGClient::GetFontByName: couldn’t retrieve font -adobe-helvetica-bold-r---12------iso8859-1, using "fixed"
Warning in TGClient::GetFontByName: couldn’t retrieve font -adobe-courier-medium-r-
--12------iso8859-1, using "fixed"
Warning in TGClient::GetFontByName: couldn’t retrieve font -adobe-helvetica-medium-r---10-----*-iso8859-1, using “fixed”

I have done what you advised .bin/thisroot.sh
and root is launching but i still have previous text before. I don`t know yet if it affects root work but maybe you know where this come from.
thanks.
cheers.
dounia