Ruby on Rails -Sqlite3程序无法位于动态链接库sqlite3 dll中
我是 Ruby on Rails 新手,之前刚刚问过一个问题关于未创建脚本/服务器。发现是因为没有找到sqlite。所以我安装了 gem,但这也不起作用,它说找不到 .dll。所以我使用这个相当教程来获取 .dll 并将其放置在我的 /ruby/bin 中。
这解决了 .dll 丢失的问题,但又引起了另一个问题。当我尝试启动服务器(rails 服务器)时,它说:
过程入口点 sqlite_column_database_name 无法 位于动态链接库中 sqlite3.dll
请帮忙,我是 Ruby on Rails 方面的菜鸟:/
I am new to Ruby on rails and have just previously asked a question about the script/server not being created. And found out that it's because of the sqlite not found. So I installed the gem and that's not working either, it was saying that the .dll wasn't found. So I used this quite tutorial to get the .dll and placed it in my /ruby/bin.
That fixed the .dll missing issue but has caused another problem. When I try to start the server (rails server), it says:
The procedure entry point
sqlite_column_database_name could not
be located in the dynamic link library
sqlite3.dll
Please help, I am a noob at this Ruby on Rails stuff :/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行“gem list sqlite”。发布输出。
我怀疑你安装了 sqlite-ruby 而不是 sqlite3 gem。旧的 gem 试图调用 dll 中不再存在的旧函数。
如果您在 gem 列表中没有看到“sqlite3”,请运行“gem install sqlite3”。
Run "gem list sqlite". Post the output.
I suspect you installed sqlite-ruby instead of sqlite3 gem. The old gem is trying to call an old function in the dll that doesn't exist anymore.
If you don't see "sqlite3" in your gem list, run "gem install sqlite3".