【发布时间】:2021-10-17 01:20:41
【问题描述】:
我正在尝试运行命令
rbenv install 2.0.0-p247
我尝试通过谷歌搜索我遇到的错误来执行几个步骤,但我仍然无法解决错误
我收到了这个错误
构建失败(macOS 11.4 使用 ruby-build 20210804)
Inspect or clean up the working tree at /var/folders/xm/rfncj90s56x8d1wdj0sl_0w40000gn/T/ruby-build.20210814020658.2987.F4rCnt
Results logged to /var/folders/xm/rfncj90s56x8d1wdj0sl_0w40000gn/T/ruby-build.20210814020658.2987.log
Last 10 log lines:
compiling ancdata.c
compiling raddrinfo.c
installing default socket libraries
compiling constants.c
1 warning generated.
linking shared-object ripper.bundle
ld: warning: directory not found for option '-L/Users/username/.rbenv/versions/2.0.0-p247/lib'
linking shared-object socket.bundle
ld: warning: directory not found for option '-L/Users/username/.rbenv/versions/2.0.0-p247/lib'
make: *** [build-ext] Error 2
上面提到的日志文件有内容:
【问题讨论】: