在我的Gemfile中列出的任何宝石资源中找不到宝石sqlite3〜> 1.4x86〜mingw32'?

问题描述

我正在尝试制作一个非常简单的Rails程序并解决此问题。当我运行rails s时,它告诉我这个错误

Could not find gem sqlite3 (~>1.4) x86~mingw32 in any of the gem sources listed in your gemfile. Run bundle install to install missing gems

问题是,当我运行bundle install时,它会自动删除程序中的某些内容,并显示error : mingw32: key "4A6129F4E4B..." is unkNown以及许多错误,如图所示。 error: mingw32: key 4A6129F4E... is unknown

我点击此链接可以成功解决错误https://www.msys2.org/news/。 然后,我点击此链接https://www.sqlite.org/howtocompile.html,并将所有sqlite文件复制到文件C:\Ruby26\lib\ruby\gems\2.6.0\gems\sqlite3-1.4.2\ext\sqlite3中,并通过msys编译成功。

但是,当我尝试运行rails s时,它仍然告诉我这个错误Could not find gem sqlite3 (~>1.4) x86~mingw32 in any of the gem sources listed in your gemfile. Run bundle install to install missing gems

当我运行bundle install时,它删除了程序中的某些内容

我对此问题非常困惑,能否请您给我一些想法?非常感谢。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)