Estou tendo problemas para instalar o psycopg2. Eu recebo o seguinte erro ao tentar pip install psycopg2:
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build/psycopg2
Mas o problema é que pg_configestá realmente na minha PATH; ele roda sem nenhum problema:
$ which pg_config
/usr/pgsql-9.1/bin/pg_config
Tentei adicionar o caminho pg_config ao setup.cfgarquivo e construí-lo usando os arquivos de origem que baixei do site deles ( http://initd.org/psycopg/ ) e recebo a seguinte mensagem de erro!
Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/'
Mas é realmente LÁ !!!
Estou perplexo com esses erros. Alguém pode ajudar por favor?
By the way, eu sudotodos os comandos. Também estou no RHEL 5.5.
ln -s /usr/pgsql-9.1/bin/pg_config /usr/sbin/pg_confige tudo está bem!
sudo,$PATHé alterado. Você pode verificar seu $ PATH como root?