[Portugal] Problema ao Instalar RT SQL Layer e/ou Fast SQL Layer no QGIS

Alexandre Neto senhor.neto at gmail.com
Sat Sep 3 06:05:26 EDT 2011


Bom dia,

Estou a tentar instalar os seguintes plugins para QGIS RT SQL Layer e/ou
Fast SQL Layer no ubuntu 11.04. Ambos me pediram os módulos psycopg2 e
pyspatialite. No primeiro caso não tive dificuldade em instalá-lo:

*sudo apt-get install python-psycopg2*

Já o pyspatialite ainda não consegui... O que consegui encontrar apontava
para fazê-lo da seguinte forma:

*sudo pip install pyspatialite*
*
*
Mas deu-me o erro que indico abaixo.

Alguém sabe o que posso estar a fazer mal?

Obrigado

Alexandre Neto

-------



...
creating build/temp.linux-x86_64-2.7/amalgamation

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DMODULE_NAME="spatialite.dbapi2"
-DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_RTREE=1
-DSQLITE_ENABLE_COLUMN_METADATA=1 -Iamalgamation -I/usr/include/python2.7 -c
src/module.c -o build/temp.linux-x86_64-2.7/src/module.o

In file included from src/module.c:24:0:

src/connection.h:26:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import
setuptools;__file__='/home/alex/build/pyspatialite/setup.py';execfile(__file__)"
install --single-version-externally-managed --record
/tmp/pip-EZiKRs-record/install-record.txt failed with error code 1
Exception information:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/pip/basecommand.py", line 130, in main
    self.run(options, args)
  File "/usr/lib/pymodules/python2.7/pip/commands/install.py", line 228, in
run
    requirement_set.install(install_options, global_options)
  File "/usr/lib/pymodules/python2.7/pip/req.py", line 1045, in install
    requirement.install(install_options, global_options)
  File "/usr/lib/pymodules/python2.7/pip/req.py", line 560, in install
    cwd=self.source_dir, filter_stdout=self._filter_install,
show_stdout=False)
  File "/usr/lib/pymodules/python2.7/pip/__init__.py", line 249, in
call_subprocess
    % (command_desc, proc.returncode))
InstallationError: Command /usr/bin/python -c "import
setuptools;__file__='/home/alex/build/pyspatialite/setup.py';execfile(__file__)"
install --single-version-externally-managed --record
/tmp/pip-EZiKRs-record/install-record.txt failed with error code 1
-------------- próxima parte ----------
Um anexo em HTML foi limpo...
URL: http://lists.osgeo.org/pipermail/portugal/attachments/20110903/bc88cf04/attachment.html


More information about the Portugal mailing list