gem install RedCloth

T

Tim Ss

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.
 
Q

Quintus

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

Am 26.08.2010 17:41, schrieb Tim Ss:
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.

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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

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

Quintus

-----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/

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

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

Luis Lavena

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.

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:

http://rubyinstaller.org/downloads
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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top