gpt4 book ai didi

ruby - 安装 Thin (1.7.2) 时发生错误

转载 作者:行者123 更新时间:2023-12-03 15:25:02 29 4
gpt4 key购买 nike

我尝试安装瘦 Web 服务器 1.7.2 版,但出现错误
与日志:

thin.c:359:10: error: implicit declaration of function 'thin_http_parser_has_error' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
return thin_http_parser_has_error(http) ? Qtrue : Qfalse;
^
thin.c:374:10: error: implicit declaration of function 'thin_http_parser_is_finished' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
return thin_http_parser_is_finished(http) ? Qtrue : Qfalse;
^
9 errors generated.
make: *** [thin.o] Error 1

make failed, exit code 2

Gem files will remain installed in
/Users/dorianmarie/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/gems/thin-1.7.2 for inspection.
Results logged to
/Users/dorianmarie/.rbenv/versions/2.7.1/lib/ruby/gems/2.7.0/extensions/x86_64-darwin-19/2.7.0/thin-1.7.2/gem_make.out

An error occurred while installing thin (1.7.2), and Bundler cannot continue.
Make sure that `gem install thin -v '1.7.2' --source 'https://rubygems.org/'` succeeds before bundling.

最佳答案

禁用错误修复它:

bundle config build.thin --with-cflags="-Wno-error=implicit-function-declaration"

关于ruby - 安装 Thin (1.7.2) 时发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63851404/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com