Skip to content

Instantly share code, notes, and snippets.

View arielkirkwood's full-sized avatar

Ariel Kirkwood arielkirkwood

View GitHub Profile
@arielkirkwood
arielkirkwood / gist:982397
Created May 20, 2011 05:10
Error log for starting rails server running PLAS
/Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/ffi-1.0.7/lib/ffi_c.bundle: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
-- control frame ----------
c:0027 p:---- s:0077 b:0077 l:000076 d:000076 CFUNC :initialize
c:0026 p:-540106130 s:0075 b:0075 l:000074 d:000074 TOP
c:0025 p:---- s:0073 b:0073 l:000072 d:000072 CFUNC :require
c:0024 p:0029 s:0069 b:0069 l:000065 d:000068 BLOCK /Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/ffi-1.0.7/lib/ffi.rb:8
c:0023 p:0056 s:0066 b:0066 l:000065 d:000065 TOP /Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/ffi-1.0.7/lib/ffi.rb:1
c:0022 p:---- s:0064 b:0064 l:000063 d:000063 FINISH
@arielkirkwood
arielkirkwood / rubygems
Created May 22, 2011 15:17
List of my local gems and gemsets
n2-203-82:test_site arielkirkwood$ rvm gem list --local
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.7)
actionpack (3.0.7)
activemodel (3.0.7)
activerecord (3.0.7)
activeresource (3.0.7)
@arielkirkwood
arielkirkwood / gemfilemove
Created May 22, 2011 15:34
Trying to use PLAS gemfile with default rails app skeleton (ffi-1.0.7 may be to blame)
n2-203-82:~ arielkirkwood$ rails new test_site
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
@arielkirkwood
arielkirkwood / gist:986085
Created May 23, 2011 01:41
After removing Ubuntu Natty Gemfile block, the issue appears to move to the json gem, though this isn't in the gemfile.
n2-194-128:plas arielkirkwood$ rails server
/Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/json-1.5.1/lib/json/common.rb:66: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
-- control frame ----------
c:0089 p:---- s:0279 b:0279 l:000278 d:000278 CFUNC :initialize
c:0088 p:---- s:0277 b:0277 l:000276 d:000276 CFUNC :new
c:0087 p:0099 s:0274 b:0272 l:000271 d:000271 METHOD /Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/json-1.5.1/lib/json/common.rb:66
c:0086 p:0208 s:0263 b:0262 l:000261 d:000261 CLASS /Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/json-1.5.1/lib/json/ext.rb:24
c:0085 p:0011 s:0260 b:0260 l:000259 d:000259 CLASS /Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/json-1.5.1/lib/json/ext.rb:6
@arielkirkwood
arielkirkwood / gist:986176
Created May 23, 2011 03:27
Result after removing the ffi line from the Ubuntu Natty Gemfile block. Same json issue as gist:986085
n2-194-128:plas arielkirkwood$ rails s
/Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/json-1.5.1/lib/json/common.rb:66: [BUG] unknown type 0x22 (0xc given)
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0]
-- control frame ----------
c:0089 p:---- s:0279 b:0279 l:000278 d:000278 CFUNC :initialize
c:0088 p:---- s:0277 b:0277 l:000276 d:000276 CFUNC :new
c:0087 p:0099 s:0274 b:0272 l:000271 d:000271 METHOD /Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/json-1.5.1/lib/json/common.rb:66
c:0086 p:0208 s:0263 b:0262 l:000261 d:000261 CLASS /Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/json-1.5.1/lib/json/ext.rb:24
c:0085 p:0011 s:0260 b:0260 l:000259 d:000259 CLASS /Users/arielkirkwood/.rvm/gems/ruby-1.9.2-p180@plas/gems/json-1.5.1/lib/json/ext.rb:6
@arielkirkwood
arielkirkwood / gist:986177
Created May 23, 2011 03:29
[plas] bundle install error, ffi is not compiling correctly?
Installing ffi (1.0.7) with native extensions /Users/arielkirkwood/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/arielkirkwood/.rvm/rubies/ruby-head/bin/ruby extconf.rb
checking for ffi.h in /usr/local/include... no
checking for rb_thread_blocking_region()... yes
checking for ruby_thread_has_gvl_p()... yes
checking for ruby_native_thread_p()... yes
checking for rb_thread_call_with_gvl()... yes
creating extconf.h
creating Makefile
@arielkirkwood
arielkirkwood / gist:986179
Created May 23, 2011 03:31
[plas] trying to start rails server anyways after botched bundle install
n2-194-128:plas arielkirkwood$ rails s
/Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/spec_set.rb:87:in `block in materialize': Could not find ffi-1.0.7 in any of the sources (Bundler::GemNotFound)
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/spec_set.rb:81:in `map!'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/spec_set.rb:81:in `materialize'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/definition.rb:90:in `specs'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/definition.rb:135:in `specs_for'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/definition.rb:124:in `requested_specs'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/environment.rb:23:in `requested_specs'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/runtime.rb:11:in `setup'
from /Users/arielkirkwood
@arielkirkwood
arielkirkwood / bundleinstallsuccess
Created May 25, 2011 20:03
[plas] Successful bundle install when specifying gem 'ffi' in stock rails Gemfile
n2-194-128:test_site arielkirkwood$ bundle install
Fetching source index for http://rubygems.org/
Using rake (0.9.0)
Using abstract (1.0.0)
Using activesupport (3.0.7)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.7)
Using erubis (2.6.6)
Installing rack (1.2.3)
@arielkirkwood
arielkirkwood / Gemfile
Created May 25, 2011 20:04
[plas] stock rails Gemfile + ffi
source 'http://rubygems.org'
gem 'rails', '3.0.7'
gem 'ffi'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
@arielkirkwood
arielkirkwood / gist:999833
Created May 31, 2011 03:55
[plas] creating admin user results in error page
RuntimeError in UsersController#show
Permission code payments.accept does not exist
Rails.root: /Users/arielkirkwood/plas
Application Trace | Framework Trace | Full Trace
app/models/user.rb:62:in `can'
app/controllers/users_controller.rb:31:in `show'
actionpack (3.0.7) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (3.0.7) lib/abstract_controller/base.rb:150:in `process_action'