xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.87k stars 776 forks source link

macOS下安装报错 pthread not found #5245

Closed jielyu closed 3 months ago

jielyu commented 3 months ago

Xmake Version

v2.9.2

Operating System Version and Architecture

macOS 14.5

Describe Bug

在macOS下,执行安装指令 curl -fsSL https://xmake.io/shget.text | bash 报错 library 'pthread' not found

Expected Behavior

预期正常安装

Project Configuration

no

Additional Information and Error Logs

compiling.release core/src/xmake/string/startswith.c compiling.release core/src/xmake/string/trim.c compiling.release core/src/xmake/tty/term_mode.c linking.release build/macosx/x86_64/release/libxmake.a /Library/Developer/CommandLineTools/usr/bin/ranlib: file: build/macosx/x86_64/release/libxmake.a(curses.c.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: build/macosx/x86_64/release/libxmake.a(iscygpty.c.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: build/macosx/x86_64/release/libxmake.a(history_list.c.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: build/macosx/x86_64/release/libxmake.a(readline.c.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: build/macosx/x86_64/release/libxmake.a(clear_history.c.o) has no symbols /Library/Developer/CommandLineTools/usr/bin/ranlib: file: build/macosx/x86_64/release/libxmake.a(add_history.c.o) has no symbols compiling.release core/src/demo/xmake.c linking.release build/xmake ld: library 'pthread' not found clang-13: error: linker command failed with exit code 1 (use -v to see invocation) gmake: *** [makefile:2617: build/xmake] Error 1 make failed!

jielyu commented 3 months ago

已通过 brew 安装解决

Issues-translate-bot commented 3 months ago

Bot detected the issue body's language is not English, translate it automatically.


Solved through brew installation