2015-12-03 18:16:32 +01:00
|
|
|
#!/bin/cat
|
2016-01-22 17:52:28 +01:00
|
|
|
# $Id: INSTALL.Darwin.txt,v 1.11 2016/01/05 23:43:26 gilles Exp gilles $
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
===================================================
|
|
|
|
= Installing imapsync binary on Darwin / Mac OS X =
|
|
|
|
===================================================
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
There is a standalone imapsync binary for Mac OS X called imapsync_bin_Darwin,
|
|
|
|
available in the compressed tarball called imapsync-1.xxx.tgz
|
|
|
|
where 1.xxx is the version number. I suppose this tarball is put
|
|
|
|
under your $HOME directory, let say /Users/gilles/, but you can
|
|
|
|
put it anywhere.
|
2015-05-28 19:04:57 +02:00
|
|
|
|
|
|
|
Open a terminal: /Applications/Utilities/Terminal double-click on Terminal.
|
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
Untar the tarball where you want:
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
cd
|
|
|
|
tar xzvf /Users/gilles/imapsync-1.xxx.tgz
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
Go into the directory imapsync-1.xxx
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
cd imapsync-1.xxx
|
2015-05-28 19:04:57 +02:00
|
|
|
|
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
First let's have a simple run to see if imapsync_bin_Darwin works.
|
|
|
|
You should see some help about options and an example at the end
|
|
|
|
of this run:
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
./imapsync_bin_Darwin
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
To go further, perform a complete test with two
|
|
|
|
real IMAP server accounts:
|
|
|
|
|
|
|
|
./imapsync_bin_Darwin --testslive
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
If this sync works fine then imapsync_bin_Darwin is ready for any
|
|
|
|
imap account synchronization.
|
2015-05-28 19:04:57 +02:00
|
|
|
|
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
===================================================
|
|
|
|
= Installing imapsync script on Darwin / Mac OS X =
|
|
|
|
===================================================
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2016-01-22 17:52:28 +01:00
|
|
|
This part is only for advanced Unix users, or brave ones.
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
wget --no-check-certificate -O- http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
|
|
|
|
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
|
|
|
|
perl -I ~/perl5/lib/perl5 -Mlocal::lib
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.profile
|
|
|
|
echo 'export MANPATH=$HOME/perl5/man:$MANPATH' >> ~/.profile
|
|
|
|
cat ~/.profile
|
|
|
|
cpanm CPAN
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
curl -L http://imapsync.lamiral.info/INSTALL.d/prerequisites_imapsync > prerequisites_imapsync
|
|
|
|
sh prerequisites_imapsync
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
cpanm Authen::NTLM
|
|
|
|
cpanm File::Copy::Recursive IO::Tee
|
|
|
|
cpanm Mail::IMAPClient
|
|
|
|
cpanm Unicode::String
|
2015-05-28 19:04:57 +02:00
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
wget -c http://imapsync.lamiral.info/imapsync
|
|
|
|
./imapsync
|
|
|
|
perl ./imapsync
|
|
|
|
perl ./imapsync --modules
|
|
|
|
cpanm Data::Uniqid
|
|
|
|
cpanm JSON::WebToken
|
|
|
|
|
|
|
|
You can rerun "sh prerequisites_imapsync"
|
2015-05-28 19:04:57 +02:00
|
|
|
to verify everything is ok:
|
|
|
|
|
|
|
|
sh prerequisites_imapsync
|
|
|
|
|
|
|
|
When everything is ok the script execution ends with this sentence
|
|
|
|
"All needed modules are already installed"
|
|
|
|
|
|
|
|
Now imapsync should work on your system.
|
|
|
|
|
2015-12-03 18:16:32 +01:00
|
|
|
=================================================
|
|
|
|
= Building imapsync binary on Darwin / Mac OS X =
|
|
|
|
=================================================
|
|
|
|
|
|
|
|
cpanm Module::ScanDeps
|
|
|
|
cpanm Module::ScanDeps
|
|
|
|
cpanm PAR::Packer
|
|
|
|
|
|
|
|
pp -o imapsync.bin imapsync
|
|
|
|
|
|
|
|
./imapsync.bin
|
|
|
|
./imapsync.bin --testslive
|
|
|
|
./imapsync.bin --tests
|
|
|
|
./imapsync.bin --module
|
2015-05-28 19:04:57 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
==========================================
|
|
|
|
== Installing imapsync Mac OS X Leopard ==
|
|
|
|
==========================================
|
|
|
|
|
|
|
|
Mac OS X Leopard has perl 5.8.8 and an old openssl version.
|
|
|
|
|
|
|
|
|