I can't install root on mac X 10.9

Hi. I use the version 5.27/06 and I want to install the version 5.34/12. So I unzip the source in usr/local.
When I do

cd root ./configure
I obtain :

Checking for source directory ... /usr/local/root Configuring for macosx64 Checking for Fink/MacPorts directory ... /opt/local Checking for GNU Make version >= 3.80 ... ok Checking for C compiler ... clang Checking for C++ compiler ... clang++ Checking for linker (LD) ... clang++ Checking for F77 compiler ... gfortran Checking whether libc++ is supported ... yes Checking for libX11 ... /opt/local/lib Checking for X11/Xlib.h ... /opt/local/include Checking for X11/xpm.h ... /usr/X11R6/include Checking for X11/Xft/Xft.h ... /usr/X11R6/include Checking for X11/extensions/shape.h ... /opt/local/include Checking for libXpm ... /usr/X11R6/lib Checking for libXft ... /usr/X11R6/lib configure: libXft not in same directory as libX11 For consistency they should be in the same directory

Do someone know how can I solve this problem ? Thx.

[quote]
Do someone know how can I solve this problem ? Thx.[/quote]

Install XQuartz maybe?

I’ve it

Why do you have this diagnostic then? I also have XQuartz installed and libXft and libX11 are in the same place, thus configuration is successful. How did you install XQuartz? Where is this libXft found by configure script located?

you should take xquartz here: xquartz.macosforge.org/landing/

I reinstall XQuartz but the problem is still here. But I go in /usr/X11R6/lib where libXft is. And I found two files : libXft.2.dylib and libXft.dylib
So I copy it in /opt/local/lib where is libX11
And It work :slight_smile:
Thank you for your help.

