-
Notifications
You must be signed in to change notification settings - Fork 4
Developer Quickstart
The basic installation process and usage is described by README.md.
These instructions describe how to compile Phobos on CentOS 7.
An always up-to-date dependency list can be retrieved from the Phobos specfile.
Build dependencies:
-
postgresql94-devel(from EPEL or any version compatible with Postgres 9.4) glib2-devel >= 2.28python-develjansson-devel >= 2.5libini_config-developenssl-devellibattr-develsg3_utils-devel
Runtime (and test) dependencies:
-
postgresql94-server(from EPEL or any version compatible with Postgres 9.4), although Postgres does not have to run on the same node as phobos. postgresql94-contribpostgresql94-libsglib2 >= 2.28janssonlibini_configopenssllibattrpythonpython-argparsepython-yamlclustershellpython-psycopg2
$ ./autogen.sh
$ ./configure.sh
$ makeBy default, Phobos tests expect to have a PostgreSQL database configured with a database named phobos, a user named phobos with phobos as a password. This configuration can be manually done or automatically done by invoking the following line (after the project has been successfully compiled):
$ sudo -u postgres ./scripts/phobos_db_local setup_db -p phobosAnd run the test suite:
$ make checkNote : For production use or manual experimentation, the database name, user and password can be set to arbitrary values (either manually or via
phobos_db_local, see./scripts/phobos_db_local setup_db -h). In this case, you can export the following environment variable:$ export PHOBOS_DSS_connect_string="dbname='<your db name>' user='<your user>' password='<your password>' > host=<postgresql instance hostname>"However, tests as they are written necessitate the hardcoded credentials.
TODO