Difference between revisions of "OpenBSD installation"

From Wiki
Jump to navigation Jump to search
m
m ({{Installation navbox}})
 
(48 intermediate revisions by 4 users not shown)
Line 1: Line 1:
this page contains instructions how to get the ''latest'' ConTeXt up and running on OpenBSD 3.8+
+
== Introduction ==
  
== install gmake ==
+
The easiest way to install the latest ConTeXt on OpenBSD is using [[ConTeXt_Standalone|ConTeXt Standalone]]'s Linux version and use it with OpenBSD's Linux emulation layer. Alternative, native methods may be described on this page in the future. The full installation is ~210M (without the 3rd party modules ~185M).
  
<code>
+
== Using Linux Emulation ==
$ sudo pkg_add gmake
 
</code>
 
 
 
== install teTeX 3.0 ==
 
  
 
<code>
 
<code>
  $ sudo pkg_add teTex_base-3.0p3
+
  $ sudo pkg_add rsync fedora_base
 +
$ sudo sysctl kern.emul.linux=1
 +
$ mkdir $HOME/context
 +
$ cd $HOME/context
 +
$ ftp http://minimals.contextgarden.net/setup/first-setup.sh
 
</code>
 
</code>
  
this adds all the dependencies with newer pkg tools.  if using older ones,
+
Modify this script to override <tt>platform=linux</tt>.
add the other packages manually (<tt>teTeX_texmf, teTeX_base-fmt</tt>).
 
 
 
strictly speaking, one doesn't need X11 for using teTeX, in this case install
 
the <tt>*-no_x11</tt> packages.
 
 
 
== update pdftex ==
 
 
 
get the latest version from from [[http://sarovar.org/projects/pdftex sarovar]].  
 
  
 
<code>
 
<code>
  $ tar xvzf pdftex-1.30.6.tgz
+
  $ sh ./first-setup.sh --modules=all
  $ cd pdftex-1.30.6
+
$ export PATH="$PATH:$HOME/context/tex/texmf-linux/bin"
 +
$ context --make
 +
  $ context --version
 
</code>
 
</code>
  
apply the following diff (scratch the bashism and use <tt>gmake</tt>):
+
This setup will use mkiv (the luatex version) and does not need either pdftex, or ruby.
 
 
<code>
 
--- build.sh.orig      Mon Feb 27 21:45:29 2006
 
+++ build.sh    Mon Feb 27 23:32:31 2006
 
@@ -1,7 +1,7 @@
 
-#! /usr/bin/env bash
 
+#!/bin/sh
 
  # $Id$
 
  # builds new pdftex binaries
 
-MAKE=make
 
+MAKE=gmake
 
  STRIP=strip
 
  # this deletes all previous builds.
 
</code>
 
 
 
run the build:
 
 
 
<code>
 
$ sh ./build.sh
 
</code>
 
 
 
when finished, replace the binaries (<tt>pdftex</tt> is only a symlink to <tt>pdfetex</tt>):
 
 
 
<code>
 
$ sudo mv build/texk/web2c/pdfetex `which pdfetex`
 
$ sudo mv build/texk/web2c/pdfetex.pool `kpsewhich pdfetex.pool`
 
$ sudo mv build/texk/web2c/ttf2afm `which ttf2afm`
 
$ sudo fmtutil-sys --all
 
</code>
 
  
...
+
{{Installation navbox}}
  
 
[[Category:Installation]]
 
[[Category:Installation]]

Latest revision as of 16:02, 20 November 2012

Introduction

The easiest way to install the latest ConTeXt on OpenBSD is using ConTeXt Standalone's Linux version and use it with OpenBSD's Linux emulation layer. Alternative, native methods may be described on this page in the future. The full installation is ~210M (without the 3rd party modules ~185M).

Using Linux Emulation

$ sudo pkg_add rsync fedora_base
$ sudo sysctl kern.emul.linux=1
$ mkdir $HOME/context
$ cd $HOME/context
$ ftp http://minimals.contextgarden.net/setup/first-setup.sh

Modify this script to override platform=linux.

$ sh ./first-setup.sh --modules=all
$ export PATH="$PATH:$HOME/context/tex/texmf-linux/bin"
$ context --make
$ context --version

This setup will use mkiv (the luatex version) and does not need either pdftex, or ruby.