Project

General

Profile

Windows Installation

Added by Julio Lacayo over 13 years ago

I have been spinning my wheels trying to install Redmine on a Windows Server 2003 Standard Edition (SP2).

I downloaded version 1.8 of Ruby,(all in one installer for Windows, "rubyinstaller-1.8.7-p302.exe").

I setup so Ruby's "bin" folder is in my system or command prompt path.

I ran the "rubyinstaller-1.8.7-p302.exe" executable.

I created an "Apps" folder "C:\Ruby187\Apps".

I opened a command prompt at that location-- C:\Ruby187\Apps

At the command prompt I typed, "gem install rails"

I got the following errors:

"ERROR: While generating documentation for builder-2.1.2
... MESSAGE: Unhandled special: Special: type=17, text-"<!-- HI -->"
... RDOC args: --ri --op C:/Ruby187/lib/ruby/gems/1.8/doc/builder-2.1.2/ri --tit
le Builder -- Easy XML Building --main README --line-numbers --quiet lib Changes
Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc
doc/releases/builder-2.1.1.rdoc --title builder-2.1.2 Documentation
(continuing wit the rest of the installation)"
"ERROR:  While executing gem ... (Errno::EINVAL)
Invalid argument - ./&lt;/cdesc-<.yaml"

Any and all help is appreciated.
Thanks in advance


Replies (6)

RE: Windows Installation - Added by Felix Schäfer over 13 years ago

I think you should rather ask this on a windows/ruby forum, or maybe even with the rubyinstaller guys.

RE: Windows Installation - Added by Luis Lavena over 13 years ago

Felix Schäfer wrote:

I think you should rather ask this on a windows/ruby forum, or maybe even with the rubyinstaller guys.

This problem is not a Windows specific problem, it fails generating documentation.

Can you try installing the gem with --no-ri --no-rdoc options?

gem install rails --no-ri --no-rdoc

For the record, rdoc documentation fails out of the box with Ruby 1.8.7, installation of rdoc gem helps it.

Felix, appreciated the recommendation to the user, but sometimes reading the problem is more helpful than redirecting users to other places as soon you read Windows word.

Thank you.

RE: Windows Installation - Added by Julio Lacayo over 13 years ago

Thank you, both.

Luis, I've uninstalled and re-installed Ruby. Subsequent reinstall effore got me a bit further (I think)

I ran "*gem install rails*" and

"*gem install mongrel*"

I've configured and setup my sql db

When I ran "rake: db:migrate" I got "*RubyGem version error: rack(1.2.1 not ~> 1.0.1*"

Which prompted me to "*gem uninstall rack -v 1.2.1 && gem install rack -v 1.0.1*"

Then I ran "*rake db:migrate*" which produced, "!!! The bundled mysql.rb driver has been removed from Rails 2.2. Pleae install themysql gem and try again gem insatll mysql.
rake aborted!
no such file to load -- mysql"

I did, "*gem install myswl*"and a number of "*No definition for field_name*" messages were produced.

I tried "*rake generate_session_store*" and got "*rake aborted! No Reakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)"*

I tried "mongrel_rails start" and got "!!! Path to log file not valid: log/mongrel.log
mongrel::start reported an error. Use mongrel_rails mongrel::start -h to get help."

All the help I get is greatly appreciated.

Thanks

RE: Windows Installation - Added by Felix Schäfer over 13 years ago

<offtopic>

Luis Lavena wrote:

Felix, appreciated the recommendation to the user, but sometimes reading the problem is more helpful than redirecting users to other places as soon you read Windows word.

This had nothing to do with windows, I'd have had the same recommendation had it been debian/ubuntu/gentoo/solaris/OS X. The fact is simply that this is not a redmine problem and probably not the best venue to ask, which doesn't mean he might not get an answer here, but that the probability to get one is higher elsewhere. Still, this looked/looks like a weird encoding/escaping problem to me, which I surmised was rather "ruby-on-windows" related, but whatever it is, it's not redmine-specific.

</offtopic>

RE: Windows Installation - Added by Luis Lavena over 13 years ago

Please disable documentation generation with --no-ri --no-rdoc for all the gems that you install

Also, install MySQL

Please read RubyInstaller wiki for tutorials with instructions on installing MySQL and others:

http://github.com/oneclick/rubyinstaller/wiki/Tutorials

While there is not plenty of articles about Ruby, Windows and Redmine, search on google because there are plenty about Rails and Windows.

RE: Windows Installation - Added by Felix Schäfer over 13 years ago

Julio Lacayo wrote:

Then I ran "*rake db:migrate*" which produced, "!!! The bundled mysql.rb driver has been removed from Rails 2.2. Pleae install themysql gem and try again gem insatll mysql.
rake aborted!
no such file to load -- mysql"

I did, "*gem install myswl*"and a number of "*No definition for field_name*" messages were produced.

The messages aren't of importance, I think you can safely ignore them.

I tried "*rake generate_session_store*" and got "*rake aborted! No Reakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb)"*

You have to execute that in redmine's directory, not any other.

I tried "mongrel_rails start" and got "!!! Path to log file not valid: log/mongrel.log
mongrel::start reported an error. Use mongrel_rails mongrel::start -h to get help."

That should be started in redmine's directory too. You should also be able to just run script/server -e production to start with, that will start redmine with a "minimal" rails server (that one is fine for testing the install, not for production).

By the way, have you taken a look at the windows install guide here: HowTo_Install_Redmine_in_a_sub-URI_on_Windows_with_Apache. Probably not all is of interest to you, but some parts might be.

    (1-6/6)