Skip to content
Prev 10926 / 21312 Next

[Bioc-devel] xps build problem on veracruz2

Dear Herve,

Since some users report problems since many years that the libs are
found in '/usr/local/root/lib/root', I agree that it is a good idea
to set LDFLAGS also to
    LDFLAGS = ... -rpath $(shell $(ROOTCONFIG) --prefix)/lib/root


I have just uploaded version xps_1.3.4 to BioC devel.

In this version I have added
- LDFLAGS = ... -rpath $(shell $(ROOTCONFIG) --prefix)/lib/root
- Furthermore, I have removed the dependency on the variable $ROOTSYS
   in the case ROOT is installed in fixed location.
   (see Makefile.arch line 47 and Makefile line 115)
- I have also added an INSTALL file (which I need to update).


I understand that you have built ROOT using the new build system
with 'cmake'. On Yosemite and earlier machines you can (and probably
should) use the old build system using 'make', which is described in:
https://root.cern.ch/build-root-old-method

Interestingly, there is the statement:
Using the fixed location mode, the default "--prefix" path is `/usr/local',
which will result in the ROOT files to be installed in `/usr/local/bin', 
`/usr/local/lib/root', etc.

This means probably, that you could use:
     cmake -DCMAKE_INSTALL_PREFIX=/usr/local
but maybe you still end up with libs in /usr/local/root/lib/root.


BTW, on Sierra I have just upgraded to the new version R-3.4.0.pkg.
I must realize that R-3.4.0 requires El Capitan or higher, which means
that people using Yosemite or Mavericks can no longer upgrade to the
newest version of R! Is this correct?

Best regards,
Christian


P.S.:
I am not sure if the following information is of interest to you, but I
was looking at my old mails and I searching the ROOT forum, where users
also report problems since the libraries got installed under
/usr/local/root/lib/root:


1, One series of mails is from/to Dan with cc to you from 03/17/12
regarding installing ROOT on openSUSE 12.1. He mentioned that the libs
were stored in /usr/local/root/lib/root. My response was that he only
need to change prefix to "--prefix=/usr/local". However he reported
that the problem was lack of read and listing permissions on the 
/etc/root directory.


2, One user recently (Mar 2016) tried to install ROOT 6 on Ubuntu 
14.04.4, see:
https://root-forum.cern.ch/t/rootn-exe-startup-crashes-on-ubuntu-14-04-4/20825/11
and reported, e.g. /usr/local/root/lib/root/libCore.so
He then tried:

cmake -DCMAKE_INSTALL_PREFIX="/usr/local" 
/home/johnsont/rootsrc/root-6.06.02
cmake --build .
sudo cmake --build . --target install

It seems that now the libraries did install correctly (but there were 
other issues).


3, One user had compilation problems on OS Sierra (Oct 2016), see:
https://root-forum.cern.ch/t/compilation-problem-with-os-sierra-xcode-8-root-6-06-08/22102/6
There was an interesting reply:

Better don't use -j4 when using cmake, just when using make.

I am not sure whether this is still true, since it seems to work in your 
case.
On 04/23/17 02:32, Herv? Pag?s wrote: