Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7572445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:55:37+00:00 2026-05-30T15:55:37+00:00

Today I was trying to install Redmine on my shared hosting following this guide:

  • 0

Today I was trying to install Redmine on my shared hosting following this guide:

http://unixserveradmin.com/archives/691

But i got stuck installing the mysql gem.

[trebolbi@air6 ~]$ gem install mysql -with-mysql-config=/user/bin/mysql_config
Fetching: mysql-2.8.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb
checking for mysql_ssl_set()... no
checking for rb_str_set_len()... no
checking for rb_thread_start_timer()... no
checking for mysql.h... no
checking for mysql/mysql.h... no
*** 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/ruby
--with-mysql-config
--without-mysql-config


Gem files will remain installed in /home/trebolbi/th-mysql-config=/user/bin/mysql_config/gems/mysql-2.8.1 for inspection.
Results logged to /home/trebolbi/th-mysql-config=/user/bin/mysql_config/gems/mysql-2.8.1/ext/mysql_api/gem_make.out

The problem is bigger yet, because there are 2 installations on my server, one in my local home folder, and one in the server’s bin folder.

That makes the commands doesnt execute without error.

For example, for this step:

  1. Log into the SSH, run “rake gems:install” from the Ruby Apps path

I get this error…

[trebolbi@air6 RedMine]$ rake gems:install
/usr/bin/rake:16:in `load': no such file to load -- rake (LoadError)
from /usr/bin/rake:16

And if i try executing the command using my local installation:

[trebolbi@air6 RedMine]$ ./../../ruby/gems/bin/rake gems:install

I get a lot of errors, all related to “Gem::SourceIndex#add_spec called from /usr/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:91.” … as you can see, it looks for the gems in the server bin directoy (/usr/local/bin) and not in my local user installation of ruby (/home/user/ruby/gems/bin).

I just have to execute this commands to get the installation done…

gem install mysql
cd /home/trebolbi/rails_apps/RedMine
rake gems:install
rake generate_session_store
RAILS_ENV=production rake db:migrate
RAILS_ENV=production rake redmine:load_default_data

And i want to execute them from my account and with my local ruby installation, but i get all those errors… what am I doing wrong?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:55:39+00:00Added an answer on May 30, 2026 at 3:55 pm

    Firtsly, check if your ruby version ($ ruby -v) is fully compatible with the Redmine. You can check the compatiblity RedmineInstall – this will not solve your current problems, but may help avoid others further.

    According to gem installation problem, you should install mysql header files, the gem tool wrote that mysql.h was not found. You can do this if you have privileges to instaling software on your server. If you are, use your package manager (yum, apt-get, pacman – depends on your OS), just install the mysql development package (may be named like libmysql or mysql-devel, google it for your os). If you don’t have privileges on installing software, write an inquiry to support asking to install mysql development libraries.

    For solving rake problem, try to use bundler gem. You can find more information about it there: http://gembundler.com/ . After adding all needed records to the Gemfile, where you probably would like to include rake, mysql, and maybe some other gems, run bundle install. After all that operations you can safely run bundle exec rake to execute exactly the gem from bundler.

    Let me know if you have any questions.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I came across Side-by-side Assemblies for the first time today while trying to install
I've search all over today trying to find how to do this, and not
I got this error today when trying to open a Visual Studio 2008 project
(source: flickr.com ) Hi again everyone :) So today I'm trying to basically create
Today I am trying to echo this php mysql statement within my javascript code,
Today I'm trying the xtend to write a simple program. Looks good, but it
I started learning C# a week ago. Today I was trying to install the
Got this error today while trying to build a project with checkstyle. This works
I'm trying to get all the records just for today but having trouble. Another
I have installed Nuget 1.2 yesterday, and today, while I was trying to install

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.