forked from GENI-NSF/geni-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathINSTALL.centos
More file actions
36 lines (33 loc) · 1.15 KB
/
INSTALL.centos
File metadata and controls
36 lines (33 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
== CentOS ==
GCF requires Python 2.6. It is possible that overriding Python 2.4 with 2.6 could cause
problems on CentOS 5.5, so we provide these directions for a parallel install of Python.
1. Install python 2.6 as python26:
{{{
$ wget http://mirrors.geekymedia.com/centos/geekymedia.repo
$ sudo mv geekymedia.repo /etc/yum.repos.d/
$ sudo yum install python26*
}}}
1. Install the 2.6 version of setuptools which has easy_install
{{{
$ wget http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
$ wget http://peak.telecommunity.com/dist/ez_setup.py
$ sudo python26 ez_setup.py setuptools-0.6c11-py2.6.egg
}}}
1. Use easy_install (make sure it operates on /usr/lib/python2.6)
{{{
$ sudo easy_install python-dateutil==1.4.1
$ sudo easy_install pyOpenSSL
$ sudo yum install swig
}}}
Edit {{{/usr/include/openssl/opensslconf.h}}}, line 13: (a tweak necessary in CentOS, otherwise error given in m2crypto installation)
{{{
#include "/usr/include/openssl/opensslconf-i386.h"
}}}
{{{
$ sudo easy_install m2crypto
}}}
1. Make sure scripts use python26:
Edit src/gen-certs.py, src/gcf-ch.py and src/gcf-am.py line 1:
{{{
#!/usr/bin/env python26
}}}