且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Gem::Ext::BuildError: 错误:无法构建 gem 本机扩展.对于 SQLite3

更新时间:2023-02-01 08:30:12

我在未安装 MinGW gem 的情况下尝试安装 SQLite gem 时收到相同的消息

Hi I got the same message when tried to install SQLite gem without MinGW gem installed already

C:\Sites>ridk exec pacman -S mingw-w64-x86_64-dlfcn

安装并重试如果您没有只安装 RailsInstaller Ruby DevKit,它应该可以工作.如果没有,请先尝试卸载它,删除剩余的文件夹并通过命令 gem install rails

Install it and try again If you DON'T have installed RailsInstaller only Ruby DevKit it should work. If not please try uninstalling it first, removing the remaining folders and installing rails by command gem install rails