This is an automated email from the ASF dual-hosted git repository.

twice pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/kvrocks-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 7f53797b Add a hint to the build command for MacOS (#317)
7f53797b is described below

commit 7f53797b8d7af483219a4035766e461d7d760a06
Author: xuzifu666 <xuzifu...@gmail.com>
AuthorDate: Tue Aug 19 17:50:46 2025 +0800

    Add a hint to the build command for MacOS (#317)
    
    * Add a hint to the build command for MacOS
    
    * Add a hint to the build command for MacOS
    
    * Apply suggestion from @PragmaTwice
    
    ---------
    
    Co-authored-by: Twice <tw...@apache.org>
---
 docs/faq.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docs/faq.md b/docs/faq.md
index f16b2de1..e953aae3 100644
--- a/docs/faq.md
+++ b/docs/faq.md
@@ -42,3 +42,13 @@ But after PR 
[#1489](https://github.com/apache/kvrocks/pull/1489)(since v2.5.0),
 127.0.0.1:6666> config set redis-cursor-compatible yes
 OK
 ```
+
+***Question: encounter "stdlib.h file not found" error while building Kvrocks 
in MacOS**
+
+This issue occurs on certain versions of macOS where the `SYSROOT` cannot be 
found.
+You can work around it by setting `CMAKE_OSX_SYSROOT` to the path of 
`MacOSX.sdk`.
+
+```
+./x.py build 
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
+```
+

Reply via email to