Skip to content
Louis Charette edited this page Apr 19, 2014 · 1 revision

Installing APE Server on your OSX Server or Dev Machine is easy and can possibly help you work with APE locally while developping your APE Apps.

#Installing from package on MacOS X ##Requirements OS X 10.7 (Lion) 64 Bits or newer (but 64 Bits)

##Installing 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.

The install package will install APE in standard location, ie. /usr/bin, along with all dependencies (MySQL, etc). The package also add the aped daemon as a service which will be launched at boot. Once the package is installed, you can start and stop APE using those commands (as root) :

  • Start APE: launchctl load /Library/LaunchDaemons/org.ape-project.ape.plist

  • Stop APE: launchctl unload /Library/LaunchDaemons/org.ape-project.ape.plist

To remove the services and stop ape from launching at boot, simply delete the *.plist *file : rm /Library/LaunchDaemons/org.ape-project.ape.plist

You can now proceed to APE-Project Configuration

For a simple app to manage APE Server on OSX, you can have a look on GitHub.

Building from source on MacOS X

Requirements

Requirements you will need to satisfy in order to build APE Server on OSX:

  • OS X 10.7 (Lion) or newer, 32 or 64 Bits
  • Xcode 4 (download it on apple website) and Command Line Tools (Won't work with XCode 5!!)
  • mysql5-devel (via macports) ''or'' MySQL Community Server (Via dev.mysql.com)

Please note that in order to build, you need an older version of Xcode. Apple removed gcc and g++ compiler in Xcode 5 which APE and it's dependencies requires in order to build. The new build tool included in Xcode 5 will return many error if you try to build APE. You should be able to find older version of Xcode on Apple Developer website.

Some symlink need to be created for MySQL since APE will look for MySQL libraries in default Unix locations. 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

You should now be able to build APE Server.

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

Troubleshooting

  • ld: warning: ignoring file /usr/lib/libmysqlclient_r.dylib, file was built for unsupported file format

    The wrong version of MySQL server is installed (either the 32 bits on 64 bits system or the other way around)

Clone this wiki locally