-
Notifications
You must be signed in to change notification settings - Fork 13
/
INSTALL
159 lines (101 loc) · 3.25 KB
/
INSTALL
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
INSTALLATION INSTRUCTIONS
=-=-=-=-=-=-=-=-=-=-=-=-=
Author: Eray Ozkural
Dependencies:
-------------
* Berkeley DB 4.x
* python bsddb3 package
* piksemel
* coreutils
* gettext
* xz
* gnupg2
Generic Instructions:
---------------------
Installation:
You can install PISI on your system with a single command.
# ./setup.py install
If you are on a Pardus system, you should delete /usr/lib/pardus/pisi
when you are installing the SVN version
PISI requires piksemel XML processing library, the newest version
Berkekey DB python bindings called "bsddb3" and Pardus configuration
manager COMAR in order to run.
If you are upgrading from an old PISI release you may have to
run the following command as root:
# pisi rebuild-db
For testing, please read tests/README
Downloading Uludag Sources:
$ git clone https://github.com/pars-linux/uludag.git
Installing piksemel:
$ git clone https://github.com/pars-linux/uludag
$ cd uludag/piksemel
$ sudo -H ./setup.py install
Ubuntu instructions:
--------------------
Install PISI dependencies
$ sudo apt-get install python python-bsddb3 coreutils xz-utils gnupg
$ sudo apt-get install python-pycurl python-urlgrabber
or for the second line
$ pip install pycurl urlgrabber
set up gnupg2 if needed:
$ gpg --gen-key
Install COMAR dependencies
$ sudo apt-get install dbus libpolkit-gobject-1-dev python-dbus cmake
Install COMAR
$ git clone https://github.com/pars-linux/comar
$ cd comar
$ cmake .
$ (sudo -H) make DESTDIR=/usr/local/ install
$ cd ..
$ git clone https://github.com/pars-linux/comar-api
$ cd comar-api
$ (sudo -H) ./setup.py install
OS X Instructions:
------------------
Mac Ports approach:
Install MacPorts, and then GCC using the following guides:
https://guide.macports.org/#installing
http://www.ficksworkshop.com/blog/post/installing-gcc-on-mac
Install PISI dependencies
$ sudo port
> install python27 py27-pip bsddb3 coreutils md5sha1sum xz gnupg
> select --set python python27
> select --set pip pip27
> exit
$ pip install pycurl urlgrabber
$ pip download bsddb3
$ python setup.py build
$ sudo YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1 python setup.py install
set up gnupg2 if needed:
$ gpg --gen-key
Install COMAR dependencies
$ sudo port install dbus dbus-python27 policykit cmake
$ cd comar/comar
Append
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/opt/local/lib")
to the end of CMakeLists.txt
$ cmake .
$ make DESTDIR=/usr/local/ install
$ cd ..
$ git clone https://github.com/pars-linux/comar-api.git
$ cd comar-api
$ ./setup.py install
And then proceed with Generic PISI installation instructions above,
as usual.
Homebrew approach:
Install homebrew from https://brew.sh, and then
$ brew install python
$ pip install bsddb3
I used the following command to install the latest berkeley-db:
$ BERKELEYDB_DIR=$(brew --cellar)/berkeley-db/6.2.23 YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION=1 pip install bsddb3
$ pip install pycurl urlgrabber
Install piksemel XML processing library
$ brew install coreutils xz gnupg2
set up gnupg2 if needed:
$ gpg --gen-key
Install comar, if you can. :)
$ ./setup.py install
$ ln -s /usr/local/bin/pisi-cli /usr/local/bin/pisi
move configuration to /etc
$ sudo cp -a /usr/local/etc/pisi/ /etc/pisi
It should work on a current OS X installation.