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
159
160
161
162
163
164
165
166
167
168
169
170
171 | pip install psycopg2
Collecting psycopg2
Using cached psycopg2-2.6.2.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-c7_2a0gm/psycopg2/
(venv) aruns plivo $ sudo apt-get install -y postgis postgresql-9.3-postgis-2.1
[sudo] password for aruns:
Sorry, try again.
[sudo] password for aruns:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libarmadillo4 libarpack2 libdap11 libdapclient3 libepsilon1 libfreexl1
libgdal1h libgeos-3.4.2 libgeos-c1 libkml0 liblwgeom-2.1.2 libogdi3.2
libproj0 libspatialite5 liburiparser1 postgresql-9.3-postgis-scripts
proj-bin proj-data
Suggested packages:
ogdi-bin postgis-doc
Recommended packages:
postgresql-contrib-9.3
The following NEW packages will be installed:
libarmadillo4 libarpack2 libdap11 libdapclient3 libepsilon1 libfreexl1
libgdal1h libgeos-3.4.2 libgeos-c1 libkml0 liblwgeom-2.1.2 libogdi3.2
libproj0 libspatialite5 liburiparser1 postgis postgresql-9.3-postgis-2.1
postgresql-9.3-postgis-scripts proj-bin proj-data
0 upgraded, 20 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 9,480 kB of archives.
After this operation, 47.6 MB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libdap11 amd64 3.12.0-1 [347 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libdapclient3 amd64 3.12.0-1 [94.4 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libepsilon1 amd64 0.9.2-2 [40.3 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libfreexl1 amd64 1.0.0g-1 [26.3 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libgeos-3.4.2 amd64 3.4.2-4ubuntu1 [411 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libgeos-c1 amd64 3.4.2-4ubuntu1 [42.6 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu/ trusty/universe proj-data amd64 4.8.0-2ubuntu2 [2,071 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libproj0 amd64 4.8.0-2ubuntu2 [118 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libspatialite5 amd64 4.1.1-5ubuntu1 [850 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libarpack2 amd64 3.1.5-2 [90.7 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libarmadillo4 amd64 1:4.200.0+dfsg-1 [66.4 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu/ trusty/universe liburiparser1 amd64 0.7.5-1ubuntu2 [34.0 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libkml0 amd64 1.3.0~r864-2 [311 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libogdi3.2 amd64 3.2.0~beta2-7ubuntu1 [205 kB]
Get:15 http://in.archive.ubuntu.com/ubuntu/ trusty/universe libgdal1h amd64 1.10.1+dfsg-5ubuntu1 [3,699 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu/ trusty/universe liblwgeom-2.1.2 amd64 2.1.2+dfsg-2 [150 kB]
Get:17 http://in.archive.ubuntu.com/ubuntu/ trusty/universe postgis amd64 2.1.2+dfsg-2 [156 kB]
Get:18 http://in.archive.ubuntu.com/ubuntu/ trusty/universe postgresql-9.3-postgis-scripts all 2.1.2+dfsg-2 [496 kB]
Get:19 http://in.archive.ubuntu.com/ubuntu/ trusty/universe postgresql-9.3-postgis-2.1 amd64 2.1.2+dfsg-2 [239 kB]
Get:20 http://in.archive.ubuntu.com/ubuntu/ trusty/universe proj-bin amd64 4.8.0-2ubuntu2 [31.3 kB]
Fetched 9,480 kB in 17s (539 kB/s)
Selecting previously unselected package libdap11:amd64.
(Reading database ... 617029 files and directories currently installed.)
Preparing to unpack .../libdap11_3.12.0-1_amd64.deb ...
Unpacking libdap11:amd64 (3.12.0-1) ...
Selecting previously unselected package libdapclient3:amd64.
Preparing to unpack .../libdapclient3_3.12.0-1_amd64.deb ...
Unpacking libdapclient3:amd64 (3.12.0-1) ...
Selecting previously unselected package libepsilon1:amd64.
Preparing to unpack .../libepsilon1_0.9.2-2_amd64.deb ...
Unpacking libepsilon1:amd64 (0.9.2-2) ...
Selecting previously unselected package libfreexl1:amd64.
Preparing to unpack .../libfreexl1_1.0.0g-1_amd64.deb ...
Unpacking libfreexl1:amd64 (1.0.0g-1) ...
Selecting previously unselected package libgeos-3.4.2.
Preparing to unpack .../libgeos-3.4.2_3.4.2-4ubuntu1_amd64.deb ...
Unpacking libgeos-3.4.2 (3.4.2-4ubuntu1) ...
Selecting previously unselected package libgeos-c1.
Preparing to unpack .../libgeos-c1_3.4.2-4ubuntu1_amd64.deb ...
Unpacking libgeos-c1 (3.4.2-4ubuntu1) ...
Selecting previously unselected package proj-data.
Preparing to unpack .../proj-data_4.8.0-2ubuntu2_amd64.deb ...
Unpacking proj-data (4.8.0-2ubuntu2) ...
Selecting previously unselected package libproj0.
Preparing to unpack .../libproj0_4.8.0-2ubuntu2_amd64.deb ...
Unpacking libproj0 (4.8.0-2ubuntu2) ...
Selecting previously unselected package libspatialite5:amd64.
Preparing to unpack .../libspatialite5_4.1.1-5ubuntu1_amd64.deb ...
Unpacking libspatialite5:amd64 (4.1.1-5ubuntu1) ...
Selecting previously unselected package libarpack2.
Preparing to unpack .../libarpack2_3.1.5-2_amd64.deb ...
Unpacking libarpack2 (3.1.5-2) ...
Selecting previously unselected package libarmadillo4.
Preparing to unpack .../libarmadillo4_1%3a4.200.0+dfsg-1_amd64.deb ...
Unpacking libarmadillo4 (1:4.200.0+dfsg-1) ...
Selecting previously unselected package liburiparser1.
Preparing to unpack .../liburiparser1_0.7.5-1ubuntu2_amd64.deb ...
Unpacking liburiparser1 (0.7.5-1ubuntu2) ...
Selecting previously unselected package libkml0:amd64.
Preparing to unpack .../libkml0_1.3.0~r864-2_amd64.deb ...
Unpacking libkml0:amd64 (1.3.0~r864-2) ...
Selecting previously unselected package libogdi3.2.
Preparing to unpack .../libogdi3.2_3.2.0~beta2-7ubuntu1_amd64.deb ...
Unpacking libogdi3.2 (3.2.0~beta2-7ubuntu1) ...
Selecting previously unselected package libgdal1h.
Preparing to unpack .../libgdal1h_1.10.1+dfsg-5ubuntu1_amd64.deb ...
Unpacking libgdal1h (1.10.1+dfsg-5ubuntu1) ...
Selecting previously unselected package liblwgeom-2.1.2.
Preparing to unpack .../liblwgeom-2.1.2_2.1.2+dfsg-2_amd64.deb ...
Unpacking liblwgeom-2.1.2 (2.1.2+dfsg-2) ...
Selecting previously unselected package postgis.
Preparing to unpack .../postgis_2.1.2+dfsg-2_amd64.deb ...
Unpacking postgis (2.1.2+dfsg-2) ...
Selecting previously unselected package postgresql-9.3-postgis-scripts.
Preparing to unpack .../postgresql-9.3-postgis-scripts_2.1.2+dfsg-2_all.deb ...
Unpacking postgresql-9.3-postgis-scripts (2.1.2+dfsg-2) ...
Selecting previously unselected package postgresql-9.3-postgis-2.1.
Preparing to unpack .../postgresql-9.3-postgis-2.1_2.1.2+dfsg-2_amd64.deb ...
Unpacking postgresql-9.3-postgis-2.1 (2.1.2+dfsg-2) ...
Selecting previously unselected package proj-bin.
Preparing to unpack .../proj-bin_4.8.0-2ubuntu2_amd64.deb ...
Unpacking proj-bin (4.8.0-2ubuntu2) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for postgresql-common (154ubuntu1) ...
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
en_au
en_ca
en_gb
en_us
en_za
Removing obsolete dictionary files:
Setting up ntop (3:5.0.1+dfsg1-2ubuntu1) ...
/var/lib/dpkg/info/ntop.config: 3: /var/lib/ntop/init.cfg: Syntax error: Unterminated quoted string
dpkg: error processing package ntop (--configure):
subprocess installed post-installation script returned error exit status 2
Setting up libdap11:amd64 (3.12.0-1) ...
Setting up libdapclient3:amd64 (3.12.0-1) ...
Setting up libepsilon1:amd64 (0.9.2-2) ...
Setting up libfreexl1:amd64 (1.0.0g-1) ...
Setting up libgeos-3.4.2 (3.4.2-4ubuntu1) ...
Setting up libgeos-c1 (3.4.2-4ubuntu1) ...
Setting up proj-data (4.8.0-2ubuntu2) ...
Setting up libproj0 (4.8.0-2ubuntu2) ...
Setting up libspatialite5:amd64 (4.1.1-5ubuntu1) ...
Setting up libarpack2 (3.1.5-2) ...
Setting up libarmadillo4 (1:4.200.0+dfsg-1) ...
Setting up liburiparser1 (0.7.5-1ubuntu2) ...
Setting up libkml0:amd64 (1.3.0~r864-2) ...
Setting up libogdi3.2 (3.2.0~beta2-7ubuntu1) ...
Setting up libgdal1h (1.10.1+dfsg-5ubuntu1) ...
Setting up liblwgeom-2.1.2 (2.1.2+dfsg-2) ...
Setting up postgis (2.1.2+dfsg-2) ...
Setting up postgresql-9.3-postgis-scripts (2.1.2+dfsg-2) ...
Setting up postgresql-9.3-postgis-2.1 (2.1.2+dfsg-2) ...
Setting up proj-bin (4.8.0-2ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
E: Sub-process /usr/bin/dpkg returned an error code (1)
(venv) aruns plivo $ pip install psycopg2
Collecting psycopg2
Using cached psycopg2-2.6.2.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
Error: b'You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.\n'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_mo7ljwl/psycopg2/
(venv) aruns plivo $ sudo apt-get install libpq-dev python-dev
|