Skip to content

Brew support? #10

Description

@mingsai

Can you make this package available via homebrew? Alternate instructions given that apt-get is not available on the Mac might be helpful.

The following steps can help one get closer to a working implementation on MacOSX however I am seeing an error as noted below.

Using Homebrew and Terminal on El Capitan 10.11.6.

Preliminary requirements:
brew install autoreconf
brew install automake
brew install discount

Commands using specific paths on 10.11.6:
autoreconf -f -i
./configure --with-apxs=/usr/sbin/apxs --with-discount=/usr/local --includedir /usr/include/apr-1
make -I /usr/include/apr-1
make install*

  • Generates error --
    make: *** No rule to make target .libs/libmodmarkdown.so', needed byinstall'. Stop.

My working directory contains:

AUTHORS config.status
COPYING config.sub
ChangeLog configure
INSTALL configure.ac
Makefile depcomp
Makefile.am install-sh
Makefile.in libmodmarkdown.la
NEWS libmodmarkdown_la-mod_markdown.lo
README.md libmodmarkdown_la-mod_markdown.o
aclocal.m4 libtool
autom4te.cache ltmain.sh
compile m4
config.guess missing
config.h mod_markdown.c
config.h.in stamp-h1
config.log

When I cd .libs, that directory contains

libmodmarkdown.0.dylib libmodmarkdown.la
libmodmarkdown.a libmodmarkdown.lai
libmodmarkdown.dylib libmodmarkdown_la-mod_markdown.o

Activity

  1. hamano commented on Aug 15, 2016

    @hamano
    Owner

    Could you try apxs -i mod_markdown.la?
    Already fixed Makefile 3c0e79d

  2. mingsai commented on Aug 16, 2016

    @mingsai
    Author

    UPDATE:

    Adding a link to my Xcode toolchains ( sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.11.xctoolchain) and running apxs -c mod_markdown.c did allow me to properly compile.

    A couple of caveats about using this on MacOSX 10.11.6. The /usr/libexec/apache2 directory is sandboxed and inaccessible even using sudo, so using the install command on apxs (apxs -ci mod_markdown.c) does not succeed.

    I was able to manually copy the mod_markdown.so file into a new directory (eg../usr/local/apache/modules) and run chmod 755 /path/mod_markdown.so.

    Then I manually added the LoadModule command to the httpd.conf file in /etc/apache2 using the full path to my compiled module.

    Followed this up by resetting apache. Now I'm off to test. Hope this helps the next Mac OS X user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions