I'll tell you that what I would do first would be to make a new file and paste in:
gem install --user redcarpet pygments.rb
Then run that line from within TextMate using Bundles -> Shell Script -> Execute line.
[You can also find it by pressing ⌘ + T and searching for "Execute line" or by pressing ^ + R.]
That way you can be relatively sure that the
gem that TextMate runs commands with will be the one used to install pygments.
On 11 Nov 2019, at 10:39, Tao Zha wrote:
Hi:After I updated macOS Catalina, Markdown Preview no longer works. I got the following error message:Please install the Redcarpet and Pygments.rb RubyGems by running the following:
/usr/bin/gem install --user redcarpet pygments.rbAfter I ran the above command, I received the following error message from the Terminal:$ /usr/bin/gem install --user redcarpet pygments.rbBuilding native extensions. This could take a while...ERROR: Error installing redcarpet:ERROR: Failed to build gem native extension.current directory: /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0/ext/redcarpet/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.rbmkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/include/ruby.hYou might have to install separate package for the ruby developmentenvironment, ruby-dev or ruby-devel for example.extconf failed, exit code 1Gem files will remain installed in /Users/tzha/.gem/ruby/2.6.0/gems/redcarpet-3.5.0 for inspection.Results logged to /Users/tzha/.gem/ruby/2.6.0/extensions/universal-darwin-19/2.6.0/redcarpet-3.5.0/gem_make.outSuccessfully installed pygments.rb-1.2.1Parsing documentation for pygments.rb-1.2.1Done installing documentation for pygments.rb after 0 seconds1 gem installedCan someone help me to resolve this issue?Thanks,Tao
TextMate mailing list