[Pacemaker] building on Mac OS X (Snow Leopard)

Andrew Beekhof andrew at beekhof.net
Mon Mar 29 15:06:31 EDT 2010


On Mon, Mar 29, 2010 at 7:00 PM, Ray Kiddy <ray at ganymede.org> wrote:
>
> On Mar 27, 2010, at 1:59 PM, Andrew Beekhof wrote:
>
>> On Sat, Mar 27, 2010 at 6:04 PM, Ray Kiddy <ray at ganymede.org> wrote:
>>>
>>> I hope this is not an aggressively obnoxious first post, but I did look for archives....
>>
>> I figured I was the only one doing this :-)
>> I usually just use the same prefix as used by the ports system...
>>
>> For glue I use:
>>  ./configure --prefix /opt/local --with-daemon-user=root
>> --with-daemon-group=admin
>>
>> Then for agents, heartbeat and pacemaker:
>>  ./configure --prefix /opt/local
>>
>> For corosync I used:
>>  ./configure --prefix /opt/local --disable-nss
>>
>>
>> Let me know how that works for you.
>> If you still have trouble, I can send a list of the ports I have
>> installed (its a lot and not just for pacemaker).
>>
>
> Thanks for the assist, Andrew.
>
> I did get farther with this suggestion. Then I installed the port for "libnet" and I got farther still.
>
> Then one I ran configure with --disable-fatal-warnings, I was able to build and install the "Reusable-Cluster-Components" stuff.
>
> I only want Heartbeat and Pacemaker, so I tried to build Heartbeat next.
>
> Then, trying to build Hearbeat, I got this:
>
>        configure: error: cannot find install-sh or install.sh in . "."/.
>
> Doing a search for other posts, I discovered that install-sh, config,sub and config,guess need to be copied out of the automake directory I have. Apparently, this is not necessary on other platforms? And configure cannot check or is not checking for automake correctly?

Hmmm, I don't recall doing this.

>
> Now I am stopped in the configure of Hearbeat with this:
>
>        ....
>        configure: WARNING: The following recommended components noted earlier are missing:
>             init defaults directory
>            We will continue but you may have lost some non-critical functionality.
>        configure: error: The following required components noted earlier are missing:
>             init directory
>            Please supply them and try again.
>        #
>
> Is there something else I need to install. AFAIK, MOSX does not use the "init.rc" method of starting daemons. Is there something extra I can do to make these daemons manageable by launchctl? Or is that something I could set up and contribute? On Mac systems, launchctl does seem to be a much better way to manage things....

Its actually a really long time since I actually used heartbeat on OSX.
Mostly I just compile and install so that I can run the non-cluster
parts of Pacemaker (like ptest).

Try adding this to configure:
   --with-initdir=/private/etc/mach_init.d

That should be enough to start building.




More information about the Pacemaker mailing list