APE Server install

Louis Charette edited this page Apr 19, 2014 · 2 revisions

Follow the instructions step by step to install APE Project You may want to check the Getting started with APE-Project page first, for a better understanding.

Requirements

A Linux (with a kernel 2.6.16+) or MacOS X 10.7 (Lion) computer, or a Windows computer with VirtualBox.

Downloading APE-Project

APE is available in various formats:

  • binary,
  • debian package,
  • source (tar.gz or from git)
  • OSX Installer Go to download page and pick the package you wish. If you are a beginner, choose binary or Debian package. Also download the APE JSF. Go to APE download page and download both APE Server and APE JSF.

Installing APE Project

Installing from the Binary Package

Just unpack the package you downloaded. You can now proceed to APE-Project Configuration

Installing from the Debian Package

If you are on Ubuntu, just click on the .DEB package, or on the command line (as root) enter something like this:

APE:~# dpkg -i APE_Server-1.1.2-i386.deb

You can now proceed to APE-Project Configuration

Installing from the RPM (RPM Package Manager)

There is no RPM package available for this; instead, use the binary using the binary installation instructions here above.

Installing on Fedora/RHEL/CentOS

There is no yum command available for this; instead, use the binary using the binary installation instructions here above.

Installing on OSX

If you're running OSX Lion or newer (10.7 and up) 64 Bits, you can use the installer package available on the Download Page. For more infos on running APE on OSX, see APE Server on OSX.

Installing from source or git

Grab a fresh copy of the latest APE Server and APE JSF source from github or from the download page Please download the latest master or previous version. If you don't know how to use git, there's a "download" button on github. Use it.

Building from source on Linux

Requirements

Here is a list of requirements you will need to complete the installation :

  • GNU Make
  • GCC 3.4 or higher
  • libc6-dev (or similar)
  • libmysqlclient-dev

Download dependencies

Debian and Ubuntu
apt-get install g++ gcc unzip make zip libmysqlclient-dev
CentOS
yum install gcc-c++ zip mysql-devel

On CentOS, you also need to make this change to enabled MySQL support:

Edit modules/Makefile and remplace: MYSQL_FLAGS = -L./deps/mysac/ -I./deps/mysac/ -lmysac -lmysqlclient_r

With: 32 Bits:

MYSQL_FLAGS = -L./deps/mysac/ -L/usr/lib/mysql -I./deps/mysac/ -lmysac -lmysqlclient_r

64 Bits:

MYSQL_FLAGS = -L./deps/mysac/ -L/usr/lib64/mysql -I./deps/mysac/ -lmysac -lmysqlclient_r

Building APE

Go in the source directory and run ./build.sh

This script will build APE and all its modules. You can now proceed to APE-Project Configuration

Building from source on MacOS X

Requirements

Requirements you will need to satisfy in order to complete the installation:

  • Xcode 4 (download it on apple website - Won't work with XCode 5!!)
  • mysql5-devel (via macports) ''or'' MySQL Community Server (Via dev.mysql.com)

Some symlink need to be created on OSX. As root, run :

mkdir /usr/include/mysql/
ln -s /usr/local/mysql/include/* /usr/include/mysql
cp /usr/local/mysql/lib/libmysqlclient.* /usr/lib
ln -s /usr/bin/gcc /usr/bin/gcc-4.2
ln -s /usr/bin/g++ /usr/bin/g++-4.2

Building APE

Go in the source directory and run ./build.sh

This script will build APE and all its modules. You can now proceed to APE-Project Configuration

For more infos on running APE on OSX, see APE Server on OSX.

Troubleshooting building from source

  • /usr/bin/ld: can't find -lmysac

    Run build.sh again (Twice in a row).

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.