canvas-lms icon indicating copy to clipboard operation
canvas-lms copied to clipboard

Segmentation fault

Open marpa opened this issue 15 years ago • 7 comments

Setting up Canvas using Quick Start instructions on Mac OS 10.6.6 using: -Rails 3.0.3 -ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10.6.0] -gems installed in user directory using Bundler

When I run: rake db:initial_setup (in /Users/achapin/Sites/canvas) /Users/achapin/gems/gems/ruby-debug-base-0.10.4/lib/ruby_debug.bundle: [BUG] Segmentation fault ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10.6.0]

When I run: script/server => Booting WEBrick => Rails 2.3.9 application starting on http://0.0.0.0:3000 /Users/achapin/gems/gems/ruby-debug-base-0.10.4/lib/ruby_debug.bundle: [BUG] Segmentation fault ruby 1.8.7 (2010-12-23 patchlevel 330) [i686-darwin10.6.0]

Note: I executed following from terminal before running Bundler: ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config

This installed gem successfully, but got bunch of "no definition" messages for ri and RDoc documentation (e.g. No definition for next_result, No definition for field_name... etc)

So close....

marpa avatar Feb 05 '11 16:02 marpa

this isn't really a canvas issue actually. looks like one of the native extensions got built or linked wrong.

you could try following the instructions here: http://hivelogic.com/articles/ruby_rails_lighttpd_mysql_tiger (i think you can skip the parts about fastcgi, pcre, and lighttpd)

jtolio avatar Feb 05 '11 16:02 jtolio

ohp, looks like http://hivelogic.com/articles/ruby-rails-mongrel-mysql-osx might even be more helpful

jtolio avatar Feb 05 '11 16:02 jtolio

Ok, will check out links, thanks.

marpa avatar Feb 05 '11 16:02 marpa

jtolds, quick question for you that may or may not be Canvas related... The Quick Start recommended using RVM which installs in gems in mac os user dir. Hivelogic site recommends installing in /usr/local/bin.

Are there any advantages for RVM setting up Canvas in dev environment?

marpa avatar Feb 05 '11 17:02 marpa

There are advantages to RVM in general. Ruby package management is kind of a mess sometimes (different packages depend on different versions of different libraries), and RVM helps you tame that situation very nicely.

However, for just getting Canvas running, it doesn't matter too much.

jtolio avatar Feb 05 '11 18:02 jtolio

http://rvm.beginrescueend.com/integration/databases/ might be helpful to you.

jtolio avatar Feb 05 '11 18:02 jtolio

If you dont want the ri and rdoc which from what I have read aren't necessary if you don't want the documentation you add

gem: --no-ri --no-rdoc

to your .gemrc file in your home directory.

tylerclair avatar Feb 07 '11 16:02 tylerclair