Installation of mediawiki math extension on a shared host

From NMR Wiki

Jump to: navigation, search

To compile texvc first tried to run

make

in www/wiki/math directory

This failed as it needed ocaml

Downloaded ocaml version 3.10.1

ocaml required some X11 library which my host lacked, so I've built it from source files.

Building X11

Compilation of libX11 was quite straightforward except I had to resolve a dozen dependencies or so.

Perhaps I could have used yum or something like that but I did it all manually.

I've stopped using RPM after reading this.

For all X11 libraries used configuration ./configure --prefix=<home directory>

Notably xproto library required setting this environment variable

PKG_CONFIG_PATH=$HOME/lib/pkgconfig

(perhaps other libraries I've installed needed that too, so it's a good idea to set this before starting anything else)

Building ocaml

Had to edit ./configure file (perhaps some of these options could have been also typed from the command line)

Here is how modified portion (right after the legal notice) of ./configure looked like (in the actual file <home_directory> was replaced with the real path to home directory)

configure_options="$*"
prefix='<home_directory>'
bindir='<home_directory>/bin'
libdir='<home_directory>/lib'
mandir='<home_directory>/man'
manext=1
host_type=unknown
ccoption=
cclibs=
curseslibs=
mathlib='-lm'
dllib=
x11_include_dir='<home_directory>/include'
x11_lib_dir='<home_directory>/lib'
tk_wanted=yes
pthread_wanted=yes
tk_defs=
tk_libs=
tk_x11=yes
dl_defs=
verbose=no
withcurses=yes
withsharedlibs=yes
gcc_warnings="-Wall"
partialld="ld -r"


...incomplete

Personal tools