Giter Club home page Giter Club logo

asset-bank-deps-tools's Introduction

Asset Bank Dependencies Tools

Scripts for building external binaries that Asset Bank depends on: Ghostscript, ImageMagick and ffmpeg.

The current versions of these scripts are only for use with Debian 7.0 (Wheezy).

Build Setup

On any machine that will be used to build these tools, run:

./build-setup

this only needs to be run once, not every time you do a build.

Building Ghostscript and ImageMagick

They are in the same script because ImageMagick depends on Ghostscript.

Download ghostscript-9.06.tar.gz and ImageMagick-6.8.9-0.tar.xz to ~/software/.

Run:

./build-ab-gs-im

Building ffmpeg

Download ffmpeg-1.0.9.tar.bz2 to ~/software/

Run:

./build-ab-ffmpeg

Using the built tools

Run:

./deploy-setup

Untar the prebuilt binaries into /usr/local/assetbank.

Set the following environment variables (either in your user's shell or in /etc/default/tomcat6):

LD_LIBRARY_PATH=/usr/local/assetbank/ffmpeg/lib
PATH="/usr/local/assetbank/ffmpeg/bin:/usr/local/assetbank/ghostscript/bin:/usr/local/assetbank/imagemagick/bin:$PATH"
export LD_LIBRARY_PATH PATH

/usr/local/assetbank/{ffmpeg,ghostscript,imagemagick} are symlinks to allow easy upgrades without Tomcat restarts on Asset Bank servers.

Notes

These scripts build dynamic, not static binaries because static linking against glibc is not recommended and it is hard to get an autoconf-based build to link dynamically against glibc and statically against everything else. Basically, static linking on GNU/Linux seems to be deprecated these days.

The fact that the binaries are dynamically linked means that they need various libraries to be installed on the systems that they run on. More thought needs to be put into how to arrange that, although one quick way would be to run the 'setup' script on all target hosts; the 'apt-get build-deps' steps should install all the required libraries (along with many packages that are not needed, e.g. -dev packages).

asset-bank-deps-tools's People

Watchers

Francis Devereux avatar Carl Wood avatar James Cloos avatar Bright Robot avatar Ben Browning avatar GitHub Admin avatar Michael Blom avatar  avatar  avatar  avatar  avatar Marco Primiceri avatar  avatar  avatar  avatar  avatar Steve Bryan avatar  avatar Anthony avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.