-1

実行しようとすると、欠落しpattern_create.rbているエラー メッセージが表示され、rake-10.4.2bundle 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-psycopg2sudo 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しても、同じエラーが発生します。私は何が欠けていますか?

4

1 に答える 1

0

バンドルのインストールが機能しなかった理由を実際に解決していないので、Stackoverflow でこれを見つけました:バンドルとレーキの Metasploit 誘導

Aj と Mahendra の解決策により、実行できましたpattern_create.rb

于 2015-07-08T03:21:58.483 に答える