DS2413+ (DSM 4.3) に psycopg2 をインストールしようとしています。ipkg と pip を使用して Python 2.7 をインストールしました。私がする時 :
/opt/local/bin/pip2.7 install psycopg2
次のエラーが発生しました: エラー: pg_config 実行可能ファイルが見つかりません。
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'.
Complete output from command python setup.py egg_info:
running egg_info
しかし、組み込みバージョンのが既にインストールさpg_config
れている場所が見つかりませんでした。この種のエラーのある他のトピックでは、インストールを推奨していますが、NAS にインストールすることはできません... ikpg もありますが、Python 2.7 にインストールする必要があります。/usr/syno/
pgsql
python-dev
py26-psycopg2
誰かがこれらの問題の解決策を持っている場合は教えてください:')
乾杯