VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
phil.steitz at gmail.com Guest
|
Posted: Thu Nov 12, 2020 7:15 pm Post subject: [Freeswitch-users] mod_amqp on Mac OS |
|
|
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.
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].
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.
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.
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
PKG_CONFIG_PATH="/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig" ([email]/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig[/email]) exported. This works, but the server fails on startup with Segmentation Fault 11.
Thanks!
Phil
[1] https://lists.freeswitch.org/pipermail/freeswitch-users/2016-July/121346.html
[2] https://stackoverflow.com/questions/51818515/installing-amqp-on-mac-with-brew |
|
Back to top |
|
|
phil.steitz at gmail.com Guest
|
Posted: Fri Nov 13, 2020 7:25 pm Post subject: [Freeswitch-users] mod_amqp on Mac OS |
|
|
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:
brew install rabbitmq-c
export PKG_CONFIG_PATH="/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/Cellar/openssl@1.1/1.1.1h/lib/pkgconfig" ([email]/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/Cellar/openssl@1.1/1.1.1h/lib/pkgconfig[/email]) (check paths).
Follow manual install instructions https://freeswitch.org/confluence/display/FREESWITCH/macOS+Manual+Installation, adding mod_amqp to the build by removing the # in front of event_handlers/mod_amqp in modules.conf (like example for FLITE).
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.
Phil
On 11/12/20 12:59 PM, Phil Steitz wrote:
Quote: | 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.
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].
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.
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.
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
PKG_CONFIG_PATH="/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig" ([email]/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig[/email]) exported. This works, but the server fails on startup with Segmentation Fault 11.
Thanks!
Phil
[1] https://lists.freeswitch.org/pipermail/freeswitch-users/2016-July/121346.html
[2] https://stackoverflow.com/questions/51818515/installing-amqp-on-mac-with-brew
|
|
|
Back to top |
|
|
dujinfang at gmail.com Guest
|
Posted: Sat Nov 21, 2020 10:53 pm Post subject: [Freeswitch-users] mod_amqp on Mac OS |
|
|
I use docker to dev on Mac but build in Linux
On Sat, Nov 14, 2020 at 8:30 AM Phil Steitz <phil.steitz@gmail.com (phil.steitz@gmail.com)> wrote:
Quote: |
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:
brew install rabbitmq-c
export PKG_CONFIG_PATH="/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/Cellar/openssl@1.1/1.1.1h/lib/pkgconfig" ([email]/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/Cellar/openssl@1.1/1.1.1h/lib/pkgconfig[/email]) (check paths).
Follow manual install instructions https://freeswitch.org/confluence/display/FREESWITCH/macOS+Manual+Installation, adding mod_amqp to the build by removing the # in front of event_handlers/mod_amqp in modules.conf (like example for FLITE).
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.
Phil
On 11/12/20 12:59 PM, Phil Steitz wrote:
Quote: | 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.
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].
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.
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.
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
PKG_CONFIG_PATH="/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig" ([email]/usr/local/Cellar/rabbitmq-c/0.10.0/lib/pkgconfig:/usr/local/opt/openssl@1.1/lib/pkgconfig[/email]) exported. This works, but the server fails on startup with Segmentation Fault 11.
Thanks!
Phil
[1] https://lists.freeswitch.org/pipermail/freeswitch-users/2016-July/121346.html
[2] https://stackoverflow.com/questions/51818515/installing-amqp-on-mac-with-brew
|
_________________________________________________________________________
The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.
Join our online community to chat in real time https://signalwire.community
Professional FreeSWITCH Services
sales@freeswitch.com (sales@freeswitch.com)
https://freeswitch.com
Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com |
--
About: http://about.me/dujinfang
Blog: http://www.dujinfang.com
Proj: http://www.freeswitch.org.cn |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|