<div dir="ltr">I use docker to dev on Mac but build in Linux ;)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 14, 2020 at 8:30 AM Phil Steitz <<a href="mailto:phil.steitz@gmail.com">phil.steitz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>I got it to work by changing the export below to refer to the
      brew-installed openssl and then following the manual install
      steps.  So the steps are:</p>
    <p>brew install rabbitmq-c</p>
    <p>export
PKG_CONFIG_PATH=<a href="mailto:/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/Cellar/openssl@1.1/1.1.1h/lib/pkgconfig" target="_blank">"/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/Cellar/openssl@1.1/1.1.1h/lib/pkgconfig"</a> 
      (check paths).<br>
    </p>
    <p>Follow manual install instructions
<a href="https://freeswitch.org/confluence/display/FREESWITCH/macOS+Manual+Installation" target="_blank">https://freeswitch.org/confluence/display/FREESWITCH/macOS+Manual+Installation</a>,
      adding mod_amqp to the build by removing the # in front of
      event_handlers/mod_amqp in modules.conf (like example for FLITE).<br>
    </p>
    <p>Then the module builds and loads successfully for me.  Not sure
      if this is the right way to do it, but it seems to work.<br>
    </p>
    <p>Phil<br>
    </p>
    <div>On 11/12/20 12:59 PM, Phil Steitz
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      Has anyone succeeded at getting mod_amqp built and working on Mac
      OS?  I am trying to get a Mac dev server working to test apps that
      use RabbitMQ to send and receive FS events.<br>
      <br>
      I first tried just enabling the module in a system installed using
      the MacFI installer.  It did not load and showed as not present. 
      Looking at the so's I could see it had not been built.  I tried to
      hack the config in the deployed sources to get it to build (see
      below), but it was missing the amqp dependencies.  Searching the
      archives, I found the thread starting at [1].<br>
      <br>
      I tried using brew to install rabbitmq-c and then setting package
      path per suggestions in the responses in [2].  That worked to get
      get the module built, but I ended up getting a seg fault when I
      started FS.<br>
      <p> If I can get some pointers on how to do this correctly, I
        would be happy to submit a patch to the Mac wiki with
        instructions on how to do it.</p>
      <p>The dev server that I am trying to do the build on is OSX
        10.15.7.  I started by using the MacFI installer, which does not
        build the module.  To get the module built, I modified
        freeswitch/src/mod/modules.inc to add it.  Then config, make,
        make install after the rabbitmq-c brew install and with <code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit"><br>
        </code></p>
      <p><code style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit;background-color:transparent;white-space:inherit">PKG_CONFIG_PATH=<span style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:13px;vertical-align:baseline;box-sizing:inherit"><a href="mailto:/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig" target="_blank">"/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig"</a>
            exported.  This works, but the server fails on startup with
            Segmentation Fault 11.</span></code></p>
      <br>
      Thanks!<br>
      <br>
      Phil<br>
      <br>
      [1] <a href="https://lists.freeswitch.org/pipermail/freeswitch-users/2016-July/121346.html" target="_blank">https://lists.freeswitch.org/pipermail/freeswitch-users/2016-July/121346.html</a><br>
      [2] <a href="https://stackoverflow.com/questions/51818515/installing-amqp-on-mac-with-brew" target="_blank">https://stackoverflow.com/questions/51818515/installing-amqp-on-mac-with-brew</a><br>
    </blockquote>
  </div>

_________________________________________________________________________<br>
<br>
The FreeSWITCH project is sponsored by SignalWire <a href="https://signalwire.com" rel="noreferrer" target="_blank">https://signalwire.com</a><br>
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.<br>
Build your next product on our scalable cloud platform.<br>
<br>
Join our online community to chat in real time <a href="https://signalwire.community" rel="noreferrer" target="_blank">https://signalwire.community</a><br>
<br>
Professional FreeSWITCH Services<br>
<a href="mailto:sales@freeswitch.com" target="_blank">sales@freeswitch.com</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="https://freeswitch.com/oss" rel="noreferrer" target="_blank">https://freeswitch.com/oss</a><br>
<a href="https://freeswitch.org/confluence" rel="noreferrer" target="_blank">https://freeswitch.org/confluence</a><br>
<a href="https://cluecon.com" rel="noreferrer" target="_blank">https://cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="https://freeswitch.com" rel="noreferrer" target="_blank">https://freeswitch.com</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">About: <a href="http://about.me/dujinfang" target="_blank">http://about.me/dujinfang</a><br>Blog: <a href="http://www.dujinfang.com" target="_blank">http://www.dujinfang.com</a><br>Proj:  <a href="http://www.freeswitch.org.cn" target="_blank">http://www.freeswitch.org.cn</a></div>