実行しようとすると、欠落しpattern_create.rb
ているエラー メッセージが表示され、rake-10.4.2
bundle install を実行する必要があります。
bundle install を実行するpg
と、ネイティブ拡張機能を使用して (0.18.1) をインストールするとエラーが発生する まで実行されます。
Gem::Installer::ExtensionBuildError: エラー: gem ネイティブ拡張のビルドに失敗しました。
私は次のように言われました:
サーバー側の拡張機能を構築するには postgresql-server-dev-XY を、クライアント側のアプリケーションを構築するには libpq-dev をインストールする必要があります。サーバー側の拡張機能を構築するには postgresql-server-dev-XY を、クライアント側のアプリケーションを構築するには libpq-dev をインストールする必要があります。
私は次のことを試しましたsudo apt-get install postgresql-9.1
: sudo apt-get install python-psycopg2
sudo apt-get install libpq-dev
最後の命令は次で終わります。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
次のパッケージには満たされていない依存関係があります。
libpq-dev :
Depends: libpq5 (= 9.1.14-0+deb7u1) but 9.1.15-0+deb7u1 is to be installed
Depends: libkrb5-dev but it is not going to be installed
Depends: comerr-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
その後再度実行sudo bundle install
しても、同じエラーが発生します。私は何が欠けていますか?