title: Redmine installation: Mysql gem say undefined symbol: mysql_init
body: <p>I'm trying to install redmine on a <a href="http://www.ovh.com" rel="nofollow">OVH</a> mutualized server but i'm block by a MySQL gem issue.
  OVH servers does not allow external network connection. I've downloaded and installed manually all gems with dependencies required for Redmine.</p>
  
  <p>I've installed without any problems MySQL gems:
   - mysql 2.8.1
   - mysql2 0.3.11</p>
  
  <p>For the installation I needed to specify mysql lib and include folders path because it's a mutualized installation and a non standard layout:</p>
  
  <pre><code>gem install mysql-2.8.1.gem
      --no-rdoc
      --no-ri
      --
      --with-mysql-config=/usr/bin/mysql_config
      --without-mysql-dir
      --with-mysql-lib=/usr/lib/mysql
      --with-mysql-include=/usr/include/mysql
  
  gem install mysql2-0.3.11.gem
      --no-rdoc
      --no-ri
      --
      --with-mysql-config=/usr/bin/mysql_config
      --without-mysql-dir
      --with-opt-lib=/usr/lib/mysql
      --with-opt-include=/usr/include/mysql
  </code></pre>
  
  <p>With these 2 commands, I get no error and a message <code>1 gem insalled</code>.</p>
  
  <p>After that funny manual package installation process, I've followed the <a href="http://www.redmine.org/projects/redmine/wiki/RedmineInstall" rel="nofollow">Redmine installation tutorial</a> to initialize my environment.</p>
  
  <p>First command, generate secret token: <code>rake generate_secret_token</code>
  Second command, build database schema: <code>RAILS_ENV=production rake db:migrate</code></p>
  
  <p>The first one work perfectly, but the second send me this error: </p>
  
  <pre><code>ruby: symbol lookup error: /MYHOMEFOLDER/gems/mysql-2.8.1/lib/mysql_api.so: undefined symbol: mysql_init
  </code></pre>
  
  <p>Is there someone who knows how I can resolve this problem?</p>