Skip to content

Instantly share code, notes, and snippets.

@uran1980
Last active December 12, 2015 00:18
Show Gist options
  • Save uran1980/4682707 to your computer and use it in GitHub Desktop.
Save uran1980/4682707 to your computer and use it in GitHub Desktop.
PHP :: Install php-sundown extension for php
git clone https://github.com/chobie/php-sundown.git /tmp/php-sundown --recursive
cd /tmp/php-sundown
phpize && ./configure && make && make install
# please add following line to your php.ini
# extension=sundown.so
@AlexKovax
Copy link

Thanks that was very useful ! Quick note : you need to run the make install as root so you might need to add sudo before "make install" if you run these commands as a regular user

@shanecarmody
Copy link

If you’re using OSX El Capitan, then you’ll need to perform an additional step before running the above commands — you must turn off El Capitan’s Rootless feature.

I was getting the following error when I ran sudo make install:

Installing shared extensions:     /usr/lib/php/extensions/no-debug-non-zts-20121212/
cp: /usr/lib/php/extensions/no-debug-non-zts-20121212/#INST@57359#: Operation not permitted
make: *** [install-modules] Error 1

Turning off the rootless feature allowed me to cleanly install this extension.

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