Skip to content

Instantly share code, notes, and snippets.

@zonoise
Created November 7, 2010 05:42
Show Gist options
  • Save zonoise/665976 to your computer and use it in GitHub Desktop.
Save zonoise/665976 to your computer and use it in GitHub Desktop.
"RAILS_ENV=cucumber rake gems:install"が失敗する。p7
user0@user0-desktop:~/dev/ruby/rails-study$ r2
Using /home/user0/.rvm/gems/ruby-1.8.7-p302
Now using gemset 'r2'
user0@user0-desktop:~/dev/ruby/rails-study$ rails _2.3.10_ cuke-handson
create
create app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create db/seeds.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/initializers/cookie_verification_secret.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
user0@user0-desktop:~/dev/ruby/rails-study$
user0@user0-desktop:~/dev/ruby/rails-study$ cd cuke-handson/
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ ls
README app db lib public test vendor
Rakefile config doc log script tmp
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ git init
Initialized empty Git repository in /home/user0/dev/ruby/rails-study/cuke-handson/.git/
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ vi .gitignore
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ git add .
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
# (use "git rm --cached <file>..." to unstage)
#
# new file: .gitignore
# new file: README
# new file: Rakefile
# new file: app/controllers/application_controller.rb
# new file: app/helpers/application_helper.rb
# new file: config/boot.rb
# new file: config/database.yml
# new file: config/environment.rb
# new file: config/environments/development.rb
# new file: config/environments/production.rb
# new file: config/environments/test.rb
# new file: config/initializers/backtrace_silencers.rb
# new file: config/initializers/cookie_verification_secret.rb
# new file: config/initializers/inflections.rb
# new file: config/initializers/mime_types.rb
# new file: config/initializers/new_rails_defaults.rb
# new file: config/initializers/session_store.rb
# new file: config/locales/en.yml
# new file: config/routes.rb
# new file: db/seeds.rb
# new file: doc/README_FOR_APP
# new file: public/404.html
# new file: public/422.html
# new file: public/500.html
# new file: public/favicon.ico
# new file: public/images/rails.png
# new file: public/index.html
# new file: public/javascripts/application.js
# new file: public/javascripts/controls.js
# new file: public/javascripts/dragdrop.js
# new file: public/javascripts/effects.js
# new file: public/javascripts/prototype.js
# new file: public/robots.txt
# new file: script/about
# new file: script/console
# new file: script/dbconsole
# new file: script/destroy
# new file: script/generate
# new file: script/performance/benchmarker
# new file: script/performance/profiler
# new file: script/plugin
# new file: script/runner
# new file: script/server
# new file: test/performance/browsing_test.rb
# new file: test/test_helper.rb
#
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ git commit -m "first"
[master (root-commit) 70ff25a] first
44 files changed, 8475 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 README
create mode 100644 Rakefile
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/helpers/application_helper.rb
create mode 100644 config/boot.rb
create mode 100644 config/database.yml
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/cookie_verification_secret.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/new_rails_defaults.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 db/seeds.rb
create mode 100644 doc/README_FOR_APP
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/favicon.ico
create mode 100644 public/images/rails.png
create mode 100644 public/index.html
create mode 100644 public/javascripts/application.js
create mode 100644 public/javascripts/controls.js
create mode 100644 public/javascripts/dragdrop.js
create mode 100644 public/javascripts/effects.js
create mode 100644 public/javascripts/prototype.js
create mode 100644 public/robots.txt
create mode 100755 script/about
create mode 100755 script/console
create mode 100755 script/dbconsole
create mode 100755 script/destroy
create mode 100755 script/generate
create mode 100755 script/performance/benchmarker
create mode 100755 script/performance/profiler
create mode 100755 script/plugin
create mode 100755 script/runner
create mode 100755 script/server
create mode 100644 test/performance/browsing_test.rb
create mode 100644 test/test_helper.rb
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ script/generate cucumber ja --webrat --rspec
force config/database.yml
create config/cucumber.yml
create config/environments/cucumber.rb
create script/cucumber
create features/step_definitions
create features/step_definitions/web_steps.rb
create features/step_definitions/web_steps_ja.rb
create features/support
create features/support/paths.rb
create features/support/env.rb
exists lib/tasks
create lib/tasks/cucumber.rake
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
- INSTALLATION DIRECTORY: /home/user0/.rvm/gems/ruby-1.8.7-p302@r2
- RUBY EXECUTABLE: /home/user0/.rvm/rubies/ruby-1.8.7-p302/bin/ruby
- EXECUTABLE DIRECTORY: /home/user0/.rvm/gems/ruby-1.8.7-p302@r2/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /home/user0/.rvm/gems/ruby-1.8.7-p302@r2
- /home/user0/.rvm/gems/ruby-1.8.7-p302@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://rubygems.org/
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ RAILS_ENV=cucumber rake gems:install
(in /home/user0/dev/ruby/rails-study/cuke-handson)
gem install webrat --version ">= 0.7.0"
ERROR: Error installing webrat:
ERROR: Failed to build gem native extension.
/home/user0/.rvm/rubies/ruby-1.8.7-p302/bin/ruby extconf.rb
checking for libxml/parser.h... no
-----
libxml2 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=/home/user0/.rvm/rubies/ruby-1.8.7-p302/bin/ruby
--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 /home/user0/.rvm/gems/ruby-1.8.7-p302@r2/gems/nokogiri-1.4.3.1 for inspection.
Results logged to /home/user0/.rvm/gems/ruby-1.8.7-p302@r2/gems/nokogiri-1.4.3.1/ext/nokogiri/gem_make.out
Building native extensions. This could take a while...
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ which ruby
/home/user0/.rvm/rubies/ruby-1.8.7-p302/bin/ruby
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ ruby -v
ruby 1.8.7 (2010-08-16 patchlevel 302) [i686-linux]
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ gem -v
1.3.7
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ gem list
*** LOCAL GEMS ***
aasm (2.2.0)
abstract (1.0.0)
actionmailer (3.0.0, 2.3.10, 2.3.8, 2.3.5)
actionpack (3.0.0, 2.3.10, 2.3.8, 2.3.5)
activemodel (3.0.0)
activerecord (3.0.0, 2.3.10, 2.3.8, 2.3.5)
activeresource (3.0.0, 2.3.10, 2.3.8, 2.3.5)
activesupport (3.0.0, 2.3.10, 2.3.8, 2.3.5)
arel (1.0.1)
authlogic (2.1.6)
builder (2.1.2)
bundler (1.0.2)
chronic (0.3.0)
configuration (1.1.0)
cucumber (0.9.2)
cucumber-rails (0.3.2)
database_cleaner (0.6.0)
diff-lcs (1.1.2)
erubis (2.6.6)
faker (0.3.1)
ffi (0.6.3)
gettext (2.1.0)
gherkin (2.2.9)
heroku (1.10.14)
i18n (0.4.1)
jeremydurham-restful_authentication (1.1.7)
json (1.4.6)
json_pure (1.4.6)
launchy (0.3.7)
locale (2.0.5)
machinist (1.0.6)
mail (2.2.7)
mime-types (1.16)
packet (0.1.15)
polyglot (0.3.1)
postgres-pr (0.6.3)
rack (1.2.1, 1.1.0, 1.0.1)
rack-mount (0.6.13)
rack-test (0.5.6)
rails (2.3.10, 2.3.8, 2.3.5)
railties (3.0.0)
rake (0.8.7)
rest-client (1.6.1)
rspec (2.0.1)
rspec-core (2.0.1)
rspec-expectations (2.0.1)
rspec-mocks (2.0.1)
rspec-rails (2.0.1)
sequel (3.15.0)
sinatra (1.0)
sqlite3-ruby (1.3.1, 1.2.4)
taps (0.3.13)
term-ansicolor (1.0.5)
thor (0.14.3)
treetop (1.4.8)
tzinfo (0.3.23)
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ sudo RAILS_ENV=cucumber rake gems:install
[sudo] password for user0:
sudo: rake: command not found
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ which rake
/home/user0/.rvm/gems/ruby-1.8.7-p302@r2/bin/rake
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ rvm use system
Now using system ruby.
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ which ruby
/usr/bin/ruby
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.5
- RUBY VERSION: 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby1.8
- EXECUTABLE DIRECTORY: /var/lib/gems/1.8/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-linux
- GEM PATHS:
- /var/lib/gems/1.8
- /home/user0/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- http://gems.rubyforge.org/
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ which rake
/var/lib/gems/1.8/bin/rake
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ sudo RAILS_ENV=cucumber rake gems:install
sudo: rake: command not found
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ sudo apt-get install libxslt-dev libxml2-dev
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています
状態情報を読み取っています... 完了
注意、libxslt-dev の代わりに libxslt1-dev を選択します
以下のパッケージが新たにインストールされます:
libxml2-dev libxslt1-dev
アップグレード: 0 個、新規インストール: 2 個、削除: 0 個、保留: 1 個。
1,366kB のアーカイブを取得する必要があります。
この操作後に追加で 4,698kB のディスク容量が消費されます。
取得:1 http://jp.archive.ubuntu.com/ubuntu/ lucid/main libxml2-dev 2.7.6.dfsg-1ubuntu1 [751kB]
取得:2 http://jp.archive.ubuntu.com/ubuntu/ lucid/main libxslt1-dev 1.1.26-1ubuntu1 [615kB]
1,366kB を 1s で取得しました (848kB/s)
未選択パッケージ libxml2-dev を選択しています。
(データベースを読み込んでいます ... 現在 164235 個のファイルとディレクトリがインストールされています。)
(.../libxml2-dev_2.7.6.dfsg-1ubuntu1_i386.deb から) libxml2-dev を展開しています...
未選択パッケージ libxslt1-dev を選択しています。
(.../libxslt1-dev_1.1.26-1ubuntu1_i386.deb から) libxslt1-dev を展開しています...
man-db のトリガを処理しています ...
doc-base のトリガを処理しています ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
libxml2-dev (2.7.6.dfsg-1ubuntu1) を設定しています ...
libxslt1-dev (1.1.26-1ubuntu1) を設定しています ...
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ gem install nokogiriBuilding native extensions. This could take a while...
Successfully installed nokogiri-1.4.3.1
1 gem installed
Installing ri documentation for nokogiri-1.4.3.1...
No definition for parse_memory
No definition for parse_file
No definition for parse_with
No definition for get_options
No definition for set_options
Installing RDoc documentation for nokogiri-1.4.3.1...
No definition for parse_memory
No definition for parse_file
No definition for parse_with
No definition for get_options
No definition for set_options
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$ RAILS_ENV=cucumber rake gems:install
(in /home/user0/dev/ruby/rails-study/cuke-handson)
gem install webrat --version ">= 0.7.0"
Successfully installed webrat-0.7.2
1 gem installed
Installing ri documentation for webrat-0.7.2...
Installing RDoc documentation for webrat-0.7.2...
user0@user0-desktop:~/dev/ruby/rails-study/cuke-handson$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment