title: Redmine 4.0 with Postgresql Ruby-on-Rails and Apache2-Passenger got this `x64_mingw` is not a valid platform
body: <p>I require Redmine latest version with Postgresql Ruby-on-Rails and Apache2-Passenger in my Debian Linux running in VM instance.</p>
  
  <p>When setting RAIL ENV I got this error </p>
  
  <blockquote>
    <p>x64_mingw` is not a valid platform.</p>
  </blockquote>
  
  <p>Installation Logs Details:</p>
  
  <pre><code>root@lamp-bafs:/#sudo apt-get install postgresql-9.0 apache2 subversion rake rubygems libopenssl-ruby libpgsql-ruby li
  
  root@lamp-bafs:/# su postgres   
  postgres@lamp-bafs:/$ psql  
  
  postgres=# CREATE ROLE redmine1 LOGIN ENCRYPTED PASSWORD 'redmine123'NOINHERIT VALID UNTIL 'infinity';
  CREATE ROLE
  postgres=# CREATE DATABASE redmine1 WITH ENCODING='UTF8' OWNER=redmine1 TEMPLATE template0;
  CREATE DATABASE
  
  postgres=# \q
  postgres@lamp-bafs:/$ exit
  exit
  root@lamp-bafs:/# cd /tmp
  root@lamp-bafs:/tmp# svn co https://svn.redmine.org/redmine/branches/4.0-stable redmine-4.0
  
  root@lamp-bafs:/tmp#
  root@lamp-bafs:/tmp#  mv redmine-4.0/ /var/lib/redmine
  root@lamp-bafs:/tmp# cd /var/lib/redmine
  root@lamp-bafs:/var/lib/redmine#
  
  root@lamp-bafs:/var/lib/redmine# cd redmine-4.0     
  root@lamp-bafs:/var/lib/redmine/redmine-4.0# echo "production:      
  &gt;  adapter: postgresql      
  &gt;  database: redmine1       
  &gt;  host: localhost      
  &gt;  username: redmine1       
  &gt;  password: redmine123     
  &gt;  encoding: utf8       
  &gt;  schema_search_path: public"&gt;config/database.yml      
  root@lamp-bafs:/var/lib/redmine/redmine-4.0#
  </code></pre>
  
  <p>I shld run the below in my SSH Terminal,</p>
  
  <p><strong>RAILS_ENV=production rake config/initializers/session_store.rb</strong></p>
  
  <p><strong>rake generate_session_store</strong></p>
  
  <p><strong>RAILS_ENV=production rake db:migrate</strong></p>
  
  <p><strong>RAILS_ENV=production rake redmine:load_default_data</strong></p>
  
  <p>I got this issue </p>
  
  <pre><code>root@lamp-bafs:/var/lib/redmine# RAILS_ENV=production rake config/initializers/session_store.rb
  `x64_mingw` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :mri, :mri_18, :m
  ri_19, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19]
  root@lamp-bafs:/var/lib/redmine# rake generate_session_store
  `x64_mingw` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :mri, :mri_18, :m
  ri_19, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19]
  root@lamp-bafs:/var/lib/redmine# RAILS_ENV=production rake db:migrate
  `x64_mingw` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :mri, :mri_18, :m
  ri_19, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19]
  root@lamp-bafs:/var/lib/redmine# RAILS_ENV=production rake redmine:load_default_data
  `x64_mingw` is not a valid platform. The available options are: [:ruby, :ruby_18, :ruby_19, :mri, :mri_18, :m
  ri_19, :rbx, :jruby, :mswin, :mingw, :mingw_18, :mingw_19]
  </code></pre>
  
  <p>In my Debian Ruby version</p>
  
  <pre><code> root@lamp-bafs:/var/lib/redmine# ruby -v
      ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
  </code></pre>
  
  <p>Installation detailed <a href="https://docs.google.com/spreadsheets/d/1UMe_ZJHvfeipx58FCLAyBXl9LL9UZCHpQrJy7OZMNtc/edit#gid=0" rel="nofollow noreferrer">log [1]</a> </p>
  
  <p>How to solve this. I appreciate those who help to solve this.</p>