gpt4 book ai didi

mysql - 尝试安装mysql gem时出现"Could not create Makefile"

转载 作者:行者123 更新时间:2023-11-29 09:51:48 24 4
gpt4 key购买 nike

我在 Debian 9.6 上运行 Ruby v2.3.3。我在终端中执行了这个命令:sudo gem install mysql

这给了我一个错误。

    Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

以下是错误的全文:https://pastebin.com/raw/HZcL2UtF

以下是mkmf.log的内容:https://pastebin.com/raw/Bki5e9tT

为什么我无法安装 mysql gem?如何修复此错误?

最佳答案

通常这意味着您的系统上没有所需的 mysql 库。

尝试执行:

sudo apt-get update
sudo apt-get install libmysqlclient-dev libmysqlclient16

然后再次运行mysql gem安装:

sudo gem install mysql

关于mysql - 尝试安装mysql gem时出现"Could not create Makefile",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54655491/

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