From a85bf6489d09344d8e233b4dda34a38cc50b3d13 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 17 May 2014 20:13:58 +0200 Subject: [PATCH] support 32bit linux --- README.md | 33 +++++++++++++++++---------------- ctl | 4 ++++ 2 files changed, 21 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 9f6230a..7f5ab92 100644 --- a/README.md +++ b/README.md @@ -14,22 +14,6 @@ If you dont have native IPv6 you can use Teredo/Miredo (apt-get install miredo) or get a tunnel Hurricane Electric (https://tunnelbroker.net/) or SixSS (https://sixxs.net). -Platform ----------- - -If you install Open Media Library on a architecture thats not directly supported, -you need a working python 2.7.x installation and the following packages: - - apt-get install \ - python-pypdf python-stdnum python-html5lib python-chardet python-openssl \ - python-simplejson python-lxml - pip install -r requirements.txt - -On Linux you need to always install: - - apt-get install \ - python-imaging python-lxml ghostscript - Development ----------- @@ -43,3 +27,20 @@ Development # and start it ./ctl debug + +Platform +---------- + +If you install Open Media Library on a architecture thats not directly supported, +you need a working python 2.7.x installation and the following packages: + + apt-get install \ + python-pypdf python-stdnum python-html5lib python-chardet python-openssl \ + python-simplejson python-lxml + pip install -r requirements.txt + +On Linux you need to always install: + + apt-get install \ + python-imaging python-lxml ghostscript + diff --git a/ctl b/ctl index 0705e81..ab8a4bb 100755 --- a/ctl +++ b/ctl @@ -9,7 +9,11 @@ if [ -e oml ]; then fi BASE=`pwd` SYSTEM=`uname -s` +PLATFORM=`uname -m` +if [ $SYSTEM == "Linux" ]; then + SYSTEM="${SYSTEM}_${PLATFORM}" +fi export PLATFORM_ENV="$BASE/platform/$SYSTEM" if [ $SYSTEM == "Darwin" ]; then export DYLD_FALLBACK_LIBRARY_PATH="$PLATFORM_ENV/lib"