Modify ↓
#10808 closed defect (invalid)
Can't install Trac1.0beta1 for PostgreSQL using directions in INSTALL
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The directions say
To install Trac, the following software packages must be installed: * Python, version >= 2.5. * setuptools, version >= 0.6, or the "distribute" package * Genshi, version >= 0.6 * Optionally, Subversion, version >= 1.1.x and the Subversion SWIG Python bindings (not PySVN, that's something different). * One of the following Python bindings, depending on the database used: * pysqlite version 2.x for SQLite 3.x * psycopg2 version 2.0.x for the PostgreSQL database * MySQLdb, version 1.2.2 for the MySQL database
But trying to install psycopg2
I get:
sudo easy_install psycopg2 Searching for psycopg2 Reading http://pypi.python.org/simple/psycopg2/ Reading http://initd.org/psycopg/ Reading http://initd.org/projects/psycopg2 Best match: psycopg2 2.4.5 Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz Processing psycopg2-2.4.5.tar.gz Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-a6sVjo/psycopg2-2.4.5/egg-dist-tmp-m4Htyj Error: You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.
so I did:
sudo apt-get install libpq-dev
which succeeds then
sudo easy_install psycopg2
which says:
Searching for psycopg2 Reading http://pypi.python.org/simple/psycopg2/ Reading http://initd.org/psycopg/ Reading http://initd.org/projects/psycopg2 Best match: psycopg2 2.4.5 Downloading http://initd.org/psycopg/tarballs/PSYCOPG-2-4/psycopg2-2.4.5.tar.gz Processing psycopg2-2.4.5.tar.gz Running psycopg2-2.4.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-9uV_mM/psycopg2-2.4.5/egg-dist-tmp-xxctMv no previously-included directories found matching 'doc/src/_build' In file included from psycopg/psycopgmodule.c:27:0: ./psycopg/psycopg.h:30:20: fatal error: Python.h: No such file or directory compilation terminated. error: Setup script exited with error: command 'gcc' failed with exit status 1
I'm on Ubuntu 11.10 with PostgreSQL 9.1.4.
Attachments (0)
Change History (5)
comment:1 by , 12 years ago
Milestone: | 1.0 |
---|---|
Resolution: | → invalid |
Status: | new → closed |
comment:2 by , 12 years ago
Also see the Psycopg install page: http://www.initd.org/psycopg/install/
Your system must be able to compile a C Python extension against the libpq library: you will probably need python-dev and libpq-dev packages.
comment:4 by , 10 years ago
Reporter: | changed from | to
---|
Changing email address of reporter, at request of reporter.
comment:5 by , 9 years ago
Reporter: | changed from | to
---|
Note:
See TracTickets
for help on using tickets.
You need the development headers for Python (I think the package is called
python-dev
).This is an InstallationIssue, and we're not going to list each and every Linux distribution in
INSTALL
. That's what this wiki is for, see TracOnUbuntu for example.