I am just learning Ruby and have become somewhat frustrated on this
issue.
I am trying to install Redcloth and I keep getting an error back
C:\>gem install RedCloth
Building native extensions. This could take a while...
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
make
'make' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in
C:/Ruby186/lib/ruby/gems/1.8/gems/RedCloth-4.
2.3 for inspection.
Results logged to
C:/Ruby186/lib/ruby/gems/1.8/gems/RedCloth-4.2.3/ext/redcloth_
scan/gem_make.out
I installed Ruby 1.8.6-p398 and downloaded gems 1.3.7 and installed
that.
This is on Win 7 if it makes any difference. I am following a Ruby book.
You need a C compiler to install gems with native extensions. The
RubyInstaller[1] team provides a devkit for this, but I'm not sure if
that works with your _really_ old Ruby installation. Install a newer
Ruby, e.g. 1.9.2 or 1.8.7, and try it.
I am just learning Ruby and have become somewhat frustrated on this
issue.
I am trying to install Redcloth and I keep getting an error back
C:\>gem install RedCloth
Building native extensions. This could take a while...
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
make
'make' is not recognized as an internal or external command,
operable program or batch file.
Gem files will remain installed in
C:/Ruby186/lib/ruby/gems/1.8/gems/RedCloth-4.
2.3 for inspection.
Results logged to
C:/Ruby186/lib/ruby/gems/1.8/gems/RedCloth-4.2.3/ext/redcloth_
scan/gem_make.out
I installed Ruby 1.8.6-p398 and downloaded gems 1.3.7 and installed
that.
This is on Win 7 if it makes any difference. I am following a Ruby book.
I am just learning Ruby and have become somewhat frustrated on this
issue.
I am trying to install Redcloth and I keep getting an error back
C:\>gem install RedCloth
Building native extensions. This could take a while...
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.
I would recommend you also install Ruby 1.8.7 instead of 1.8.6, as
that version has been kept for compatibility reasons while 1.8.7 is
receiving more support form both Ruby developers and RubyInstaller
team.
HTH,
···
On Aug 26, 12:41 pm, Tim Ss <advancedtechnolog...@gmail.com> wrote:
--
Luis Lavena
At first, you need to know that RubyGems can be written in other
languages than Ruby, notably C. That's useful, because it enables one to
extend Ruby with capabilities that aren't accessable otherwise and
although the vast majority of gems is written in pure Ruby and doesn't
need a C compiler there are sometimes exceptions as RedCloth.
The reason why your book doesn't mention this is probably because it's
contents weren't tested with a Windows system. Many Ruby developers run
Linux distributions, and Linux always comes with GCC, the GNU C
Compiler, already installed. Same goes for Macs I suppose, although I
never had one.