Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

install instructions #4

Open
tcurdt opened this issue Jun 30, 2011 · 2 comments
Open

install instructions #4

tcurdt opened this issue Jun 30, 2011 · 2 comments

Comments

@tcurdt
Copy link

tcurdt commented Jun 30, 2011

I assume I am just missing the peg-markdown library install ...but the instructions should reflect that

$ git clone git://github.com/rtomayko/rpeg-markdown.git
Cloning into rpeg-markdown...
remote: Counting objects: 290, done.
remote: Compressing objects: 100% (156/156), done.
remote: Total 290 (delta 121), reused 272 (delta 121)
Receiving objects: 100% (290/290), 522.04 KiB | 458 KiB/s, done.
Resolving deltas: 100% (121/121), done.

$ cd rpeg-markdown/

$ ruby --version
ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-darwin10.6.0]

$ rake test
(in /Users/tcurdt/Downloads/rpeg-markdown)
cd ext
/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>'
rake aborted!
Command failed with status (1): [/Users/tcurdt/.rvm/rubies/ruby-1.9.2-p136/...]
/Users/tcurdt/Downloads/rpeg-markdown/Rakefile:77:in `block (2 levels) in <top (required)>'
(See full trace by running task with --trace)
@tcurdt
Copy link
Author

tcurdt commented Jun 30, 2011

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

@tcurdt
Copy link
Author

tcurdt commented Jun 30, 2011

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant