Missing these required gems: redcloth Solution

Source: Internet
Author: User

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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.