Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
APE Server on OSX
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) :
launchctl load /Library/LaunchDaemons/org.ape-project.ape.plist
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 :
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 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.
Go in the source directory and run:
This script will build APE and all its modules. You can now proceed to APE-Project Configuration
The wrong version of MySQL server is installed (either the 32 bits on 64 bits system or the other way around)