Root install problem with cmake on ubuntu 12.10

Hi,

I tried the cmake way of installing root on my ubuntu 12.10 system. I did follow the steps described in:
root.cern.ch/drupal/content/building-root-cmake
But the installation apparently didn’t go as planned, since not all necessary libraries can be loaded in root.

This is what I tried:

peter@jefe:~/code/root/bin$ source ./thisroot.sh 
peter@jefe:~/code/root/bin$ root
rootx xpm error: XpmOpenFailed
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   5.99/03  9 September 2013   *
  *                                         *
  *  You are welcome to visit our web site  *
  *          http://root.cern.ch            *
  *                                         *
  * !!! THIS IS A PREPRODUCTION VERSION !!! *
  * Please use 5.34 for any real work until *
  * ROOT 6 is released.                     *
  *                                         *
  *******************************************

ROOT 5.99/03 (heads/master@1dcdafc, Nov 01 2013, 20:18:00 on linux)
cling C/C++ Interpreter: type .? for help.
root [0] gSystem -> ListLibraries ()
 
Loaded shared libraries
=======================
/home/peter/code/root/lib/libCore.so
/home/peter/code/root/lib/libRint.so
/home/peter/code/root/lib/libCling.so
/home/peter/code/root/lib/libMathCore.so
-----------------------
4 libraries loaded
=======================
root [1] .x /home/peter/code/rootSources/tutorials/graphs/gerrors.C
Warning in <TCanvas::ResizePad>: c1 width changed from 0 to 10

Warning in <TCanvas::ResizePad>: c1 height changed from 0 to 10

root [2] 

What I found strange is, that at “make install” some of the files where put into “/usr/local/etc” which seems suspicious to me.

Can you give me a hint what I have done wrong or what I could do to solve the installation problem?

thanks,
Peter

Hi,

I think I am one step further: I had neglected the -DCMAKE_INSTALL_PREFIX= option before which I now set to my root installation dircectory (maybe it would be helpful telling in the documentation to explicitly set this directory, I skipped it because it is marked as optional parameter). I redid make and make install. Now I am stucked at the following problem at make install:

...
-- Up-to-date: /home/peter/code/root/lib/libCore_rdict.pcm
-- Up-to-date: /home/peter/code/root/lib/G__Rint_rdict.pcm
CMake Error at core/rint/cmake_install.cmake:50 (FILE):
  file INSTALL cannot find "/home/peter/code/root/lib/libRint.so".
Call Stack (most recent call first):
  core/cmake_install.cmake:61 (INCLUDE)
  cmake_install.cmake:147 (INCLUDE)


make: *** [install] Fehler 1

the interesting thing is, that after make I do have the file libRint.so in the lib/ directory, but after make install it is gone.

cheers,
Peter