You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/01/28 06:22:37 UTC

[GitHub] [apisix] kwanhur opened a new issue #6225: request help: install failed via source on Mac(2.12.0)

kwanhur opened a new issue #6225:
URL: https://github.com/apache/apisix/issues/6225


   ### Issue description
   
   after `make deps` successfully, but `make install` or `sudo make install` failed.
   
   it seems no authority to mkdir dir `/usr/share/lua` . 
   Installed lua with brew, so this related dir should locate at `/usr/local/Cellar/lua/5.1/share` .
   
   ```bash
   ➜  apisix git:(master) sudo make install
   Password:
   install -d /usr/local/apisix/
   install -d /usr/local/apisix/logs/
   install -d /usr/local/apisix/conf/cert
   install conf/mime.types /usr/local/apisix/conf/mime.types
   install conf/config.yaml /usr/local/apisix/conf/config.yaml
   install conf/config-default.yaml /usr/local/apisix/conf/config-default.yaml
   install conf/debug.yaml /usr/local/apisix/conf/debug.yaml
   install conf/cert/* /usr/local/apisix/conf/cert/
   install -d /usr/share/lua/5.1/apisix
   install: mkdir /usr/share/lua: Operation not permitted
   make: *** [install] Error 71
   ```
   
   ### Environment
   
   - apisix version (cmd: `apisix version`): 2.12.0
   - OS (cmd: `uname -a`): Darwin Kwanhur-MacBook-Pro.local 20.6.0 Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64
   - luarocks version, if the issue is about installation (cmd: `luarocks --version`): /usr/local/bin/luarocks 3.7.0
   
   ```bash
   ➜ brew info lua
   lua: stable 5.4.3 (bottled)
   Powerful, lightweight programming language
   https://www.lua.org/
   /usr/local/Cellar/lua/5.4.3 (29 files, 746.3KB) *
     Poured from bottle on 2021-09-19 at 21:07:48
   From: git://mirrors.ustc.edu.cn/homebrew-core.git/Formula/lua.rb
   License: MIT
   ```
   
   ```bash
   ➜ brew info luarocks
   luarocks: stable 3.7.0 (bottled), HEAD
   Package manager for the Lua programming language
   https://luarocks.org/
   /usr/local/Cellar/luarocks/3.7.0 (105 files, 715KB) *
     Poured from bottle on 2021-09-19 at 21:22:43
   From: git://mirrors.ustc.edu.cn/homebrew-core.git/Formula/luarocks.rb
   License: MIT
   ```


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Chever-John commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1053620343


   @kwanhur Hi, I would like to ask, what kind of solution did you finally choose for this problem. In addition, can you confirm the problem is SIP. I look forward to hearing from you soon.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Chever-John commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1024828090


   That's so terrible, but we've at least ruled out that it's not Apache APISIX's fault.
   I suggest that you could close this issue.
   Best wish & happy Chinese New Year!


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1024835699


   In my experience, if you are trying to do source development, after you successfully execute `make deps`, you can execute `. /bin/apisix start|stop|version` under source dir, don't need to `make install`.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Chever-John edited a comment on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
Chever-John edited a comment on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1023960355


   Could it be that you don't have operation permissions for the file( /usr/share/lua)?
   Try "ls -" :)


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] kwanhur commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
kwanhur commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1025084712


   > In my experience, if you are trying to do source development, after you successfully execute `make deps`, you can execute `. /bin/apisix start|stop|version` under source dir, don't need to `make install`.
   
   this scenario just install via source, then provide services for another tool. 


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Chever-John commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1024246376


   Maybe I have a little difference of understanding with you on `sudo` and I suggest you try `mkdir /usr/share/lua` first.
   
   In addition, I would like to confirm whether the processor of your MBP is M1 arch? 
   If so, you can refer to this issues #6099 and this [blog](https://github.com/apache/apisix-website/pull/837).


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] kwanhur closed issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
kwanhur closed issue #6225:
URL: https://github.com/apache/apisix/issues/6225


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] kwanhur commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
kwanhur commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1024152733


   > Could it be that you don't have operation permissions for the file( /usr/share/lua)? Try "ls -" :)
   
   1. this dir `/usr/share/lua` not exist
   2. it hasn't enough authority, even command with `sudo`
   3. on my opinion, it should install at lua share dir which from `brew info lua`, not the fixed dir


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] kwanhur commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
kwanhur commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1053848851


   Finally, I installed on local VM.
   
   
   Kwanhur Huang
   TL;DR
   
   > 2022年2月28日 上午1:17,John Chever ***@***.***> 写道:
   > 
   > 
   > @kwanhur <https://github.com/kwanhur> Hi, I would like to ask, what kind of solution did you finally choose for this problem. In addition, can you confirm the problem is SIP. I look forward to hearing from you soon.
   > 
   > —
   > Reply to this email directly, view it on GitHub <https://github.com/apache/apisix/issues/6225#issuecomment-1053620343>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AANVRBTGSWSM63OSWQQC5UDU5JMEDANCNFSM5M75AUDA>.
   > Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. 
   > You are receiving this because you were mentioned.
   > 
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Chever-John commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1023960355


   Could it be that you don't have operation permissions for the file?
   Try "ls -" :)


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] kwanhur commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
kwanhur commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1024344494


   > Maybe I have a little difference of understanding with you on `sudo` and I suggest you try `mkdir /usr/share/lua` first.
   > 
   > In addition, I would like to confirm whether the processor of your MBP is M1 arch? If so, you can refer to this issues #6099 and this [blog](https://github.com/apache/apisix-website/pull/837).
   
   Under macOS 11.6.1 (Intel Core i5), command `sudo mkdir /usr/share/lua` got failure `Operation not permmitted` :-(
   
   It's enforced by [System Integrity Protection](https://apple.stackexchange.com/questions/193368/what-is-the-rootless-feature-in-el-capitan-really/193379).


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] Chever-John commented on issue #6225: request help: install failed via source on Mac(2.12.0)

Posted by GitBox <gi...@apache.org>.
Chever-John commented on issue #6225:
URL: https://github.com/apache/apisix/issues/6225#issuecomment-1053851515


   What a shocking new. I took the solution idea( SIP ) that you submitted earlier and found that it did not solve the problem.
   I'll try again, hoping there will be good news.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org