ruby-on-rails – sqlite3_native.so:[BUG]分段错误

ruby-on-rails – sqlite3_native.so:[BUG]分段错误,第1张

概述我遇到了这个sqlite3问题,无法弄清楚原因;我浏览了这个论坛好几个小时,找不到报道的类似问题. 我正在使用 ruby 1.9.3,但错误消息似乎调用了ruby 1.8.7;我甚至卸载了ruby 1.8.7然后sqlite3然后重新安装它但是没有解决问题 我正在运行rails 3.2.8 [email protected] [~/rails_apps/myapp]# rails -vRails @H_404_6@ 我遇到了这个sqlite3问题,无法弄清楚原因;我浏览了这个论坛好几个小时,找不到报道的类似问题.
我正在使用 ruby 1.9.3,但错误消息似乎调用了ruby 1.8.7;我甚至卸载了ruby 1.8.7然后sqlite3然后重新安装它但是没有解决问题

我正在运行rails 3.2.8

[email protected] [~/rails_apps/myapp]# rails -vRails 3.2.8

和ruby1.9.3

[email protected] [~/rails_apps/myapp]# ruby -vruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]

卸载ruby1.8.7

[email protected] [~/rails_apps/myapp]# rvm uninstall 1.8.7/home3/user1/.rvm/src/ruby-1.8.7-p371 has already been removed./home3/user1/.rvm/rubIEs/ruby-1.8.7-p371 has already been removed.

卸载了sqlite3

[email protected] [~/rails_apps/myapp]# gem uninstall sqlit3INFO:  gem "sqlit3" is not [email protected] [~/rails_apps/myapp]# gem uninstall sqlite3You have requested to uninstall the gem:    sqlite3-1.3.6i18n-0.6.1 depends on [sqlite3 (>= 0)]If you remove this gems,one or more dependencIEs will not be met.Continue with Uninstall? [Yn]  YSuccessfully uninstalled sqlite3-1.3.6

重新安装sqlite3

[email protected] [~/rails_apps/myapp]# gem install sqlite3 Fetching: sqlite3-1.3.6.gem (100%)Building native extensions.  This Could take a while...Successfully installed sqlite3-1.3.61 gem installedInstalling ri documentation for sqlite3-1.3.6...unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGELOG.rdoc,skipPingInstalling RDoc documentation for sqlite3-1.3.6...unable to convert "\xC3" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to US-ASCII for CHANGELOG.rdoc,skipPing

同样的错误消息

[email protected] [~/rails_apps/myapp]# rails generate scaffold project customer:string /home3/user1/ruby/gems/gems/sqlite3-1.3.6/lib/sqlite3/sqlite3_native.so: [BUG] Segmentation faultruby 1.8.7 (2012-02-08 MbarI 8/0x6770 on patchlevel 358) [x86_64-linux],MbarI 0x6770,Ruby Enterprise Edition [email protected] [~/rails_apps/myapp]#

有人可以帮忙吗?

解决方法 我有完全相同的问题,我发现这个在线解决方案对我有用.

gem List | cut -d" " -f1 | xargs gem uninstall -aIxgem install bundlerbundle install

这将卸载所有宝石,然后安装捆绑器,然后为您的项目安装所有宝石.显然,您需要从rails项目运行bundle install.

这是我找到解决方案http://www.zlu.me/blog/2012/10/16/segmentation-fault-with-rails-and-json/的博客

总结

以上是内存溢出为你收集整理的ruby-on-rails – sqlite3_native.so:[BUG]分段错误全部内容,希望文章能够帮你解决ruby-on-rails – sqlite3_native.so:[BUG]分段错误所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1274738.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-08
下一篇 2022-06-08

发表评论

登录后才能评论

评论列表(0条)

保存