Ubuntu 20.04.3 server can Apache be made to render md documents like on GitHub?
Karl Auer
kauer at biplane.com.au
Wed Jan 12 21:23:55 UTC 2022
On Wed, 2022-01-12 at 19:48 +0100, Bo Berglund wrote:
> After this Apache is working, there is now a default webpage on this
> system which was not there previously.
Sounds like progress!
To build the markdown module you also need a package called discount.
This is available in the repos, so you can just "apt install discount".
I was unable to build discount myself.
My procedure for building the markdown modules is below. The only
slightly tricky bit was fixing the paths to discount.
I have not gone further and actually tried using the module, but the
below procedure should get the module into place so you can follow the
remaining instructions about configuring Apache.
Regards, K.
run "sudo apt install build-essential libtool automake autoconf"
run "sudo apt install libmarkdown2-dev apache2 apache2-dev"
run "sudo apt install discount"
Go to https://github.com/hamano/apache-mod-markdown
Click on the green "Code" button and download the ZIP file
use the archive manager to extract it somewhere
go into the directory it was extracted to
edit configure.ac, remove the "include" sections from the with_discount
paths in line 29. The line ends up looking like this: "if test -e
$with_discount/mkdio.h -o -e $with_discount/*/mkdio.h; then"
run "autoreconf -f -i"
run "./configure --with-apxs=/usr/bin/apxs --with-discount=/usr/local"
run "make"
run "make install"
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
GPG fingerprint: 61A0 99A9 8823 3A75 871E 5D90 BADB B237 260C 9C58
Old fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
More information about the ubuntu-users
mailing list