root/docs/Install.osx-10.5

Revision 3750, 5.3 KB (checked in by Adrian Georgescu <ag@ag-projects.com>, 3 weeks ago)

Increased dependency version for python-application

Line 
1
2Installation procedure for SIP SIMPLE client SDK on MacOSX Leopard
3------------------------------------------------------------------
4
5Copyright (c) 2008-2010 AG Projects
6http://ag-projects.com
7
8Home page: http://sipsimpleclient.com
9
10This document describes the installation procedure on MacOSX Leopard 10.5.
11
12The installation procedure consists of the steps described below:
13
14Step 1. Prerequisites
15Step 2. Install Dependencies
16Step 3. Install SIP SIMPLE client SDK
17
18
19Step 1. Prerequisites
20---------------------
21
22 * MacOSX 10.5 (Leopard)
23 * Intel 32 bit architecture
24 * Apple Developer tools (XCode)
25 * darcs version control tool from http://www.darcs.net
26
27The procedure below relies on the standard available Python interpreter that
28comes with MacOSX (version 2.5).  Make sure that during the building process
29you are not involving external tools or libraries like the ones provided by
30Fink or Darwin Ports distributions.
31
32
33Step 2. Install Dependencies
34----------------------------
35
36 * python-gnutls            http://pypi.python.org/simple/python-gnutls       >=1.1.9
37 * python-application       http://pypi.python.org/simple/python-application  >=1.2.5
38 * python-lxml              http://codespeak.net/lxml                         >=2.1.2
39 * python-eventlet          http://download.ag-projects.com/SipClient         =0.8.11
40 * python-greenlet          http://download.ag-projects.com/SipClient         =0.4.0 
41 * python-cjson             http://pypi.python.org/pypi/python-cjson/         >=1.0.5
42 * cython                   http://www.cython.org                             >=0.11.2
43 * dnspython                http://www.dnspython.org                          >=1.6.0
44 * twisted                  http://twistedmatrix.com/trac                     >=8.1.0
45 * zope-interface           http://www.zope.org                               >=3.3.1
46 * Python Imaging Library   http://pypi.python.org/pypi/PIL/                  >=1.1.6
47
48Build and install C dependencies, the software will be installed under
49/usr/local folder:
50
51# Install GNUTLS dependencies
52curl -O ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.7.tar.bz2
53tar -xjvf libgpg-error-1.7.tar.bz2
54cd libgpg-error-1.7
55CFLAGS="-arch i386" ./configure --prefix=/usr/local --disable-static --disable-dependency-tracking
56make
57sudo make install
58cd ..
59
60curl -O http://ftp.gnu.org/pub/gnu/gnutls/libtasn1-2.2.tar.gz
61tar zxvf libtasn1-2.2.tar.gz
62cd libtasn1-2.2
63./configure
64make
65sudo make install
66cd ..
67
68curl -O ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.4.5.tar.bz2
69tar -xjvf libgcrypt-1.4.5.tar.bz2
70cd libgcrypt-1.4.5
71CFLAGS="-arch i386" ./configure --prefix=/usr/local --with-gpg-error-prefix=/usr/local --disable-static --disable-dependency-tracking --disable-asm
72make
73sudo make install
74cd ..
75
76# Install GNUTLS
77curl -O http://ftp.gnu.org/pub/gnu/gnutls/gnutls-2.8.6.tar.bz2
78tar -xjvf gnutls-2.8.6.tar.bz2
79cd gnutls-2.8.6
80CFLAGS="-arch i386" ./configure --prefix=/usr/local --with-libgcrypt-prefix=/usr/local --disable-static --disable-dependency-tracking
81make
82sudo make install
83cd ..
84
85# Install lxml python module
86curl -O http://pypi.python.org/packages/source/l/lxml/lxml-2.2beta4.tar.gz
87tar -xzvf lxml-2.2beta4.tar.gz
88cd lxml-2.2beta4
89sudo python setup.py install --static-deps
90cd ..
91
92Upgrade MacOSX python setup tools:
93
94sudo easy_install --script-dir /usr/bin -U setuptools
95
96Install Python dependencies by using the easy_install tool. The software
97will be installed in /Library/Python/2.5/site-packages.
98
99sudo easy_install -U python-gnutls dnspython twisted \
100python-application PIL cython
101
102
103Step 3. Install SIP SIMPLE client SDK
104-------------------------------------
105
106The SDK consists of four parts:
107
108 1. Eventlet and Greenlet
109 2. XCAP library
110 3. MSRP library
111 4. SIP SIMPLE library
112
113# Eventlet
114if [ -d python-eventlet ]; then
115        cd python-eventlet
116        darcs pull -a
117        sudo python setup.py install
118else
119        darcs get http://devel.ag-projects.com/repositories/python-eventlet
120        cd python-eventlet
121        sudo python setup.py install
122fi
123cd ..
124
125# Greenlet
126if [ -d python-greenlet ]; then
127        cd python-greenlet
128        darcs pull -a
129        sudo python setup.py install
130else
131        darcs get http://devel.ag-projects.com/repositories/python-greenlet
132        cd python-greenlet
133        sudo python setup.py install
134fi
135cd ..
136
137# XCAP library
138if [ -d python-xcaplib ]; then
139        cd python-xcaplib
140        darcs pull -a
141        sudo python setup.py install
142else
143        darcs get http://devel.ag-projects.com/repositories/python-xcaplib
144        cd python-xcaplib
145        sudo python setup.py install
146fi
147cd ..
148
149# MSRP library
150if [ -d python-msrplib ]; then
151        cd python-msrplib
152        darcs pull -a
153        sudo python setup.py install
154else
155        darcs get http://devel.ag-projects.com/repositories/python-msrplib
156        cd python-msrplib
157        sudo python setup.py install
158fi
159cd ..
160
161# SIP SIMPLE library
162if [ -d python-sipsimple ]; then
163        cd python-sipsimple
164        darcs pull -a
165else
166        darcs get http://devel.ag-projects.com/repositories/python-sipsimple
167fi
168cd..
169
170Build and install SIP SIMPLE library:
171
172cd python-sipsimple
173sudo python setup.py build_ext --pjsip-clean-compile
174sudo python setup.py install
175
176Additional, you can install the command line interface scripts that can be
177used to test the SDK.
178
179if [ -d sipclients ]; then
180        cd sipclients
181        darcs pull -a
182else
183        darcs get http://devel.ag-projects.com/repositories/sipclients
184fi
185cd..
186
187sudo python setup.py install
188
Note: See TracBrowser for help on using the browser.