From af5dfecdf12cbb4737399b638c60c8c97dd8d0ee Mon Sep 17 00:00:00 2001 From: allen Date: Fri, 3 Nov 2023 15:50:27 +0800 Subject: [PATCH 1/2] add troubleshooting guide for mac arm64 --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 76e05a7..158be5b 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,14 @@ To install from the git repo: cd lua-resty-aws make install +### Troubleshooting +If you are MacOS(arm64) user and encounter `fatal error: 'expat_config.h' file not found +#include "expat_config.h"` error when install, please make sure you have `expat` in your system. +If this error still happen, please add `EXPAT_DIR` parameter when install: +``` +luarocks install lua-resty-aws EXPAT_DIR=/path/to/expat +``` + --- ## Development From 5600f36f9739f92a0edd8431927391a23d91a90a Mon Sep 17 00:00:00 2001 From: allen Date: Sun, 5 Nov 2023 17:18:39 +0800 Subject: [PATCH 2/2] Update README.md Co-authored-by: Thijs Schreijer --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 158be5b..98bedb0 100644 --- a/README.md +++ b/README.md @@ -93,13 +93,11 @@ To install from the git repo: make install ### Troubleshooting -If you are MacOS(arm64) user and encounter `fatal error: 'expat_config.h' file not found -#include "expat_config.h"` error when install, please make sure you have `expat` in your system. -If this error still happen, please add `EXPAT_DIR` parameter when install: -``` -luarocks install lua-resty-aws EXPAT_DIR=/path/to/expat -``` +MacOS has a known issue that the libexpat header file 'expat_config.h' is missing. If you run into that issue, install libexpat manually (eg. `brew install libexpat`). And then include the libexpat location when installing; + luarocks install lua-resty-aws EXPAT_DIR=/path/to/expat + +Details: https://github.com/lunarmodules/luaexpat/issues/32 --- ## Development