<div dir="ltr"><div><div><div><div>Hi there,<br></div>I've added a biography section for users that it is displayed in the threads list.<br><br></div>The problem is that I am not being able to run a db migration in the dev server to make the new changes work. <br>
<br>After runningĀ "bundle exec rake db:migrate --trace"<br><br>I get<br></div><div style="margin-left:40px">/var/lib/gems/1.9.1/gems/therubyracer-0.11.4/lib/v8/init.so: [BUG] Segmentation fault<br>ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]<br>
<br>Aborted (core dumped)<br></div><br></div>I think it might be related to the ruby version that is using. Below the long story.<br><div><br><div>thanks for your help!<br></div><div>pablo<br></div><div><br></div><div>---------------<br>
Here a list of the things I've done. Do you know what I am missing?<br></div><div><br></div><div><br>After "rake db:migrate"<br><div style="margin-left:40px">Could not find rake-10.0.4 in any of the sources<br>
Run `bundle install` to install missing gems.<br></div><br></div><div>Running bundle install was again giving errors.<br></div><div><br></div>After some turn arounds I did to set up the gem path:<br>export GEM_HOME=/var/lib/gems/1.9.1<br>
export GEM_PATH=/var/lib/gems/1.9.1<br><div><br></div><div>I restored the Gemlock.lock in the repository and I could bundle.<br><br>Not sure if 1.9.1 was the right choice, as ruby version is 1.9.3p0 <br><div style="margin-left:40px">
ruby -v<br>ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-linux])<br></div><br></div><div>Now when trying to rake db:migrate<br>I get:<br><br><div style="margin-left:40px">rake aborted!<br>Gem::LoadError: You have already activated rake 10.3.2, but your Gemfile requires rake 10.0.4. Using bundle exec may solve this.<br>
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:33:in `setup'<br>/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/runtime.rb:19:in `setup'<br>/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup'<br>
/var/lib/gems/1.9.1/gems/bundler-1.3.5/lib/bundler/setup.rb:7<br>/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:59:in `gem_original_require'<br>/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:59:in `require'<br>
/var/www/pageonex/dev/config/boot.rb:6<br>/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'<br>/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'<br>/var/www/pageonex/dev/config/application.rb:1<br>
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'<br>/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'<br>/var/www/pageonex/dev/Rakefile:5<br>/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load'<br>
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/rake_module.rb:28:in `load_rakefile'<br>/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:687:in `raw_load_rakefile'<br>/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:94:in `load_rakefile'<br>
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'<br>/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:93:in `load_rakefile'<br>/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:77:in `run'<br>
/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:176:in `standard_exception_handling'<br>/var/lib/gems/1.9.1/gems/rake-10.3.2/lib/rake/application.rb:75:in `run'<br>/var/lib/gems/1.9.1/gems/rake-10.3.2/bin/rake:33<br>
/usr/local/bin/rake:19:in `load'<br>/usr/local/bin/rake:19<br></div><br></div>And running: "bundle exec rake db:migrate --trace"<br><br>I get<br><div style="margin-left:40px">/var/lib/gems/1.9.1/gems/therubyracer-0.11.4/lib/v8/init.so: [BUG] Segmentation fault<br>
ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux]<br><br>Aborted (core dumped)<br></div><br><div><div><br><div><br><br><div><br><br><br></div></div></div></div></div></div>