tag:support.markedapp.com,2011-09-11:/discussions/problems/103-kramdown-in-markedMarked: Discussion 2013-08-22T17:50:36Ztag:support.markedapp.com,2011-09-11:Comment/125013092011-12-29T23:12:38Z2011-12-29T23:12:38ZKramdown in Marked<div><p>I did some testing and found that
"/Users/ttscoff/.rvm/gems/ruby-1.9.2-p290/bin/kramdown" didn't work
for me, but the binary that was installed in /usr/bin did work. Did
the gem install a kramdown executable in either /usr/bin/kramdown
or /usr/local/bin/kramdown? I'd be curious to know if that location
worked better for you. I'll try to track down why the same version
works for me in one location and not another, but any testing you
could do on the matter would be of great help.</p>
<p>Thanks!</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/125013092011-12-29T23:17:17Z2011-12-29T23:17:17ZKramdown in Marked<div><p>Also, check Console or tail the system.log and tell me what you
get when you have the custom processor set and try to refresh a
page. There should be a ruby error there, if my testing is any
indication. It looks like there's a mismatch in the ruby
version/gemsets when Marked shells out to Ruby on my machine.
Curious what yours looks like.</p>
<p>Also, do you use RVM?</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/125013092011-12-29T23:20:10Z2011-12-29T23:20:11ZKramdown in Marked<div><p>I was having this issue as well. Open the console.app (in
Utilities folder) and check the log called "All Messages."</p>
<p>I had this in there:</p>
<p>12/29/11 1:02:35.430 PM [0x0-0x538538].com.brettterpstra.marky:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems.rb:777:in
`report_activate_error': Could not find RubyGem kramdown (>= 0)
(Gem::LoadError)</p>
<p>Since I'm using RVM, for me, the answer was to create an rvm
wrapper script for kramdown so the binary path and environments are
set correctly. This is the command for my specific gem set and ruby
version:</p>
<p>rvm wrapper ruby-1.9.2-p290@blog blog kramdown</p>
<p>That command creates this executable:</p>
<p>/Users/mark/.rvm/bin/blog_kramdown</p>
<p>... and that's the binary path I used in Marked.</p>
<p>It doesn't look like you're using RVM so your problem is likely
different in solution but hopefully that helps point you in the
right direction.</p></div>Mark Quezadatag:support.markedapp.com,2011-09-11:Comment/125013092011-12-30T11:33:02Z2011-12-30T11:33:03ZKramdown in Marked<div><p>I have rbenv installed but am using the system ruby installation
as rbenv requires additional environmental variables etc. I checked
/usr/bin and sure enough, there was a kramdown executable there.
Inputted it into Marked and it works fine! Thanks for the
suggestion.</p>
<p>I checked Console, and I was getting a similar problem to
Mark:</p>
<p>29/12/2011 22:14:38.194 [0x0-0xfc0fc].com.brettterpstra.marky:
/Library/Ruby/Gems/1.8/gems/kramdown-0.13.4/bin/kramdown:25:in
`require': no such file to load -- kramdown (LoadError)</p></div>Henry Mercertag:support.markedapp.com,2011-09-11:Comment/125013092011-12-30T13:56:31Z2011-12-30T13:56:31ZKramdown in Marked<div><p>Glad that's working. I'm trying to find a way to pass
environment variables when it shells out to run the command, but
not having a lot of luck so far. Hopefully in a version soon.</p>
<p>-Brett</p></div>Brett