Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to run redmine on my NSlu2 NAS Server (QNAP) with an arm processor. I installed ipkg and so on everything runs well.

Trying to install redmine I need to install ruby-on-rails. The problem is that the my repositories install ruby version 1.9.1 which is too new for redmine and is not going to work. Does anyone know how I can downgrade ruby to 1.8.6 or 1.8.7?

Many thanks,

P.S.: I could probably compile the right version, but I don't like this idea. Preferred solution would be either some package I can download or the link to alternative repository.

P.P.S.: getting the pre-release Redmine version 0.9.0 started the db population script, but than it blames that I should install mysql gem. Running

gem install mysql

As well as other variation when specifying my-sql-config directory does not help I get the error:

# gem install mysql
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/opt/bin/ruby extconf.rb install mysql
checking for mysql_ssl_set()... *** 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:
/opt/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from /opt/lib/ruby/1.9.1/mkmf.rb:415:in `try_link0'
from /opt/lib/ruby/1.9.1/mkmf.rb:419:in `try_link'
from /opt/lib/ruby/1.9.1/mkmf.rb:527:in `try_func'
from /opt/lib/ruby/1.9.1/mkmf.rb:772:in `block in have_func'
from /opt/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for'
from /opt/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpone'
from /opt/lib/ruby/1.9.1/mkmf.rb:248:in `open'
from /opt/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone'
from /opt/lib/ruby/1.9.1/mkmf.rb:248:in `open'
from /opt/lib/ruby/1.9.1/mkmf.rb:270:in `postpone'
from /opt/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for'
from /opt/lib/ruby/1.9.1/mkmf.rb:771:in `have_func'
from extconf.rb:50:in `<main>'

Gem files will remain installed in /opt/local/lib/ruby/gems/1.9.1/gems/mysql-2.8.1 for inspection.
Results logged to /share/HDA_DATA/.qpkg/Optware/local/lib/ruby/gems/1.9.1/gems/mysql-2.8.1/ext/mysql_api/gem_make.out 

Any suggestions are highly appreciated. The suggested mkmf.log is empty. I assume that I don't have mysql source installed, but where can I get it as an Optware-Package which plays with mysql version installed.

share|improve this question
up vote 3 down vote accepted

TOTAL shot in the dark here:

If you have ruby 1.9.1 installed try installing RVM ( with gem install rvm

Then you can rvm install ruby-1.8.7 --head and then rvm ruby-1.8.7 to switch to ruby 1.8.7

share|improve this answer
Unfortunately, that neither works. After doing updates, installing all the stuff I get the error message, that sed and awk face unexpected tokens in autoconf and am not so eager to go the the autoconf and check what's wrong with that calls. But that was really a great suggestion if it would work. – ovanes Jan 19 '10 at 21:11
Actually it worked! I missed, that I did not have sed and awk, those were symbolic links to busybox. After installing them I successfully switched to ruby 1.8.6 and was able to create the databases. Thanks again! – ovanes Jan 19 '10 at 23:17

Hmm, which device do you have -- an NSLU2 or a QNAP TS series? I don't think the NSLU2 would have the grunt to run a Rails site well, but the QNAP TS-[124]09 would be pretty good.

I'd replace the stock firmware (regardless of what it is) with Debian (which is reported to run very nicely on the QNAP series) and then use the packages from there. ipkg repos tend to be a bit more exciting and fragmented, and a lot less supported, than Debian, so you'll find it easier to get assistance using them.

share|improve this answer
Thanks for the answer. May be I mix up smth. but I thought QNAP TS series runs NSLU2 Linux. I don' like the idea of throwing away all the QNAP apps which I use now... – ovanes Jan 12 '10 at 23:28
Despite that I have TS-419 which is reported at this site as not being fully ported :( – ovanes Jan 12 '10 at 23:34

If you have enough disk space available, have you thought about installing debian in a chroot? That way you still would have the original software available but also a complete debian installation.

share|improve this answer
mmmm... Which OS will that NAS boot than? How is it possible to have two OSes installed? – ovanes Jan 16 '10 at 18:45
The way I'm thinking, the one provided by the vendor. The debian install just has to work using that kernel. Which I'm not sure it will, but the chances are good. Read up on chroot. And ask if there's something that still eludes you. – ptman Jan 17 '10 at 10:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.