Open tcurdt opened 13 years ago
same on the gem install
$ gem install rpeg-markdown
Building native extensions. This could take a while...
ERROR: Error installing rpeg-markdown:
ERROR: Failed to build gem native extension.
/Users/tcurdt/.rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb
checking for pkg-config... yes
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/tcurdt/.rvm/rubies/ruby-1.9.2-p136/bin/ruby
--with-peg_markdown-dir
--without-peg_markdown-dir
--with-peg_markdown-include
--without-peg_markdown-include=${peg_markdown-dir}/include
--with-peg_markdown-lib
--without-peg_markdown-lib=${peg_markdown-dir}/lib
extconf.rb:8:in ``': Permission denied - /usr/local/Cellar/pkg-config --cflags glib-2.0 (Errno::EACCES)
from extconf.rb:8:in `<main>'
Gem files will remain installed in /Users/tcurdt/.rvm/gems/ruby-1.9.2-p136@default/gems/rpeg-markdown-1.4.6 for inspection.
Results logged to /Users/tcurdt/.rvm/gems/ruby-1.9.2-p136@default/gems/rpeg-markdown-1.4.6/ext/gem_make.out
hm ...but wait "Permission denied - /usr/local/Cellar/pkg-config" this is wrong. seems like
find_executable('pkg-config')
doesn't do a good job. Replacing it with the correct path
if pkg_config = '/usr/local/bin/pkg-config' # find_executable('pkg-config')
$CFLAGS = `#{pkg_config} --cflags glib-2.0`
$LDFLAGS = `#{pkg_config} --libs glib-2.0`
else
fail "glib2 not found"
end
lets the tests run. Just one fails
1) Failure:
test_that_extension_methods_are_present_on_markdown_class(MarkdownTest) [test/markdown_test.rb:11]:
Markdown class should respond to #to_html
50 tests, 62 assertions, 1 failures, 0 errors, 0 skips
Test run options: --seed 53529
I assume I am just missing the peg-markdown library install ...but the instructions should reflect that