Building ROOT on Ubuntu linux

Hi there,

i am trying to build root from source on my ubuntu system. I untar/zip the root archive in my home directory.

I first set the environmental variable to the Root directory:

export ROOTSYS=$HOME/root

(I checked the $ROOTSYS, it points at the right directory)

in the root directory I type:

./configure

this gives me the message:
" type make to install root"

i type

make

and after all the cp procedures the following errors occur:

In file included from build/rmkdepend/cppsetup.c:30:
build/rmkdepend/def.h:35:19: error: stdio.h: No such file or directory
build/rmkdepend/def.h:37:20: error: string.h: No such file or directory
build/rmkdepend/def.h:39:19: error: ctype.h: No such file or directory
build/rmkdepend/def.h:40:23: error: sys/types.h: No such file or directory
build/rmkdepend/def.h:41:19: error: fcntl.h: No such file or directory
build/rmkdepend/def.h:42:22: error: sys/stat.h: No such file or directory
build/rmkdepend/def.h:127:20: error: stdlib.h: No such file or directory

At the end there is:

make: bin/rmkdepend: Command not found
make: *** [cint/src/g__cfunc.o] Error 127

Does anyone have an idea?

best regards

merc

Do you have the proper develop libraries and compilers installed on your Ubuntu system? Can you compile any program containing any of these missing header files.

Cheers, Fons.

At first i got some error messages, that certain packages are missing, like X11 and g77-dev. I installed all of these.

Is there any complete list of all the packages needed?

And no, i cant build any programs that include these headers.

  greetings 

merc

ROOT needs at least the C++ compiler, glibc-devel and X11-devel (or xorg-devel). The rest is optional, just look at what configure did detect. If you decide you want additional things like e.g. the mysql interface install also the mysql-devel package, etc.

Cheers, Fons.

Thank you very much, now i found all the packages needed.

At least it is compiling now, lets hope there are no further problems :slight_smile:

Thank you again!