Contents |
After spending a long time figuring out the problems with the Unity Asset Server on Ubuntu, I have made a patch that should make it work. The patch is tested on with unity_asset_server-1.0.0 and Ubuntu 9.04 Server Edition.
apt-get build-dep postgresql # install postgresql build dependencies # download unity_asset_server-1.0.0 source package # download unity_asset_server-1.0.0-ubuntu.patch tar xzf unity_asset_server-1.0.0.tgz cd unity_asset_server-1.0.0 patch -p1 <../unity_asset_server-1.0.0-ubuntu.patch ./install.sh
Due to Ubuntu using dash as the default shell and the unity asset server install scripts assume that /bin/sh is Bash, the following files have their shebang line changed from /bin/sh to /bin/bash:
install.sh unity_build/reset_admin_password.sh unity_build/unity_asset_server.sysvinit
unity_buid/unity_asset_server.sysvinit is fixed according to this forum post.
postgresql-8.2.5/src/backend/Makefile also needs a fix to use Bash. Make does not use the default SHELL, so we need to add this line at the top:
SHELL=/bin/bash
To start over building, do these steps:
/etc/init.d/unity_asset_server stop pstree # check that 'postmaster' is not running, and if so, kill it rm -fr /opt/unity_asset_server # delete the unpacked source, and re-unpack
After running install.sh, check install.log. If it contains:
Could not initialize database directory
the Unity database schema was not installed. Try reinstalling.