Firefox sync : Différence entre versions

De SME Server Wiki
Ligne 7 : Ligne 7 :
 
==prerequis==
 
==prerequis==
 
  yum install  mysql-devel openldap-devel
 
  yum install  mysql-devel openldap-devel
  yum install bzip2 bzip2-devel bzip2-libs
+
  yum install bzip2 bzip2-devel bzip2-libs readline readline-devel tkinter gdbm-devel
 +
 
 +
(va aussi installer tcl tk et tix)
  
 
=== Mercurial repo===
 
=== Mercurial repo===

Version du 26 juin 2012 à 18:37

installer le serveur sync de firefox sur sme 7

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

http://docs.services.mozilla.com/server-devguide/setup.html

prerequis

yum install  mysql-devel openldap-devel
yum install bzip2 bzip2-devel bzip2-libs  readline readline-devel tkinter gdbm-devel

(va aussi installer tcl tk et tix)

Mercurial repo

wget http://pkgs.repoforge.org/mercurial/mercurial-hgk-1.2.1-1.el4.rf.i386.rpm
wget http://pkgs.repoforge.org/mercurial/mercurial-1.2.1-1.el4.rf.i386.rpm
yum localinstall mercurial-hgk-1.2.1-1.el4.rf.i386.rpm mercurial-1.2.1-1.el4.rf.i386.rpm

python

télécharger python 2.6.8,

tar -xzf
cd
./configure
make
make install

path python

https://wiki.archlinux.org/index.php/Mozilla_Sync_Server#Python_preparation

cd /usr/bin
cp -a  python python23
rm python -f
ln -sf /usr/local/bin/python python

Installer les plugins de python requis

 curl -O http://python-distribute.org/distribute_setup.py
 python distribute_setup.py
 easy_install MoPyTools
 easy_install mercurial

compiler sync

 hg clone https://hg.mozilla.org/services/server-full
 cd server-full
 make build


pour le moment j'ai un abort: couldn't find mercurial libraries in [/usr/bin /usr/local/lib/python2.6/site-packages/distribute-0.6.27-py2.6.egg /usr/local/lib/python2.6/site-packages/MoPyTools-3.2-py2.6.egg /usr/local/lib/python2.6/site-packages/pypi2rpm-0.6.3-py2.6.egg /usr/local/lib/python2.6/site-packages/virtualenv-1.7.2-py2.6.egg /usr/local/lib/python2.6/site-packages/Distutils2-1.0a3-py2.6.egg /usr/local/lib/python2.6/site-packages/flake8-1.3.1-py2.6.egg /usr/local/lib/python2.6/site-packages/PasteDeploy-1.5.0-py2.6.egg /usr/local/lib/python2.6/site-packages/PasteScript-1.7.5-py2.6.egg /usr/local/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg /usr/local/lib/python2.6/site-packages/argparse-1.2.1-py2.6.egg /usr/local/lib/python26.zip /usr/local/lib/python2.6 /usr/local/lib/python2.6/plat-linux2 /usr/local/lib/python2.6/lib-tk /usr/local/lib/python2.6/lib-old /usr/local/lib/python2.6/lib-dynload /usr/local/lib/python2.6/site-packages /usr/local/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg-info] (check your install and PYTHONPATH)


restaurer python

http://www.wenks.ch/fabian/mozilla-custom-sync-server/

cd /usr/bin
rm -f /usr/bin/python
cp -a /usr/bin/python23 /usr/bin/python
rm -f /usr/bin/pytho23

ou temporairement

cd /usr/bin
rm -f /usr/local/bin/python23
ln -sf /usr/bin/python23 /usr/bin/python


serveur web