QA/Sync/Sync Server Install CentOS

From MozillaWiki
< QA‎ | Sync
Revision as of 05:04, 4 August 2011 by Jbonacci (talk | contribs) (Created page with "= Notes for Installing Sync Server on CentOS 6 = REF: http://docs.services.mozilla.com/howtos/run-sync.html == General Notes == * The "Building the server" steps can be repeated...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Notes for Installing Sync Server on CentOS 6

REF: http://docs.services.mozilla.com/howtos/run-sync.html

General Notes

  • The "Building the server" steps can be repeated for each new build you want to test.
  • Once it is running, you can point to it for your own Sync server.
  • It is highly recommended that Python 2.6.6 be installed before proceeding with the Sync install.
  • Python 2.7 appears to be compatible, but the pre-packaged installer assumes 2.6.6.
  • Also, it is highly recommended that the developer tools are installed after installing Python 2.6.6.

Installing the Developer Tools

To get a full development environment on the box, do the following:

$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python2.6 distribute_setup.py
$ sudo easy_install-2.6 MoPyTools

Keeping the build logs

Run the "make build" step as follows:

$ make build 1> buildlog.log 2> builderr.err

Using Sqlite3

If sqlite3 is to be used, the server-full/etc/sync.conf file must be edited to change the default location of the temp.db file. The default location is in /tmp, which will get wiped at each system boot/restart.

Installing Sync Server

These are the instructions for install Sync Server and FireFox on CentOS 6 64-bit OS

  • The following packages will need to be installed:
    • Mecurial
    • sqlite3
    • MySQL (optional - if you do not want to use Sqlite3)
    • Python 2.6.6
    • Python 2.6.6 virtualenv
    • Python 2.6.6 SetupTools
    • Python 2.6.6 Developer Tools
  • Verify that sqlite was already installed
$ which sqlite3
$ sqlite3 --version
  • Install the latest version of mercurial
$ yum install mercurial
$ which hg
$ hg --version
1.4
  • Install the required development tools and libraries
$ yum groupinstall 'Development Tools' 'Development Libraries'
$ yum install tk-devel libjpeg-devel mysql-devel python-devel httpd-devel zlib-devel bzip2-devel
  • Install Python 2.6.6 in $home (in case it is needed)
$ cd $home
$ sudo wget http://python.org/ftp/python/2.6.6/Python-2.6.6.tgz
$ sudo tar xzvf Python-2.6.6.tgz
  • Build Python 2.6.6
$ cd $home/Python-2.6.6
$ sudo ./configure --prefix=/opt/python2.6 --enable-thread --enable-shared --enable-unicode=ucs4
$ sudo make
$ sudo make install