Windows newbie installation problems.

Windows newbie installation problems. I had started with Aptana but could not get it to load correctly. I found RM. Sounds good. Support seems active. So I went through the QuickStart instructions. I removed/uninstalled Aptana and all Ruby/rails directories. Then started over. I got Ruby installed. i got gem installed (as a two part process), started the  Rails install. Looked good
butt didn't complete. It aborted during the ri documentation installation of ActiveRecord
vvvvvv
Installing ri documentation for builder-2.1.2...
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 with the rest of the installation)
Installing ri documentation for i18n-0.4.1...
Installing ri documentation for activemodel-3.0.0...
Installing ri documentation for rack-1.2.1...
Installing ri documentation for rack-test-0.5.4...
Installing ri documentation for rack-mount-0.6.13...
Installing ri documentation for tzinfo-0.3.23...
Installing ri documentation for abstract-1.0.0...
Installing ri documentation for erubis-2.6.6...
Installing ri documentation for actionpack-3.0.0...
Installing ri documentation for arel-1.0.1...
Installing ri documentation for activerecord-3.0.0...
ERROR:  While executing gem ... (Errno::EINVAL)
    Invalid argument - ./</cdesc-<.yaml


C:\Ruby187>
^^^^^^^^

I saw yaml and thought about db servers. I have not installed any. QuickStart did not discuss any. (??)
I went looking around RubyForge looked for gems that would install dbs. I found a process for Mongrel.
I wanted to use SQLite3 but the two step process documentation left me confused about why to install a CLI to the db and where to install it. The second stage I figured to be gem install sqlite3-ruby.

So a bunch of questions up there. I could use some help putting this IDE and ruby and servers and rails.

-Robin

7 comments

Hello Robin,


Installing ri documentation for builder-2.1.2...
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



Looks like a bug in builder-2.1.2 gem. Which RubyMine version do you use? As far as I know latest RubyMine 2.5 EAP build installs Rails gems without documentation due to such problems, which are not related to RubyMine. You can try to install bundler gem with documentation using console, but you will get the same error.

I saw yaml and thought about db servers. I have not installed any. QuickStart did not discuss any. (??)



RubyMine assumes that user is familiar with RoR basic concepts or has some books about Ruby On Rails framework (e.g. "The Rails Way" or "Agile development with Rails"). RubyMine documentation describes only RubyMine features and we cannot include full Rails framework documentation in RubyMine, because it is not part of RubyMine.



I wanted to use SQLite3 but the two step process documentation left me confused about why to install a CLI to the db and where to install it. The second stage I figured to be gem install sqlite3-ruby.


sqlite3-ruby and other db gems are bridges between DB and rails framework API, thus you need to install both: some data base manager itself (e.g. SQLite3, MySQL, etc.) and corresponding "rails api <-> cli" bridge (a gem). If you specify some db settings in config/database.yml configuration file RubyMine will suggest to install corresponding db gem.
0

Thanks Roman for getting back to me and my myriad of questions/problems.
Thanks for leading me in the right direction for my solutions.

My install is very basic. The problems occured even before RM was installed. Considering that most of these error messages were
about documentation I went ahead and loaded RM 2.0.2 (not pre-release).

I will go back to Agile and Essential for the documentation I need for loading up the db servers and Rails <-> db API

The install of RM 2.0.2 finished well and came up. I've got things I can do to play with Ruby until I figure out db stuff.

-Robin

0

As for "builder" gem you can install it

1) from RubyMine

  • Open  File | Settings | Ruby SDK and Gems.
  • Choose necessary Ruby SDK (if you have several) and press "Install Gems..." button.
  • Check that "Generate RDoc" checkbox is disabled in "Install Gems" dialog
  • Select necessary gem(or several gems) and press "Install" button.


2) Or you can install builder gem from console:

gem install builder --no-ri --no-rdoc

0

I've installed sqlite3.exe in the bin directory.


through the gem management tool I'

installed builder with no errors

attempted to installed through the gem management tool:
sqlite3-ruby with docs not selected
and go thee following error:

Following gems were not installed:
sqlite3-ruby (1.3.1ruby x86-mingw32 x86-mswin32-60):  While executing gem ... (ArgumentError)
     Illformed requirement ["= 1.3.1ruby x86-mingw32 x86-mswin32-60"]

These parameters were the one's retrieved from rubygems.org though from the website it says to just
gem install sqlite3-ruby

Is this a  problem at rubygem.org or RM's placement of paratmers?

Robin


.

0

I had the same error results if I tried to install the latest Mongrel.
If I take version 1.1.1 of Mongrel I get the following error message

vvvvvvvvv
Following gems were not installed:
mongrel (1.1.1):  Error installing mongrel:
     ERROR: Failed to build gem native extension.  C:/Ruby187/bin/ruby.exe extconf.rb creating Makefile  make 'make' is not recognized as an internal or external command, operable program or batch file.   Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection. Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out Building native extensions.  This could take a while...

^^^^^^^^^^^^^^
It seems that i need the SDK version of Ruby187 and didn't get one when I selected the  one click installer.

-Robin

0

     ERROR: Failed to build gem native extension.  C:/Ruby187/bin/ruby.exe extconf.rb creating Makefile  make 'make' is not recognized as an internal or external command, operable program or batch file.   Gem files will remain installed in C:/Ruby187/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection. Results logged to C:/Ruby187/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem_make.out Building native extensions.  This could take a while...

This means that Mongrel gem has a native C part and rubygems package manager didn't managed to find C compiler on your machine. Try to google for some Mongrel installation tutorial on Windows

0

attempted to installed through the gem management tool:
sqlite3-ruby with docs not selected
and go thee following error:

Following gems were not installed:
sqlite3-ruby (1.3.1ruby x86-mingw32 x86-mswin32-60):  While executing gem ... (ArgumentError)
     Illformed requirement ["= 1.3.1ruby x86-mingw32 x86-mswin32-60"]

These parameters were the one's retrieved from rubygems.org though from the website it says to just
gem install sqlite3-ruby

Is this a  problem at rubygem.org or RM's placement of paratmers?

Probably it is RubyMine issue. Try to install gem from console (gem install sqlite3-ruby) and submit a bug request at http://youtrack.jetbrains.net/issues/RUBY

0

Please sign in to leave a comment.