# ROOT 5.27.06 failed installation on Mac OS X 10.5.8

**URL:** <https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267>\
**Category:** ROOT\
**Created:** [November 2, 2010, 10:06am UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267 "2010-11-02T10:06:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![makagan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@makagan](https://root-forum.cern.ch/u/makagan)\
**Post date:** [November 2, 2010, 10:06am UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/1 "2010-11-02T10:06:59Z")

</div>

Hello,

I tried compiling root 5.27.06 on my mac laptop (64-bit Intel core 2 duo) which is running Mac OS X 10.5.8. I followed the online instruction for a location independent installation (I have installed Xcode already). The libraries mostly compile, but the compilations seem to fail here (also note, I have also tried to explicitly disable rpath, with the same result):

gfortran -O2 -m64 -o bin/g2root main/src/g2root.o   
-Llib lib/libminicern.so   
/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/…/…/…/x86\_64/libgfortran.dylib /usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86\_64/libgfortranbegin.a -lm -Wl,-rpath,@loader\_path/…/lib -pthread -ldl  
ld: -rpath can only be used when targeting Mac OS X 10.5 or later  
collect2: ld returned 1 exit status  
make: \*\*\* [bin/g2root] Error 1

Does anyone know what the problem might be, and how I can fix it?

---

<div class="post-metadata">

**Author:** ![rdm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rdm/32/11082_2.png) [@rdm](https://root-forum.cern.ch/u/rdm)\
**Post date:** [November 2, 2010, 10:41am UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/2 "2010-11-02T10:41:17Z")

</div>

Please use the latest version of gfortran, see:

[root.cern.ch/drupal/content/build-prerequisites](http://root.cern.ch/drupal/content/build-prerequisites)

Cheers, Fons.

---

<div class="post-metadata">

**Author:** ![makagan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@makagan](https://root-forum.cern.ch/u/makagan)\
**Post date:** [November 3, 2010, 11:27am UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/3 "2010-11-03T11:27:53Z")

</div>

Yes, thanks! I updated my gfortran (which I thought I had already done).

However, root still failed to compile with the new gfortran, now failing here:

g++ -c -D\_LARGEFILE\_SOURCE -D\_LARGEFILE64\_SOURCE -D\_FILE\_OFFSET\_BITS=64 -m64 -D\_REENTRANT -D\_GNU\_SOURCE -Wall -D\_\_macos\_\_ -Wno-deprecated -O2 -DXrdDEBUG=0 -DHAVE\_STRLCPY -DHAVE\_LIBZ -I. -I… [XrdOucUtils.cc](http://XrdOucUtils.cc) -o …/…/obj/XrdOucUtils.o  
make[5]: \*\*\* No rule to make target `XrdOucFactoryBonjour.hh', needed by`…/…/obj/XrdOucBonjour.o’. Stop.  
make[4]: \*\*\* [Darwinall] Error 2  
make[3]: \*\*\* [all] Error 2  
make[2]: \*\*\* [XrdOuc] Error 2  
make[1]: \*\*\* [all] Error 2  
\*\*\* Error condition reported by make (rc = 2):  
make: \*\*\* [net/xrootd/src/xrootd/LastBuild.d] Error 1  
rm core/utils/src/RStl\_tmp.cxx core/utils/src/rootcint\_tmp.cxx

Do you have any ideas why its still crashing?

---

<div class="post-metadata">

**Author:** ![rdm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/rdm/32/11082_2.png) [@rdm](https://root-forum.cern.ch/u/rdm)\
**Post date:** [November 3, 2010, 11:32am UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/4 "2010-11-03T11:32:12Z")

</div>

This is fixed in the ROOT trunk. Can you try?

Cheers, Fons.

---

<div class="post-metadata">

**Author:** ![makagan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@makagan](https://root-forum.cern.ch/u/makagan)\
**Post date:** [November 3, 2010, 2:28pm UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/5 "2010-11-03T14:28:39Z")

</div>

Hi Fons,

I checked out the trunk.

1. first I did ./configure and make, and the compilation failed with the gfortran error again (the same original error, but I have already downloaded the gfortran-4.2.3 dmg suggested on the ROOT installation page and installed gfortran).

2. so next i did a make clean, and then did ./configure macosx64 --disable-rpath, and then did make. This second time it failed with the second problem (i.e. the problem: make[5]: \*\*\* No rule to make target `XrdOucFactoryBonjour.hh', needed by`…/…/obj/XrdOucBonjour.o’. Stop.)

So I am not sure if I have done something incorrectly, but it seems that I still have this problem with the trunk. Do you know what is causing the problem?

Thank you very much for all of your help!

---

<div class="post-metadata">

**Author:** ![ganis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ganis/32/12484_2.png) [@ganis](https://root-forum.cern.ch/u/ganis)\
**Post date:** [November 3, 2010, 5:22pm UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/6 "2010-11-03T17:22:03Z")

</div>

Hello,

Unfortunately we do not have the possibility to reproduce the problem.  
The output of Xrootd-configure can provide some hint: please do

```auto
$ make distclean-xrootd
$ make all-xrootd > xrootd-configure.log
```

and post ‘xrootd-configure.log’.  
Thanks.

Gerri

---

<div class="post-metadata">

**Author:** ![makagan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@makagan](https://root-forum.cern.ch/u/makagan)\
**Post date:** [November 4, 2010, 10:00am UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/7 "2010-11-04T10:00:02Z")

</div>

Hi Gerri,

OK, I ran the lines of code you suggested and attached the xrootd-configure file.

Thank you for your continued help  
[xrootd-configure.txt](https://root-forum.cern.ch/uploads/default/original/2X/e/e65a799aee7873717dc86ae250a4fc653a96e38d.txt) (95.1 KB)

---

<div class="post-metadata">

**Author:** ![ganis](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ganis/32/12484_2.png) [@ganis](https://root-forum.cern.ch/u/ganis)\
**Post date:** [November 4, 2010, 10:18am UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/8 "2010-11-04T10:18:10Z")

</div>

Hi,

Thanks for the log.

Uhmm … there is no error in it and the build worked fine during that run.  
So now if you do just ‘make’ it should be ok, at least it should pass the xrootd step.

So, it looks like something is not set correctly for a fresh build.

Gerri

---

<div class="post-metadata">

**Author:** ![makagan](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/m/858c86/32.png) [@makagan](https://root-forum.cern.ch/u/makagan)\
**Post date:** [November 4, 2010, 11:30am UTC](https://root-forum.cern.ch/t/root-5-27-06-failed-installation-on-mac-os-x-10-5-8/11267/9 "2010-11-04T11:30:56Z")

</div>

Hi Gerri,

Thanks for the help. I tried to do a ‘make’ and it failed again.

I am currently at CERN, perhaps I could email you and we could set up a time that I could come by and we could try to troubleshoot?
