How to Install Redcloth on Windows

How to install RedCloth on Windows?

Here is my workaround to your second error, "Couldn't load 1.9/redcloth_scan", which looks like a bug of RedCloth on Windows. After gem install RedCloth --no-rdoc, I run

cd c:\Ruby192\lib\ruby\gems\1.9.1\gems\RedCloth-4.2.8\lib
mkdir 1.9
copy redcloth_scan.so 1.9

You should replace that directory with your path, "D:\Programs\Ruby\lib\ruby\gems\1.9.1\gems\RedCloth-4.2.8\lib", of course.

Standalone RedCloth on Windows

I've tracked the problem down to two things, the 2nd of which is my "mistake".

  1. The MinGW tools distributed with the DevKit 4.5.1 don't work on Windows 7 64-bit. They seem to have an old version of MinGW which exhibited this problem. Installing up-to-date MinGW tools and using those allowed to compile.
  2. I initially used Git Bash to run gem install RedCloth and this caused some paths to be translated to /C/... instead of C:/ inside the Makefile. Obviously, g++ and friends could not open any of the given files. Re-installing by running ruby and gem from cmd.exe has fixed all the problems.

I now have a happy install. I've also reported the 1st issue to the RubyInstaller team.

Error installing RedCloth

If Google's Polish translation is correct, then you don't have make installed on your machine.

Try entering which make. If you see nothing, then you need to handle that first. I'm not sure the name of the package you need in OpenSuse. You should be able to search in Yum (Yast? whatever OpenSuse's package manager is called...) for something like Debian's 'build-essential' package.

Edit: In OpenSuse, the package you need seems to be called "C/C++ Development" (or "C/C++ Compiler and Tools"). See this thread for some pointers: http://forums.opensuse.org/applications/413553-build-essential.html

I don't know OpenSuse, but if it's anything like Debian, you can probably also install Ruby gems (and Perl and Python modules) directly from your package manager. This can be good and bad. Good because the package manager takes better care of dependencies and uninstalling (on average) than you would on your own. Bad because the distro will often have older versions than you might be able to get yourself. Still, it's an option to consider.

Ruby DevKit not working for RedCloth and other gems on WindowsXP

To be completely honest, I would actually not bother with setting it up on Windows. It can be completely unmanageable and beyond frustrating at times (I know this from experience). There is a reason that there is a very small community of Rails developers that use Windows. Most everyone else uses OS X or a flavor of Linux.

Create an Ubuntu virtual machine with something like VirtualBox (free) and set up the Rails stack on there. It's a much more pain-free environment, and you won't look back. Alternatively, if you don't want to do all the setup yourself, use the BitNami RubyStack. It's a preconfigured Ruby/Rails environment that you can either use as a virtual machine, or install on your computer (I'd opt for the former).

Hope that helps!

How to use rails3 with RedCloth. require 'RedCloth' not working

Is RedClotch included in your Gemfile, and have you run bundle install since updating your Gemfile?

I don't believe Rails 3 will allow you to include gems that are not in the Gemfile. I'm not quite sure about the inner workings of bundler, but I believe the Rails app considers your Gemfile it's "only source" for loading gems.

RedCloth loaderror on ruby 2.0.0 [i386-mingw32]

You might want to stay with 1.9.3 for now, if you must use RedCloth.

RedCloth doesn't seem to support 2.0.0 yet.

RedCloth and Rails

The sanitize gem https://github.com/rgrove/sanitize/ is a solid choice for whitelisting only certain html elements and blocking others (eg )



Related Topics



Leave a reply



Submit