Wednesday, February 20, 2013

[Rails] [BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]

I am using Active Record outside rails. I created one rb file at:

/usr/share/puppet-dashboard/bin/process.rb


Code of process.rb

#!/usr/bin/ruby

require 'active_record'
ActiveRecord::Base.establish_connection(
:adapter => "mysql2",
:host => "localhost",
:username => "root",
:password => "root123",
:database => "testproject_development"
)

But when i run this rb file then i get the following error:-

/usr/local/rvm/gems/ruby-1.9.3-p362@artwork_auto/gems/json-1.7.7/lib/json/ext/parser.so:
[BUG] Segmentation fault ruby 1.8.7 (2011-06-30 patchlevel 352)
[x86_64-linux]

Any help will be highly appreciated.

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate