# Gem install RedCloth

**URL:** <https://www.ruby-forum.com/t/gem-install-redcloth/193927>\
**Category:** Ruby\
**Created:** [August 26, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/gem-install-redcloth/193927 "2010-08-26T17:41:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![weliwarmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a587f6/32.png) [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Post date:** [August 26, 2010, 5:41pm UTC](https://www.ruby-forum.com/t/gem-install-redcloth/193927/1 "2010-08-26T17:41:40Z")

</div>

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.

C:/Ruby186/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:/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.

---

<div class="post-metadata">

**Author:** ![weliwarmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a587f6/32.png) [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Post date:** [August 26, 2010, 6:01pm UTC](https://www.ruby-forum.com/t/gem-install-redcloth/193927/2 "2010-08-26T18:01:02Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Am 26.08.2010 17:41, schrieb Tim Ss:

> C:/Ruby186/bin/ruby.exe extconf.rb  
> 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.

Vale,  
Marvin

[1] [http://rubyinstaller.org](http://rubyinstaller.org)  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.10 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iEYEARECAAYFAkx2jtQACgkQDYShvwAbcNk4rwCgkpQY+dUtMiE6+0PJxgY0sa74  
dO4An13Yo4d2NfD6IYjlX1iW7RHB8ymd  
=Kky4  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![weliwarmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a587f6/32.png) [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Post date:** [August 26, 2010, 6:10pm UTC](https://www.ruby-forum.com/t/gem-install-redcloth/193927/3 "2010-08-26T18:10:43Z")

</div>

Where or how do I get this C compiler. The book mentions nothing about  
it.

---

<div class="post-metadata">

**Author:** ![weliwarmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a587f6/32.png) [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Post date:** [August 26, 2010, 6:20pm UTC](https://www.ruby-forum.com/t/gem-install-redcloth/193927/4 "2010-08-26T18:20:57Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Am 26.08.2010 18:10, schrieb Tim Ss:

> Where or how do I get this C compiler. The book mentions nothing about  
> it.

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.

Your starting point to the devkit should be here I suppose:  
[http://rubyinstaller.org/add-ons/devkit/](http://rubyinstaller.org/add-ons/devkit/)

Vale,  
Marvin  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.10 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org/](http://enigmail.mozdev.org/)

iEYEARECAAYFAkx2lDMACgkQDYShvwAbcNn0XwCeMJNjRuk/OUlGSlfpmqZBOV1I  
TZ0AnAqzC3aiXzD3QhQjgPoozNZTUpmd  
=zzBK  
-----END PGP SIGNATURE-----

---

<div class="post-metadata">

**Author:** ![weliwarmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a587f6/32.png) [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Post date:** [August 26, 2010, 6:21pm UTC](https://www.ruby-forum.com/t/gem-install-redcloth/193927/5 "2010-08-26T18:21:07Z")

</div>

> Where or how do I get this C compiler. The book mentions nothing about  
> it.

[http://wiki.github.com/oneclick/rubyinstaller/development-kit](http://wiki.github.com/oneclick/rubyinstaller/development-kit)

Book is out of date.

---

<div class="post-metadata">

**Author:** ![weliwarmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a587f6/32.png) [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Post date:** [August 26, 2010, 7:07pm UTC](https://www.ruby-forum.com/t/gem-install-redcloth/193927/6 "2010-08-26T19:07:33Z")

</div>

Roger P. wrote:

> > Where or how do I get this C compiler. The book mentions nothing about  
> > it.
> 
> [http://wiki.github.com/oneclick/rubyinstaller/development-kit](http://wiki.github.com/oneclick/rubyinstaller/development-kit)
> 
> Book is out of date.

Thank You! This worked

---

<div class="post-metadata">

**Author:** ![weliwarmer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/a587f6/32.png) [@weliwarmer](https://www.ruby-forum.com/u/weliwarmer)\
**Post date:** [August 26, 2010, 8:36pm UTC](https://www.ruby-forum.com/t/gem-install-redcloth/193927/7 "2010-08-26T20:36:12Z")

</div>

On Aug 26, 12:41 pm, Tim Ss [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> C:/Ruby186/bin/ruby.exe extconf.rb  
> creating Makefile
> 
> make  
> ‘make’ is not recognized as an internal or external command,  
> operable program or batch file.

You need a compiler.

> I installed Ruby 1.8.6-p398 and downloaded gems 1.3.7 and installed  
> that.

If you installed Ruby 1.8.6 from RubyInstaller, you don’t need to  
download RubyGems, it is already part of the package.

Please download the DevKit and follow the installation instructions  
from our wiki:

> **[Downloads](https://rubyinstaller.org/downloads/)**
>
> The easy way to install Ruby on Windows This is a self-contained Windows-based installer that includes the Ruby language, an execution environment, important...

[http://wiki.github.com/oneclick/rubyinstaller/development-kit](http://wiki.github.com/oneclick/rubyinstaller/development-kit)

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,
