This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
All - Has anyone configured dispatcher on Mac M1? I downloaded Apache dispatcher for Mac which is for x86 but when i am using it on Mac M1 i get following error:
httpd: Syntax error on line 185 of /opt/homebrew/etc/httpd/httpd.conf: Syntax error on line 1 of /opt/homebrew/opt/httpd/conf.d/dispatcher-pub.conf: Cannot load modules/mod_dispatcher.so into server: dlopen(/opt/homebrew/opt/httpd/modules/mod_dispatcher.so, 10): no suitable image found. Did find:\n\t/opt/homebrew/opt/httpd/modules/mod_dispatcher.so: mach-o, but wrong architecture\n\t/opt/homebrew/Cellar/httpd/2.4.49/modules/mod_dispatcher.so: mach-o, but wrong architecture
Any help with be appreciated
Solved! Go to Solution.
Views
Replies
Total Likes
You need an ARM binary of the dispatcher, and I am not sure if it already exists. I would recommend to raise a support ticket for that.
You could use a x86-64 version of the httpd, which would work with the existing dispatcher; in this case it would use Rosetta. Not sure how good this works.
Another approach: Adobe ships a docker image of httpd + dispatcher module for AEM as a Cloud Service, which you could use. Docker Desktop for MacOS/ARM supports multi-arch, and there this package should be able to run. See https://docs.docker.com/desktop/mac/apple-silicon/
You need an ARM binary of the dispatcher, and I am not sure if it already exists. I would recommend to raise a support ticket for that.
You could use a x86-64 version of the httpd, which would work with the existing dispatcher; in this case it would use Rosetta. Not sure how good this works.
Another approach: Adobe ships a docker image of httpd + dispatcher module for AEM as a Cloud Service, which you could use. Docker Desktop for MacOS/ARM supports multi-arch, and there this package should be able to run. See https://docs.docker.com/desktop/mac/apple-silicon/
Hi,
Could you please try using Docker from Adobe to setup and run dispatcher in Macbook, if this works.
please check Dispatcher section at http://aemlab.blogspot.com/2020/09/aemaacs-setup.html
If anyone gets dispatcher working on M1 Mac (especially a cloud oriented version), please could you post the steps/tools used, as I have had no luck.
I was able to finally run dispatcher on Mac M1. There are several articles online on creating docker image for dispatcher. Follow anyone of them. Just remember while building/ running docker add this below param in the command:
--platform linux/amd64
This is because of difference in architecture in M1 and so we need to create and run docker image for amd64 based architecture. Hope this helps!
Views
Likes
Replies
Views
Likes
Replies