Skip to content

Instantly share code, notes, and snippets.

@arielkirkwood
Created May 22, 2011 15:34
Show Gist options
  • Save arielkirkwood/985591 to your computer and use it in GitHub Desktop.
Save arielkirkwood/985591 to your computer and use it in GitHub Desktop.
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
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create log
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/application.js
create public/javascripts/controls.js
create public/javascripts/dragdrop.js
create public/javascripts/effects.js
create public/javascripts/prototype.js
create public/javascripts/rails.js
create script
create script/rails
create test
create test/fixtures
create test/functional
create test/integration
create test/performance/browsing_test.rb
create test/test_helper.rb
create test/unit
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
n2-203-82:~ arielkirkwood$ cd test_site
n2-203-82:test_site arielkirkwood$ bundle install
Fetching git://github.com/odorcicd/authlogic.git
remote: Counting objects: 3652, done.
remote: Compressing objects: 100% (1337/1337), done.
remote: Total 3652 (delta 2389), reused 3331 (delta 2193)
Receiving objects: 100% (3652/3652), 574.45 KiB, done.
Resolving deltas: 100% (2389/2389), done.
Fetching git://github.com/grosser/fast_gettext.git
remote: Counting objects: 1510, done.
remote: Compressing objects: 100% (544/544), done.
remote: Total 1510 (delta 939), reused 1417 (delta 886)
Receiving objects: 100% (1510/1510), 217.35 KiB | 100 KiB/s, done.
Resolving deltas: 100% (939/939), done.
Fetching git://github.com/colindean/gettext.git
remote: Counting objects: 2324, done.
remote: Compressing objects: 100% (643/643), done.
remote: Total 2324 (delta 1431), reused 2303 (delta 1418)
Receiving objects: 100% (2324/2324), 531.25 KiB | 477 KiB/s, done.
Resolving deltas: 100% (1431/1431), done.
Fetching git://github.com/grosser/gettext_i18n_rails.git
remote: Counting objects: 821, done.
remote: Compressing objects: 100% (381/381), done.
remote: Total 821 (delta 485), reused 683 (delta 406)
Receiving objects: 100% (821/821), 95.92 KiB, done.
Resolving deltas: 100% (485/485), done.
Fetching git://github.com/parasew/acts_as_tree.git
remote: Counting objects: 177, done.
remote: Compressing objects: 100% (70/70), done.
remote: Total 177 (delta 55), reused 157 (delta 42)
Receiving objects: 100% (177/177), 22.14 KiB, done.
Resolving deltas: 100% (55/55), done.
Fetching git://github.com/jnicklas/capybara.git
remote: Counting objects: 6488, done.
remote: Compressing objects: 100% (2688/2688), done.
remote: Total 6488 (delta 4357), reused 5749 (delta 3760)
Receiving objects: 100% (6488/6488), 5.72 MiB | 464 KiB/s, done.
Resolving deltas: 100% (4357/4357), done.
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Installing activesupport (3.0.5)
Using builder (2.1.2)
Using i18n (0.5.0)
Installing activemodel (3.0.5)
Using erubis (2.6.6)
Using rack (1.2.2)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Installing tzinfo (0.3.26)
Installing actionpack (3.0.5)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Installing mail (2.2.17)
Installing actionmailer (3.0.5)
Installing braintree (2.9.1)
Installing activemerchant (1.13.0)
Installing arel (2.0.9)
Installing activerecord (3.0.5)
Installing activeresource (3.0.5)
Using acts_as_tree (1.2.3) from git://github.com/parasew/acts_as_tree.git (at master)
Using authlogic (2.1.3) from git://github.com/odorcicd/authlogic.git (at rails3)
Using bundler (1.0.13)
Installing bzip2-ruby (0.2.7) with native extensions
Installing nokogiri (1.5.0.beta.4) with native extensions
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
make
Configuring libffi
cd /Users/arielkirkwood/.rvm/gems/ruby-head/gems/ffi-1.0.7/ext/ffi_c/libffi && make
make "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=" "CXXFLAGS=" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "JC1FLAGS=" "LDFLAGS=" "LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=make" "MAKEINFO=/bin/sh /Users/arielkirkwood/.rvm/gems/ruby-head/gems/ffi-1.0.7/ext/ffi_c/libffi/missing --run makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "RUNTESTFLAGS=" "SHELL=/bin/sh" "exec_prefix=/usr/local" "infodir=/usr/local/share/info" "libdir=/usr/local/lib" "prefix=/usr/local" "AR=ar" "AS=as" "CC=gcc" "CXX=g++" "LD=ld" "NM=/usr/bin/nm" "RANLIB=ranlib" "DESTDIR=" all-recursive
Making all in include
make[3]: Nothing to be done for `all'.
Making all in testsuite
make[3]: Nothing to be done for `all'.
Making all in man
make[3]: Nothing to be done for `all'.
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c -o src/debug.lo src/debug.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/debug.c -fno-common -DPIC -o src/.libs/debug.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c -o src/prep_cif.lo src/prep_cif.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/prep_cif.c -fno-common -DPIC -o src/.libs/prep_cif.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c -o src/types.lo src/types.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/types.c -fno-common -DPIC -o src/.libs/types.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c -o src/raw_api.lo src/raw_api.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/raw_api.c -fno-common -DPIC -o src/.libs/raw_api.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c -o src/java_raw_api.lo src/java_raw_api.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/java_raw_api.c -fno-common -DPIC -o src/.libs/java_raw_api.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c -o src/closures.lo src/closures.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/closures.c -fno-common -DPIC -o src/.libs/closures.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c -o src/x86/ffi.lo src/x86/ffi.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/x86/ffi.c -fno-common -DPIC -o src/x86/.libs/ffi.o
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -c -o src/x86/darwin.lo src/x86/darwin.S
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -c src/x86/darwin.S -fno-common -DPIC -o src/x86/.libs/darwin.o
/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c -o src/x86/ffi64.lo src/x86/ffi64.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -Wall -g -fexceptions -c src/x86/ffi64.c -fno-common -DPIC -o src/x86/.libs/ffi64.o
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -c -o src/x86/darwin64.lo src/x86/darwin64.S
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I. -I./include -Iinclude -I./src -I. -I./include -Iinclude -I./src -c src/x86/darwin64.S -fno-common -DPIC -o src/x86/.libs/darwin64.o
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -g -fexceptions -version-info `grep -v '^#' ./libtool-version` -o libffi.la -rpath /usr/local/lib src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/x86/ffi.lo src/x86/darwin.lo src/x86/ffi64.lo src/x86/darwin64.lo
libtool: link: gcc -dynamiclib -Wl,-undefined -Wl,dynamic_lookup -o .libs/libffi.5.dylib src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi.o src/x86/.libs/darwin.o src/x86/.libs/ffi64.o src/x86/.libs/darwin64.o -install_name /usr/local/lib/libffi.5.dylib -compatibility_version 6 -current_version 6.10 -Wl,-single_module
libtool: link: dsymutil .libs/libffi.5.dylib || :
libtool: link: (cd ".libs" && rm -f "libffi.dylib" && ln -s "libffi.5.dylib" "libffi.dylib")
libtool: link: ( cd ".libs" && rm -f "libffi.la" && ln -s "../libffi.la" "libffi.la" )
/bin/sh ./libtool --tag=CC --mode=link gcc -Wall -g -fexceptions -o libffi_convenience.la src/debug.lo src/prep_cif.lo src/types.lo src/raw_api.lo src/java_raw_api.lo src/closures.lo src/x86/ffi.lo src/x86/darwin.lo src/x86/ffi64.lo src/x86/darwin64.lo
libtool: link: ar cru .libs/libffi_convenience.a src/.libs/debug.o src/.libs/prep_cif.o src/.libs/types.o src/.libs/raw_api.o src/.libs/java_raw_api.o src/.libs/closures.o src/x86/.libs/ffi.o src/x86/.libs/darwin.o src/x86/.libs/ffi64.o src/x86/.libs/darwin64.o
/usr/bin/ranlib: file: .libs/libffi_convenience.a(ffi.o) has no symbols
/usr/bin/ranlib: file: .libs/libffi_convenience.a(darwin.o) has no symbols
libtool: link: ranlib .libs/libffi_convenience.a
ranlib: file: .libs/libffi_convenience.a(ffi.o) has no symbols
ranlib: file: .libs/libffi_convenience.a(darwin.o) has no symbols
libtool: link: ( cd ".libs" && rm -f "libffi_convenience.la" && ln -s "../libffi_convenience.la" "libffi_convenience.la" )
compiling AbstractMemory.c
compiling ArrayType.c
compiling Buffer.c
compiling Call.c
compiling ClosurePool.c
ClosurePool.c: In function ‘rbffi_ClosurePool_Free’:
ClosurePool.c:113: warning: implicit conversion shortens 64-bit value into a 32-bit value
ClosurePool.c: In function ‘rbffi_Closure_Free’:
ClosurePool.c:199: warning: implicit conversion shortens 64-bit value into a 32-bit value
ClosurePool.c: In function ‘getPageSize’:
ClosurePool.c:221: warning: implicit conversion shortens 64-bit value into a 32-bit value
compiling DataConverter.c
compiling DynamicLibrary.c
compiling ffi.c
compiling Function.c
compiling FunctionInfo.c
FunctionInfo.c: In function ‘fntype_initialize’:
FunctionInfo.c:108: warning: implicit conversion shortens 64-bit value into a 32-bit value
compiling LastError.c
compiling MappedType.c
compiling MemoryPointer.c
MemoryPointer.c: In function ‘memptr_malloc’:
MemoryPointer.c:95: warning: implicit conversion shortens 64-bit value into a 32-bit value
compiling MethodHandle.c
MethodHandle.c: In function ‘trampoline_offset’:
MethodHandle.c:271: warning: implicit conversion shortens 64-bit value into a 32-bit value
MethodHandle.c: In function ‘trampoline_size’:
MethodHandle.c:310: warning: implicit conversion shortens 64-bit value into a 32-bit value
compiling Platform.c
compiling Pointer.c
compiling Struct.c
Struct.c: In function ‘struct_initialize’:
Struct.c:100: warning: implicit conversion shortens 64-bit value into a 32-bit value
Struct.c: In function ‘struct_set_pointer’:
Struct.c:316: warning: comparison between signed and unsigned
Struct.c: In function ‘inline_array_offset’:
Struct.c:453: warning: comparison between signed and unsigned
Struct.c:457: warning: implicit conversion shortens 64-bit value into a 32-bit value
Struct.c: In function ‘inline_array_each’:
Struct.c:543: warning: comparison between signed and unsigned
Struct.c: In function ‘inline_array_to_a’:
Struct.c:561: warning: comparison between signed and unsigned
compiling StructByReference.c
compiling StructByValue.c
compiling StructLayout.c
StructLayout.c: In function ‘struct_layout_initialize’:
StructLayout.c:351: warning: implicit conversion shortens 64-bit value into a 32-bit value
StructLayout.c:377: error: lvalue required as left operand of assignment
make: *** [StructLayout.o] Error 1
Gem files will remain installed in /Users/arielkirkwood/.rvm/gems/ruby-head/gems/ffi-1.0.7 for inspection.
Results logged to /Users/arielkirkwood/.rvm/gems/ruby-head/gems/ffi-1.0.7/ext/ffi_c/gem_make.out
from /Users/arielkirkwood/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:511:in `block in build_extensions'
from /Users/arielkirkwood/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in `each'
from /Users/arielkirkwood/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:486:in `build_extensions'
from /Users/arielkirkwood/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:159:in `install'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/source.rb:100:in `install'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/installer.rb:58:in `block (2 levels) in run'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/rubygems_integration.rb:90:in `with_build_args'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/installer.rb:57:in `block in run'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/spec_set.rb:12:in `block in each'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/spec_set.rb:12:in `each'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/spec_set.rb:12:in `each'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/installer.rb:49:in `run'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/installer.rb:8:in `install'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/cli.rb:222:in `install'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/vendor/thor.rb:246:in `dispatch'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/lib/bundler/vendor/thor/base.rb:389:in `start'
from /Users/arielkirkwood/.rvm/gems/ruby-head/gems/bundler-1.0.13/bin/bundle:13:in `<top (required)>'
from /Users/arielkirkwood/.rvm/gems/ruby-head/bin/bundle:19:in `load'
from /Users/arielkirkwood/.rvm/gems/ruby-head/bin/bundle:19:in `<main>'
n2-203-82:test_site arielkirkwood$ rails server
Could not find ffi-1.0.7 in any of the sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment