redcloth

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

烂漫一生 提交于 2020-01-05 04:14:09
问题 I have installed RedCloth, by using the devkit. Using gem install RedCloth. If I use plain irb, then require 'RedCloth' works fine. But if I use rails console and do require 'RedCloth', it says it can't find file to load. Please help. Rails 3.0.0 RedCloth 4.2.3 回答1: 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

How to install RedCloth on Windows?

泄露秘密 提交于 2019-12-30 03:08:08
问题 When running gem install RedCloth (on Windows XP) I got: Fetching: RedCloth-4.2.8.gem (100%) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... Successfully installed RedCloth-4.2.8 1 gem installed Installing ri documentation for RedCloth-4.2.8... Installing RDoc documentation for RedCloth-4.2.8... ERROR: While generating documentation for RedCloth-4.2.8 ... MESSAGE: error generating index.html: Error while evaluating D:/Programs/R uby/lib

PATH problem during RedCloth installation

喜欢而已 提交于 2019-12-24 18:55:23
问题 I'm trying to run "bundle install" and it tries to install RedCloth. But it seems like theres a problem during the installation because of my path variable. When I tried "gem install RedCloth" I had the exact same error. I truly dont know what I'm supposed to do with my PATH variable. http://img231.imageshack.us/img231/613/bad4f6afda58444fa77707b.png My current PATH variable is "%APPDATA%\Python\Scripts;C:\Program Files\Google\google_appengine\" 回答1: You need to install the Ruby Installer dev

Ruby DevKit not working for RedCloth and other gems on WindowsXP

妖精的绣舞 提交于 2019-12-11 08:06:56
问题 I'm a completely new to RoR and don't have much web development experience. I usually give up at this point, but I need a RoR dev environment for a job and I can't pick the brain of the site's creator because he's someone outside of the company and made it clear that he's completely unfamiliar with Windows (he develops on a mac and I'm starting to see why...). This is my first time posting so be kind... Goal: Be able to view a RoR based site on local machine, preferably using a pre-existing

redcloth (MissingSourceFile) - new problem after Heroku changed to bundler 1.0.7

浪尽此生 提交于 2019-12-11 04:19:09
问题 Our app had been working. Now I just pushed some new code into staging on Heroku for the 1st time after they moved to bundler 1.0.7. Now our app crashes and I got this error message - /usr/ruby1.9.1/lib/ruby/gems/1.9.1/gems/bundler-1.0.7/lib/bundler/runtime.rb:64:in `require': no such file to load -- redcloth (MissingSourceFile) We're on Rails 2.3.8. Here is part of the Gemfile - gem 'rails', '2.3.8', :require => nil gem 'RedCloth', :require => 'redcloth' Any ideas on how to fix this problem?

Error installing RedCloth

↘锁芯ラ 提交于 2019-12-06 14:02:26
问题 I'm getting this erron when trying to install RedCloth on openSuse: sudo gem install RedCloth Building native extensions. This could take a while... ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb creating Makefile make sh: make: nie znaleziono polecenia Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/RedCloth-4.2.3 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/RedCloth-4.2.3/ext/redcloth_scan/gem_make.out

Failed to build gem native extension when install RedCloth-4.2.9 install Linux

时光毁灭记忆、已成空白 提交于 2019-11-29 20:43:54
I want to install Octopress in my computer. I try to do it like Octopress document. When I run bundle install I got error message An error occured while installing RedCloth (4.2.9), and Bundler cannot continue. Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling. So, I run sudo gem install RedCloth -v '4.2.9' then, I got a error message again: ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) from /usr/lib

Failed to build gem native extension when install RedCloth-4.2.9 install Linux

天涯浪子 提交于 2019-11-28 16:50:08
问题 I want to install Octopress in my computer. I try to do it like Octopress document. When I run bundle install I got error message An error occured while installing RedCloth (4.2.9), and Bundler cannot continue. Make sure that `gem install RedCloth -v '4.2.9'` succeeds before bundling. So, I run sudo gem install RedCloth -v '4.2.9' then, I got a error message again: ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1

rails error, couldn't parse YAML

我的未来我决定 提交于 2019-11-26 06:16:00
After updating the gems I've got this: /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse': couldn't parse YAML at line 182 column 9 (Psych::SyntaxError) from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse_stream' from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:119:in `parse' from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:106:in `load' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems/RedCloth-4.2.3/lib/redcloth/formatters/latex.rb:6:in `<module:LATEX>' from /home/megas/.rvm/gems/ruby-1.9.2-p136

rails error, couldn&#39;t parse YAML

南楼画角 提交于 2019-11-26 01:57:04
问题 After updating the gems I\'ve got this: /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse\': couldn\'t parse YAML at line 182 column 9 (Psych::SyntaxError) from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:148:in `parse_stream\' from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:119:in `parse\' from /home/megas/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/psych.rb:106:in `load\' from /home/megas/.rvm/gems/ruby-1.9.2-p136/gems