<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
<style>
div.markdown { white-space: normal; }
div.plaintext { white-space: normal; }
body { font-family: sans-serif; }
div.plaintext h1 { font-size: 1.4em; }
div.plaintext h2 { font-size: 1.2em; }
div.plaintext h3 { font-size: 1.1em; }
blockquote.embedded,div.plaintext blockquote { margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777; }
blockquote.embedded blockquote.embedded,div.plaintext blockquote blockquote { border-left-color: #999999; color: #999999; }
blockquote.embedded blockquote.embedded blockquote.embedded,div.plaintext blockquote blockquote blockquote { border-left-color: #BBBBBB; color: #BBBBBB; }
div.plaintext a { color: #3983C4; }
blockquote.embedded,div.plaintext blockquote a { color: #777777; }
blockquote.embedded blockquote.embedded,div.plaintext blockquote blockquote a { color: #999999; }
blockquote.embedded blockquote.embedded blockquote.embedded,div.plaintext blockquote blockquote blockquote a { color: #BBBBBB; }
div.plaintext pre { margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw; }
div.plaintext code { margin: 0; padding: 0 0.4em; border-radius: 3px; background-color: #F7F7F7; }
div.plaintext pre > code { padding: 0px; }
div.plaintext math[display="inline"] > mrow { padding:5px; }
div.plaintext div.footnotes li p { margin: 0.2em 0; }
body { font-family: sans-serif; }
div.markdown h1 { font-size: 1.4em; }
div.markdown h2 { font-size: 1.2em; }
div.markdown h3 { font-size: 1.1em; }
blockquote.embedded,div.markdown blockquote { margin: 0 0 5px; padding-left: 5px; border-left: 2px solid #777777; color: #777777; }
blockquote.embedded blockquote.embedded,div.markdown blockquote blockquote { border-left-color: #999999; color: #999999; }
blockquote.embedded blockquote.embedded blockquote.embedded,div.markdown blockquote blockquote blockquote { border-left-color: #BBBBBB; color: #BBBBBB; }
div.markdown a { color: #3983C4; }
blockquote.embedded,div.markdown blockquote a { color: #777777; }
blockquote.embedded blockquote.embedded,div.markdown blockquote blockquote a { color: #999999; }
blockquote.embedded blockquote.embedded blockquote.embedded,div.markdown blockquote blockquote blockquote a { color: #BBBBBB; }
div.markdown pre { margin-left: 15px; margin-right: 15px; padding: 5px; background-color: #F7F7F7; border-radius: 5px 5px 5px 5px; overflow-x: auto; max-width: 90vw; }
div.markdown code { margin: 0; padding: 0 0.4em; border-radius: 3px; background-color: #F7F7F7; }
div.markdown pre > code { padding: 0px; }
div.markdown math[display="inline"] > mrow { padding:5px; }
div.markdown div.footnotes li p { margin: 0.2em 0; }
</style>
</head>
<body>
<div class="markdown">
<p dir="auto">I'll tell you that what I would do first would be to make a new file and paste in: </p>
<pre><code> gem install --user redcarpet pygments.rb
</code></pre>
<p dir="auto">Then run that line from within TextMate using Bundles -> Shell Script -> Execute line.</p>
<p dir="auto">[You can also find it by pressing ⌘ + T and searching for "Execute line" or by pressing ^ + R.]</p>
<p dir="auto">That way you can be relatively sure that the <code>gem</code> that TextMate runs commands with will be the one used to install pygments.</p>
<p dir="auto">Thanks,<br>
Graham</p>
<p dir="auto">On 11 Nov 2019, at 10:39, Tao Zha wrote:</p>
</div>
<div class="plaintext"></div>
<blockquote class="embedded"><div id="CD14EA01-92A2-4D1F-96BD-4199DFF48817"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi:<div class=""><br class=""></div><div class="">After I updated macOS Catalina, Markdown Preview no longer works. I got the following error message:</div><div class=""><br class=""></div><div class=""><span style="font-family: "Trebuchet MS", Helvetica, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255);" class="">Please install the Redcarpet and Pygments.rb RubyGems by running the following:</span></div><div class=""><pre id="scroll_to_here" style="font-size: 12.350000381469727px; font-family: LuxiMono, "Bitstream Vera Sans Mono", Menlo, Monaco, "Courier New", monospace; word-wrap: break-word; white-space: pre-wrap; padding: 10px 10px 10px 20px; background-color: rgb(240, 240, 240); border: 1px solid rgb(204, 203, 186);" class=""><code style="font-size: 11.732500076293945px; font-family: LuxiMono, "Bitstream Vera Sans Mono", Menlo, Monaco, "Courier New", monospace; word-wrap: break-word; color: rgb(28, 54, 12); margin-top: 0px;" class="">/usr/bin/gem install --user redcarpet pygments.rb</code></pre><div class=""><br class=""></div></div><div class="">After I ran the above command, I received the following error message from the Terminal:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">$ /usr/bin/gem install --user redcarpet pygments.rb</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Building native extensions. This could take a while...</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">ERROR: Error installing redcarpet:</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""><span class="Apple-tab-span" style="white-space:pre"> </span>ERROR: Failed to build gem native extension.</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""></b></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""> current directory: /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20191111-836-11oqvm2.rb extconf.rb</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.h</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""></b></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">You might have to install separate package for the ruby development</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">environment, ruby-dev or ruby-devel for example.</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""></b></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">extconf failed, exit code 1</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183); min-height: 14px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""></b></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Gem files will remain installed in /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0 for inspection.</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Results logged to /Users/tzha/.gem/ruby/2.6.0/extensions/universal-darwin-19/2.6.0/redcarpet-3.5.0/gem_make.out</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Successfully installed pygments.rb-1.2.1</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Parsing documentation for pygments.rb-1.2.1</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">Done installing documentation for pygments.rb after 0 seconds</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Courier; color: rgb(59, 35, 34); background-color: rgb(215, 211, 183);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">1 gem installed</b></span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""><br class=""></b></span></div><div class="">Can someone help me to resolve this issue?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">Tao</div></div></div></blockquote>
<div class="markdown">
<blockquote>
</blockquote><blockquote><p dir="auto">_______________________________________________<br>
TextMate mailing list<br>
TextMate@lists.macromates.com<br>
<a href="https://lists.macromates.com/listinfo/textmate">https://lists.macromates.com/listinfo/textmate</a></p>
</blockquote></div>
<div class="markdown">
</div>
</body>
</html>