I did end up going to the conference by just showing up. I had a great time.
====
I downloaded the DDDD source. I think I should have it running by doing something similar to "ruby script/server". So I went into tho "scripts" folder and saw two executable files: "cucumber" and "rails".
> ruby cucumber /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to load -- cucumber (LoadError) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' from cucumber:8
So I tried the next one:
> ruby rails /home/haoqili/Desktop/rails/dddd-48f1b10/config/boot.rb:9: uninitialized constant Bundler (NameError) from rails:5:in `require' from rails:5 > sudo gem install bundler Fetching: bundler-1.0.9.gem (100%) Successfully installed bundler-1.0.9 1 gem installed Installing ri documentation for bundler-1.0.9... Installing RDoc documentation for bundler-1.0.9... > ruby rails /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/source.rb:552:in `load_spec_files': git://github.com/thoughtbot/akephalos.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/source.rb:366:in `local_specs' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/source.rb:535:in `specs' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/definition.rb:147:in `resolve' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/definition.rb:145:in `each' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/definition.rb:145:in `resolve' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/definition.rb:90:in `specs' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/definition.rb:135:in `specs_for' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/definition.rb:124:in `requested_specs' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/environment.rb:23:in `requested_specs' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/runtime.rb:11:in `setup' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler.rb:101:in `setup' from /home/haoqili/Desktop/rails/dddd-48f1b10/config/boot.rb:8 from rails:5:in `require' from rails:5 > bundle install Fetching git://github.com/thoughtbot/akephalos.git remote: Counting objects: 754, done. remote: Compressing objects: 100% (327/327), done. remote: Total 754 (delta 377), reused 733 (delta 367) Receiving objects: 100% (754/754), 29.63 MiB | 1.32 MiB/s, done. Resolving deltas: 100% (377/377), done. Fetching source index for http://rubygems.org/ ^[[A^[[BInstalling rake (0.8.7) Installing abstract (1.0.0) Installing activesupport (3.0.3) Installing builder (2.1.2) Installing i18n (0.5.0) Installing activemodel (3.0.3) Installing erubis (2.6.6) Installing rack (1.2.1) Installing rack-mount (0.6.13) Installing rack-test (0.5.7) Installing tzinfo (0.3.24) Installing actionpack (3.0.3) Installing mime-types (1.16) Installing polyglot (0.3.1) Installing treetop (1.4.9) Installing mail (2.2.14) Installing actionmailer (3.0.3) Installing arel (2.0.7) Installing activerecord (3.0.3) Installing activeresource (3.0.3) Installing culerity (0.2.14) Installing nokogiri (1.4.4) with native extensions /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) /usr/bin/ruby1.8 extconf.rb extconf.rb:5:in `require': no such file to load -- mkmf (LoadError) from extconf.rb:5 Gem files will remain installed in /home/haoqili/.bundler/tmp/3690/gems/nokogiri-1.4.4 for inspection. Results logged to /home/haoqili/.bundler/tmp/3690/gems/nokogiri-1.4.4/ext/nokogiri/gem_make.out from /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:446:in `each' from /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:446:in `build_extensions' from /usr/local/lib/site_ruby/1.8/rubygems/installer.rb:198:in `install' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/source.rb:95:in `install' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/installer.rb:55:in `run' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/spec_set.rb:12:in `each' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/spec_set.rb:12:in `each' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/installer.rb:44:in `run' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/installer.rb:8:in `install' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/cli.rb:225:in `install' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/vendor/thor/task.rb:22:in `send' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/vendor/thor/task.rb:22:in `run' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/vendor/thor.rb:246:in `dispatch' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/lib/bundler/vendor/thor/base.rb:389:in `start' from /usr/lib/ruby/gems/1.8/gems/bundler-1.0.9/bin/bundle:13 from /usr/bin/bundle:19:in `load' from /usr/bin/bundle:19First I tried to fix the mkmf problem by doing
> sudo apt-get install ruby1.9.1-devBut it gave me the same error. It was solved by installing an older dev version for some reason!
> sudo apt-get install ruby1.8-dev
> sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... no
-----
libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.8
--with-zlib-dir
--without-zlib-dir
--with-zlib-include
--without-zlib-include=${zlib-dir}/include
--with-zlib-lib
--without-zlib-lib=${zlib-dir}/lib
--with-iconv-dir
--without-iconv-dir
--with-iconv-include
--without-iconv-include=${iconv-dir}/include
--with-iconv-lib
--without-iconv-lib=${iconv-dir}/lib
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
--with-xslt-dir
--without-xslt-dir
--with-xslt-include
--without-xslt-include=${xslt-dir}/include
--with-xslt-lib
--without-xslt-lib=${xslt-dir}/lib
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.4 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/nokogiri-1.4.4/ext/nokogiri/gem_make.out
No comments:
Post a Comment