juzhiyuan opened a new issue #4945:
URL: https://github.com/apache/apisix/issues/4945


   ### Issue description
   
   Hi, when I try to install Apache APISIX 2.9 on Mac (M1) accoding to those 
links[1][2], it failed due to reasons below:
   
   ```sh
   lualogging 1.5.2-1 depends on luasocket (3.0rc1-2 installed)
   lualogging 1.5.2-1 is now installed in 
/Users/juzhiyuan/workspace/apisix-2.9/apache-apisix-2.9-src/deps (license: 
MIT/X11)
   
   casbin 1.26.0-1 depends on lrexlib-pcre >= 2.9.1 (not installed)
   Installing https://luarocks.org/lrexlib-pcre-2.9.1-1.src.rock
   
   Error: Failed installing dependency: 
https://luarocks.org/casbin-1.26.0-1.rockspec - Failed installing dependency: 
https://luarocks.org/lrexlib-pcre-2.9.1-1.src.rock - Could not find header file 
for PCRE
     No file pcre.h in /usr/local/include
     No file pcre.h in /usr/include
     No file pcre.h in /include
   You may have to install PCRE in your system and/or pass PCRE_DIR or 
PCRE_INCDIR to the luarocks command.
   Example: luarocks install lrexlib-pcre PCRE_DIR=/usr/local
   make: *** [deps] Error 1
   ```
   
   When I try to install `pcre-devrel`, it shows
   
   ```
   brew install pcre-devel
   
   Warning: No available formula or cask with the name "pcre-devel".
   ==> Searching for similarly named formulae...
   Error: No similarly named formulae found.
   ==> Searching for a previously deleted formula (in the last month)...
   Error: No previously deleted formula found.
   ==> Searching taps on GitHub...
   Error: No formulae found in taps.
   ```
   
   [1] 
https://apisix.apache.org/docs/apisix/how-to-build/#installation-via-source-release-package
   [2] https://github.com/apache/apisix/issues/4772
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.9
   - OS (cmd: `uname -a`): Darwin bogon 20.6.0 Darwin Kernel Version 20.6.0: 
Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 arm64
   - OpenResty / Nginx version (cmd: `nginx -V` or `openresty -V`): nginx 
version: openresty/1.19.3.2
   - etcd version, if have (cmd: run `curl 
http://127.0.0.1:9090/v1/server_info` to get the info from server-info API): 
None
   - apisix-dashboard version, if have: None
   - luarocks version, if the issue is about installation (cmd: `luarocks 
--version`): /opt/homebrew/bin/luarocks 3.7.0
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to