The command “make” is still working, I hope this will have a good end [-o<

[quote=“apeiro”]I reinstall XQuartz but the problem is still here. But I go in /usr/X11R6/lib where libXft is. And I found two files : libXft.2.dylib and libXft.dylib
So I copy it in /opt/local/lib where is libX11
And It work :slight_smile:
[/quote]

libX11 installed with XQuartz is in the same /usr/X11R6/lib as libXft. You are not supposed to copy them anywhere else. Do you have fink or something else installed? Why is libX11 in /opt/local/lib?

I don’t know why.
The “make” command finish on an error :

In file included from /usr/local/root/graf2d/x11/src/GX11Gui.cxx:32: include/TGX11.h:36:10: fatal error: 'X11/xpm.h' file not found #include <X11/xpm.h> ^ 1 error generated. make: *** [graf2d/x11/src/GX11Gui.o] Error 1

I guess your X11 is not clean. We have all moved to 10.9 in the ROOT team and all is fine.
We only had to install X11 for the place I mentioned earlier. You should not copy files around.
All should be fine if you use ONLY Xquartz, … just a clean install… Then root will install without problems.

[quote=“apeiro”]I don’t know why.
[/quote]

Too bad. So, do you have Fink or something on your mac?

[quote]
The “make” command finish on an error :

In file included from /usr/local/root/graf2d/x11/src/GX11Gui.cxx:32: include/TGX11.h:36:10: fatal error: 'X11/xpm.h' file not found #include <X11/xpm.h> ^ 1 error generated. make: *** [graf2d/x11/src/GX11Gui.o] Error 1[/quote]

Well, may be, it was not a good idea to copy libXft to /opt/local/lib. Looks like configure script decided, that your x11 directory is somewhere near there.

P.S. Hm, /usr/X11R6 is just a symbolic link to /opt/X11 on my mac. But anyway, /usr/X11R6 is the path build system uses, so while compiling TGX11.cxx, for example, I have ‘-I/usr/X11R6/include’. What do you have?

I’m getting a similar error when rebuilding root:

In file included from include/TGX11TTF.h:30: include/TGX11.h:31:10: fatal error: 'X11/Xlib.h' file not found #include <X11/Xlib.h>

I am on Mac OS X 10.9.2 and I was able to build root once after I updated to Maverick. But recently I updated my port (via command ‘sudo port selfupdate’ followed by ‘port upgrade outdated’). As a result of this recent update, my previously built root stopped working due to failing to find some library (I think the update removed some library; unfortunately can’t recall what that was). So I attempted to re-configure root (ran ./configure, no options). Now in the config print out, it notes this:

Checking for libX11 ... /opt/local/lib Checking for X11/Xlib.h ... /opt/local/include Checking for X11/xpm.h ... /opt/local/include Checking for X11/Xft/Xft.h ... /opt/local/include Checking for X11/extensions/shape.h ... /opt/local/include Checking for libXpm ... /opt/local/lib Checking for libXft ... /opt/local/lib Checking for libXext ... /opt/local/lib

So clearly from the configure log, it has no problem finding where this header is and I verified it, that that header in question is there.

$ ls -l /opt/local/include/X11/Xlib.h -rw-r--r-- 1 root admin 99819 Oct 30 22:42 /opt/local/include/X11/Xlib.h

So the question is, why is the makefile (presumably generated from this ./configure) still failing when clearly the configure found the header?

So this is the compilation line that failed:

bin/rmkdepend -R -fgraf2d/x11ttf/src/TGX11TTF.d -Y -w 1000 -- -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -stdlib=libc++ -pthread -I/usr/X11R6/include -I/Users/jade/anaconda/include/freetype2 -I/Users/jade/anaconda/include -D__cplusplus -- /Users/jade/root/graf2d/x11ttf/src/TGX11TTF.cxx clang++ -O2 -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -stdlib=libc++ -pthread -I/usr/X11R6/include -I/Users/jade/anaconda/include/freetype2 -I/Users/jade/anaconda/include -o graf2d/x11ttf/src/TGX11TTF.o -c /Users/jade/root/graf2d/x11ttf/src/TGX11TTF.cxx In file included from /Users/jade/root/graf2d/x11ttf/src/TGX11TTF.cxx:28: In file included from include/TGX11TTF.h:30: include/TGX11.h:31:10: fatal error: 'X11/Xlib.h' file not found #include <X11/Xlib.h> ^

So in that compilation line, why am I not finding -I/opt/local/include( exactly where the configure found X11 to be)?! :confused: Instead, it has:
-I/usr/X11R6/include

While I do have this:

$ ls -l /usr total 8 drwxr-xr-x 5 root wheel 170 Aug 25 2013 X11 lrwxr-xr-x 1 root wheel 3 Oct 26 11:15 X11R6 -> X11 drwxr-xr-x 1040 root wheel 35360 Feb 26 21:21 bin drwxr-xr-x 253 root wheel 8602 Oct 26 12:51 include drwxr-xr-x 268 root wheel 9112 Feb 26 21:21 lib drwxr-xr-x 166 root wheel 5644 Feb 26 21:21 libexec drwxr-xr-x 6 root wheel 204 Oct 26 11:19 local drwxr-xr-x 242 root wheel 8228 Feb 26 21:21 sbin drwxr-xr-x 41 root wheel 1394 Oct 26 12:52 share drwxr-xr-x 4 root wheel 136 Oct 26 11:07 standalone

where X11R6 is a link to X11, that X11 subdirectory does not have an include subdirectory:

$ ls -l /usr/X11R6/include ls: /usr/X11R6/include: No such file or directory $ ls -l /usr/X11/include ls: /usr/X11/include: No such file or directory ls -l /usr/X11 total 0 drwxr-xr-x 125 root wheel 4250 Oct 26 11:15 bin drwxr-xr-x 88 root wheel 2992 Aug 25 2013 lib drwxr-xr-x 3 root wheel 102 Aug 25 2013 libexec

So why is the makefile including a path that is clearly not there and not including the correct path for X11 includes that the configure found? Why is the makefile inconsistent to the findings of configure?