[ROOT] Local install vs install into /usr/local

From: Patrick Murray (pjmurray@ucdavis.edu)
Date: Sat Mar 08 2003 - 00:16:30 MET


Hello, If I install into /usr/local. How do I set ROOTSYS? In the
installation guide it says that I do not need to. But when adding new
class with rootcint I have problems:
	.
	.
	g++ -g -c -O -Wall -fPIC `root-config --cflags`
	-I/home/pmurray/ORCA/TestBeams/CSCTestBed/include/ main.cxx
	main.cxx: In function `int main (int, char **)':
	main.cxx:26: warning: unused variable `EDMainFrame *display'
	main.cxx: At top level:
	/home/pmurray/ORCA/TestBeams/CSCTestBed/include/EDMainFrame.h:70: warning:
	`const char *filetypes[6]'
	defined but not used
	Generating dictionary ...
	Error: rootcint: environment variable ROOTSYS not defined
	gmake: *** [displayDict.h] Error 1
	[pmurray@ccc04 src]$

So I set ROOTSYS to /usr/local with these errors:

	[pmurray@ccc04 src]$ export ROOTSYS=/usr/local
	[pmurray@ccc04 src]$ gmake
	Generating dictionary ...
	Error: cannot open file "TROOT.h"  FILE: LINE:0
	!!!Removing displayDict.cxx displayDict.h !!!
	g++ -g -c -O -Wall -fPIC `root-config --cflags`
	-I/home/pmurray/ORCA/TestBeams/CSCTestBed/include/ displayDict.cxx
	displayDict.cxx:13:25: displayDict.h: No such file or directory
	In file included from displayDict.cxx:26:
	/usr/local/include/root/RtypesImp.h:16:2: #error RtypesImp.h should only
	be included by ROOT dictionaries.
	gmake: *** [displayDict.o] Error 1
	[pmurray@ccc04 src]$

If I compile in a local installation, I have no proplems.

	[pmurray@ccc04 src]$ locate TROOT.h
local: /home/pmurray/root/include/TROOT.h
system: /usr/local/include/root/TROOT.h

	[pmurray@ccc04 src]$ locate rootcint
	/usr/local/bin/rootcint
	/usr/local/share/man/man1/rootcint.1
	/home/pmurray/root/man/man1/rootcint.1
	/home/pmurray/root/bin/rootcint

so the def of ROOTSYS is clear in the local case but for the system case
ROOTSYS can not be /usr/local???

Thank you,
Pat



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET