When installing redcloth in Windows, you can use the gem install redcloth to install redcloth successfully, and you can see the installation address through the gem list redcloth-D, but in railsProgramRedcloth cannot be found during loading. After a long history of Google, it was known that it was a redcloth error. This error only appeared in Windows + rails2.3. The solution is as follows:
(1) Change environment. Rb and change config. Gem "redcloth" to config. Gem "redcloth",: Lib => 'redbr'
(2) Find the redcloth installation path, such as D: \ ruby187 \ Lib \ Ruby \ gems \ 1.8 \ gems \ RedCloth-4.2.8 \, enter D: \ ruby187 \ Lib \ Ruby \ gems \ 1.8 \ gems \ RedCloth-4.2.8 \ Ext, in this directory, create a folder named 1.8 [the specific version number should be the same as that of the currently installed Ruby version]. Copy all the content in redcloth_scan to the newly created folder.
In fact, you can run D: \ ruby187 \ bin \ redcloth. bat is used to identify the error caused by the failure to find the redcloth_scan-related dynamic library in the specified directory. The default value is D: \ ruby187 \ Lib \ Ruby \ gems \ 1.8 \ gems \ RedCloth-4.2.8 \ ext \ 1.8 go down to find, rather than redcloth_scan Directory, which can be said to be redcloth production error
Note that you must install Ruby devkit before installing redcloth!