Segfault-Inc / Multicorn

Data Access Library
https://multicorn.org/
PostgreSQL License
700 stars 145 forks source link

Installing on CentOS 6.5 #63

Open Neverminder opened 10 years ago

Neverminder commented 10 years ago

Is there a way to install multicorn on CentOS 6.5? Default version of python is 2.6 and I am aware that is no longer supported. So far I've taken these steps:

Installed python 2.7 alongside the default 2.6 version. Compiled multicorn with changing all references/paths in makefile to python 2.7. Python related files seem to end up in the right folder:

/usr/local/lib/python2.7/dist-packages/multicorn-1.0.2-py2.7-linux-x86_64.egg/multicorn

Creating extension statement works:

CREATE EXTENSION multicorn;

Creating server fails:

CREATE SERVER csv_srv foreign data wrapper multicorn options (wrapper 'multicorn.csvfdw.CsvFdw'); ERROR: Error in python: ImportError DETAIL: No module named multicorn

I'm thinking this is because Postgres is referencing default python version 2.6? Is there any way to overcome this problem? My Postgres version is 9.3.3.

asya999 commented 9 years ago

You can look at my pull request https://github.com/Kozea/Multicorn/pull/105 which adds compatibility with Python 2.6 and that allowed me to install on CentOS without any special steps.