sqlite3_native.so: [BUG] 分段错误 [英] sqlite3_native.so: [BUG] Segmentation fault

查看:15
本文介绍了sqlite3_native.so: [BUG] 分段错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了这个 sqlite3 问题,但不知道为什么;我浏览了这个论坛很多小时,但找不到报告的类似问题.我正在使用 ruby​​ 1.9.3,但错误消息似乎调用了 ruby​​ 1.8.7 ;我什至先卸载了 ruby​​ 1.8.7,然后卸载了 sqlite3,然后重新安装了它,但这并没有解决问题

I'm running into this sqlite3 issue and can't figure out why ; I browsed this forum for many hours and could not find a similar issue reported. I'm using ruby 1.9.3, but the error message seems to invoke ruby 1.8.7 ; I even uninstalled ruby 1.8.7 then sqlite3 and then reinstalled it but that did not solve the issue

我正在运行 Rails 3.2.8

I'm running rails 3.2.8

user1@company.com [~/rails_apps/myapp]# rails -v
Rails 3.2.8

和 ruby​​ 1.9.3

and ruby 1.9.3

user1@company.com [~/rails_apps/myapp]# ruby -v
ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-linux]

卸载 ruby​​ 1.8.7

uninstalled ruby 1.8.7

user1@company.com [~/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

user1@company.com [~/rails_apps/myapp]# gem uninstall sqlit3
INFO:  gem "sqlit3" is not installed
user1@company.com [~/rails_apps/myapp]# gem uninstall sqlite3

You have requested to uninstall the gem:
    sqlite3-1.3.6
i18n-0.6.1 depends on [sqlite3 (>= 0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]  Y
Successfully uninstalled sqlite3-1.3.6

重新安装 sqlite3

reinstalled sqlite3

user1@company.com [~/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.6
1 gem installed
Installing 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, skipping
Installing 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

同样的错误信息

user1@company.com [~/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 fault
ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2012.02

Aborted
user1@company.com [~/rails_apps/myapp]# 

有人可以帮忙吗?

推荐答案

我遇到了完全相同的问题,我在网上找到了这个对我有用的解决方案.

I had the exact same problem and I found this solution online that worked for me.

gem list | cut -d" " -f1 | xargs gem uninstall -aIx
gem install bundler
bundle install

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

This will uninstall all gems, then install the bundler and then install all gems for your project. Obviously you will need to run bundle install from a rails project.

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

Here is the blog where I found the solution http://www.zlu.me/blog/2012/10/16/segmentation-fault-with-rails-and-json/

这篇关于sqlite3_native.so: [BUG] 分段错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