Firefox sync : Différence entre versions

De SME Server Wiki
(compiler sync)
Ligne 6 : Ligne 6 :
  
 
http://pypi.python.org/pypi/Mercurial/1.2.1
 
http://pypi.python.org/pypi/Mercurial/1.2.1
 +
 +
  
 
==prerequis==
 
==prerequis==
Ligne 15 : Ligne 17 :
 
http://bda.ath.cx/blog/2009/04/08/installing-python-26-in-centos-5-or-rhel5/
 
http://bda.ath.cx/blog/2009/04/08/installing-python-26-in-centos-5-or-rhel5/
  
=== 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===
 
===python===
Ligne 35 : Ligne 34 :
 
  cp -a  python python23
 
  cp -a  python python23
 
  rm python -f
 
  rm python -f
  ln -sf /usr/local/bin/python python
+
  ln -sf /usr/local/bin/python /usr/bin/python
  
 
=== Installer les plugins de python requis ===
 
=== Installer les plugins de python requis ===
  
  curl -O http://python-distribute.org/distribute_setup.py
+
curl -O http://python-distribute.org/distribute_setup.py
  python distribute_setup.py
+
python distribute_setup.py
  easy_install MoPyTools
+
easy_install MoPyTools
   
+
  easy_install docutils
  cd /usr/local/lib/python2.6/site-packages/
+
easy_install roman
  wget http://www.selenic.com/mercurial/release/mercurial-1.2.1.tar.gz
+
easy_install mercurial
  tar -xzf mercurial-1.2.1.tar.gz
+
 
  easy_install mercurial-1.2.1
+
== installer mercurial===
 
+
  cd
 +
  wget http://mercurial.selenic.com/release/mercurial-2.2.tar.gz
 +
  tar -xzf mercurial-2.2.tar.gz
 +
  cd mercurial
 +
make install
  
 
== compiler sync==
 
== compiler sync==

Version du 26 juin 2012 à 19:54

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

http://pypi.python.org/pypi/Mercurial/1.2.1


prerequis

yum install  mysql-devel openldap-devel
yum install bzip2 bzip2-devel bzip2-libs  readline readline-devel tkinter gdbm-devel tk-devel sqlite-devel db4-devel openssl-devel  bluez-libs-devel

(va aussi installer tcl tk et tix)

http://bda.ath.cx/blog/2009/04/08/installing-python-26-in-centos-5-or-rhel5/


python

télécharger python 2.6.8,

tar -xzf
cd
./configure
make
make install

lors de la compilation il y aura un message a la fin indiquanr qu'il ne peut compiler les modules pour bsddb185 et sunaudiodev, mais ils ne seront pas utilise sous SME.

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 /usr/bin/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 docutils
easy_install roman
easy_install mercurial

installer mercurial=

cd
wget http://mercurial.selenic.com/release/mercurial-2.2.tar.gz
tar -xzf mercurial-2.2.tar.gz
cd mercurial
make install

compiler sync

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


pour le moment j'ai un


Building the app

 Checking the environ                                                                         [ok]
 Updating the repo 'hg up -c -r "rpm-1.0-3"' failed with code 255

hg update [-C] [-d DATE] [[-r] REV]

aliases: up, checkout, co

update working directory

   Update the repository's working directory to the specified revision,
   or the tip of the current branch if none is specified. Use null as
   the revision to remove the working copy (like 'hg clone -U').
   When the working dir contains no uncommitted changes, it will be
   replaced by the state of the requested revision from the repo.  When
   the requested revision is on a different branch, the working dir
   will additionally be switched to that branch.
   When there are uncommitted changes, use option -C to discard them,
   forcibly replacing the state of the working dir with the requested
   revision.
   When there are uncommitted changes and option -C is not used, and
   the parent revision and requested revision are on the same branch,
   and one of them is an ancestor of the other, then the new working
   directory will contain the requested revision merged with the
   uncommitted changes.  Otherwise, the update will fail with a
   suggestion to use 'merge' or 'update -C' instead.
   If you want to update just one file to an older revision, use revert.
   See 'hg help dates' for a list of formats valid for --date.

options:

-C --clean  overwrite locally modified files (no backup)
-d --date   tipmost revision matching date
-r --rev    revision

use "hg -v help update" to show global options

hg update: option -c not recognized

                                                                                              [fail]                                                                                               [fail]

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/python23

ou temporairement

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


serveur web