Content
Error when installing on Debian 7.1 32bit
Hi,
I am attempting to install on Debian 7.1 but am getting an error during the “bundle install —without rmagick” step. It throws the error when attempting to install debug_inspector (0.0.2). I have attached a screen shot of the error.
Any help would be greatly appreciated.
Thanks!!

Hi William,
you need to install build tools on your machine. This link might help;
http://www.cyberciti.biz/faq/debian-linux-install-gnu-gcc-compiler/
Good luck!
Thanks!!
That worked great. Was able to get everything installed but when I try and start the server using “ruby rails s”, it seems to crash. I have attached a screenshot.
What does your database.yml look like?
# MySQL (default setup). production: adapter: mysql2 database: openproject host: localhost username: root password: 1234 encoding: utf8 development: adapter: mysql2 database: openproject_development host: localhost username: root password: 1234 encoding: utf8 # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: adapter: mysql2 database: openproject_test host: localhost username: root password: 1234 encoding: utf8 test_pgsql: adapter: postgresql encoding: unicode database: openproject_test pool: 5 username: openproject password: #test_sqlite3: #adapter: sqlite3 #database: db/test.sqlite3
Actually, just noticed it was failing on the rake db:create:all…..
root@ehim:/openproject# rake db:create:all --trace require 'rails/all'... 0.600s Bundler.require... 4.800s ** Invoke db:create:all (first_time) ** Invoke db:load_config (first_time) ** Execute db:load_config ** Execute db:create:all rake aborted! can't convert Fixnum into String /var/lib/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `connect' /var/lib/gems/1.9.1/gems/mysql2-0.3.11/lib/mysql2/client.rb:44:in `initialize' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `new' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/mysql2_adapter.rb:16:in `mysql2_connection' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:315:in `new_connection' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:325:in `checkout_new_connection' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:247:in `block (2 levels) in checkout' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `loop' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:242:in `block in checkout' /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:239:in `checkout' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:102:in `block in connection' /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:101:in `connection' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb:410:in `retrieve_connection' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:171:in `retrieve_connection' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:145:in `connection' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:120:in `rescue in create_database' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:85:in `create_database' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:52:in `block (5 levels) in <top (required)>' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:184:in `local_database?' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:52:in `block (4 levels) in <top (required)>' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:38:in `each_value' /var/lib/gems/1.9.1/bundler/gems/rails-b0f96d443661/activerecord/lib/active_record/railties/databases.rake:38:in `block (3 levels) in <top (required)>' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain' /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `each' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling' /var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run' /var/lib/gems/1.9.1/gems/rake-10.0.4/bin/rake:33:in `<top (required)>' /usr/local/bin/rake:23:in `load' /usr/local/bin/rake:23:in `<main>' Tasks: TOP => db:create:all root@ehim:/openproject#
I think this is a yml issue with the password. 1234 is interpreted as a number, not a string. Could you try putting it in double quotes or something? Like this:
development: adapter: mysql2 database: openproject_development host: localhost username: root password: "1234" encoding: utf8
I also took the liberty to reformat your pasted database.yml and stack trace into pre-blocks.
That fixed everything, it’s up and running great now….
Thanks for all your help!!
Great. Enjoy!