Skip to content

Instantly share code, notes, and snippets.

View DevanB's full-sized avatar
👨‍💻
Cooking Up Some Code

Devan DevanB

👨‍💻
Cooking Up Some Code
View GitHub Profile
[2011-06-02 14:10:47] make
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I. -I.ext/include/x86_64-darwin10.7.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o main.o -c main.c
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I. -I.ext/include/x86_64-darwin10.7.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dln.o -c dln.c
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -I. -I.ext/include/x86_64-darwin10.7.0 -I./include -I. -DRUBY_EXPORT -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -o dmydln.o -c dmydln.c
gcc -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwr
Devan-Beitels-MacBook:~ devanb$ gem --debug --backtrace install railsException `NameError' at /Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/command_manager.rb:163 - uninitialized constant Gem::Commands::InstallCommand
Exception `Gem::LoadError' at /Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:900 - Could not find RubyGem sources (> 0.0.1)
Exception `Errno::EAGAIN' at /Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at /Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at /Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailable - read would block
Exception `Errno::EAGAIN' at /Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/net/protocol.rb:135 - Resource temporarily unavailabl
devanb$ gem list rake -rV
*** REMOTE GEMS ***
GET http://rubygems.org/latest_specs.4.8.gz
302 Found
GET http://production.s3.rubygems.org/latest_specs.4.8.gz
200 OK
ERROR: While executing gem ... (TypeError)
incompatible marshal file format (can't be read)
Devan-Beitels-MacBook:~ devanb$ gem install rails --backtrace
ERROR: While executing gem ... (TypeError)
incompatible marshal file format (can't be read)
format version 4.8 required; 31.139 given
/Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:267:in `load'
/Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:267:in `load_specs'
/Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:227:in `block in list'
/Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:223:in `each'
/Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:223:in `list'
/Users/devanb/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/spec_fetcher.rb:146:in `find_matching_with_errors'
Devan-Beitels-MacBook:~ devanb$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.6.2
- RUBY VERSION: 1.9.2 (2011-02-18 patchlevel 180) [x86_64-darwin10.7.0]
- INSTALLATION DIRECTORY: /Users/devanb/.rvm/gems/ruby-1.9.2-p180@foo
- RUBY EXECUTABLE: /Users/devanb/.rvm/rubies/ruby-1.9.2-p180/bin/ruby
- EXECUTABLE DIRECTORY: /Users/devanb/.rvm/gems/ruby-1.9.2-p180@foo/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-10
Devan-Beitels-MacBook:~ devanb$ ruby -rubygems -e 'print Gem.gunzip(File.read("latest_specs.4.8.gz"))' | head -c 40 | hexdump -C
00000000 04 08 5b 02 c6 61 5b 08 22 06 5f 55 3a 11 47 65 |..[..a[."._U:.Ge|
00000010 6d 3a 3a 56 65 72 73 69 6f 6e 5b 06 22 08 31 2e |m::Version[.".1.|
00000020 32 22 09 72 75 62 79 5b |2".ruby[|
00000028
-e:1:in `write': Broken pipe (Errno::EPIPE)
from -e:1:in `print'
from -e:1
gem install rails
WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
/usr/bin aren't both writable.
WARNING: You don't have /Users/devanb/.gem/ruby/1.8/bin in your PATH,
gem executables will not run.
ERROR: Error installing rails:
bundler requires RubyGems version >= 1.3.6
Devan-Beitels-MacBook:sample_app devanb$ rails -v
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:827:in `report_activate_error': Could not find RubyGem rails (>= 0) (Gem::LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:261:in `activate'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:68:in `gem'
from /usr/bin/rails:18
Devan-Beitels-MacBook:~ devanb$ rvm info
ruby-1.9.2-p180@rails3tutorial:
system:
uname: "Darwin Devan-Beitels-MacBook.local 10.7.0 Darwin Kernel Version 10.7.0: Sat Jan 29 15:17:16 PST 2011; root:xnu-1504.9.37~1/RELEASE_I386 i386"
bash: "/bin/bash => GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)"
zsh: "/bin/zsh => zsh 4.3.9 (i386-apple-darwin10.0)"
rvm:
rspec spec/
/Users/devanb/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in `load': no such file to load -- /Users/devanb/spec (LoadError)
from /Users/devanb/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in `block in load_spec_files'
from /Users/devanb/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in `map'
from /Users/devanb/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.0.1/lib/rspec/core/configuration.rb:306:in `load_spec_files'
from /Users/devanb/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.0.1/lib/rspec/core/command_line.rb:18:in `run'
from /Users/devanb/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:55:in `run_in_process'
from /Users/devanb/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:46:in `run'
from /Users/devanb/.rvm/gems/ruby-1.9.2-p180/gems/rspec-core-2.0.1/lib/rspec/core/runner.rb:10:in `block in autorun'