pwntoolsのインストールと問題解決
このインストールはUbuntu 32ビットシステムに基づいており、python 2.7およびpipに従っています.最も簡単なインストール方法:
インストールにエラーが発生しました:
欠落したパッケージをインストールするには、次の手順に従います.
次のエラーが発生しました.
ソリューション:aptitudeツール1を使用して、まずaptitudeをインストールします.
2、aptitudeでpython-devをインストールする:
次のように表示されます.
ここで必ずnを選択し、次に、
ここで必ずyを選んで、それから出会ってすべてyを選んで終わります!そして次のpipを実行してOK!pwntoolsをインストールします.
またエラーが発生した場合:
インストールコマンドに追加–ignore-installed:
次のようなエラーが発生した場合:
なぜなら、ツールパッケージをインストールする際にWebページをキャプチャする必要があるためhttpsを処理し、httpsを処理するには復号化アルゴリズム(cryptographyパッケージ)に依存し、cryptographyはフーリエ変換のアルゴリズムおよび対応するコンパイル環境に依存するからである.Ubuntuのデフォルトではlibffi-devとlibssl-devがインストールされていません.gccも必ずしもインストールされていません.ターゲットインストールパッケージは依存リストに記載されていません.そのため、手動でインストールする必要があります.
sudo pip install pwntools
インストールにエラーが発生しました:
You must install the Python development headers!
$ apt-get install python-dev
欠落したパッケージをインストールするには、次の手順に従います.
apt-get install python-dev
次のエラーが発生しました.
The following packages have unmet dependencies:
python2.7-dev : Depends: python2.7 (= 2.7.6-8) but 2.7.6-8ubuntu0.2 is to be installed
Depends: libpython2.7-dev (= 2.7.6-8) but it is not going to be installed
Depends: libpython2.7 (= 2.7.6-8) but 2.7.6-8ubuntu0.2 is to be installed
Depends: libexpat1-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
ソリューション:aptitudeツール1を使用して、まずaptitudeをインストールします.
sudo apt-get install aptitude
2、aptitudeでpython-devをインストールする:
sudo aptitude install python-dev
次のように表示されます.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) libexpat1-dev [Not Installed]
2) libpython-dev [Not Installed]
3) libpython2.7-dev [Not Installed]
4) python-dev [Not Installed]
5) python2.7-dev [Not Installed]
Accept this solution? [Y/n/q/?] n
ここで必ずnを選択し、次に、
The following actions will resolve these dependencies:
Downgrade the following packages:
1) libexpat1 [2.1.0-4ubuntu1.3 (now) -> 2.1.0-4ubuntu1 (trusty)]
2) libpython2.7 [2.7.6-8ubuntu0.2 (now) -> 2.7.6-8 (trusty)]
3) libpython2.7-minimal [2.7.6-8ubuntu0.2 (now) -> 2.7.6-8 (trusty)]
4) libpython2.7-stdlib [2.7.6-8ubuntu0.2 (now) -> 2.7.6-8 (trusty)]
5) python2.7 [2.7.6-8ubuntu0.2 (now) -> 2.7.6-8 (trusty)]
6) python2.7-minimal [2.7.6-8ubuntu0.2 (now) -> 2.7.6-8 (trusty)]
Accept this solution? [Y/n/q/?] y
ここで必ずyを選んで、それから出会ってすべてyを選んで終わります!そして次のpipを実行してOK!pwntoolsをインストールします.
sudo pip install pwntools
またエラーが発生した場合:
Cannot uninstall 'pyserial'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
インストールコマンドに追加–ignore-installed:
sudo pip install --ignore-installed pwntools
次のようなエラーが発生した場合:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-f8m_zq/statsmod
なぜなら、ツールパッケージをインストールする際にWebページをキャプチャする必要があるためhttpsを処理し、httpsを処理するには復号化アルゴリズム(cryptographyパッケージ)に依存し、cryptographyはフーリエ変換のアルゴリズムおよび対応するコンパイル環境に依存するからである.Ubuntuのデフォルトではlibffi-devとlibssl-devがインストールされていません.gccも必ずしもインストールされていません.ターゲットインストールパッケージは依存リストに記載されていません.そのため、手動でインストールする必要があります.
sudo apt-get install libssl-dev libffi-dev python-dev build-essential libxml2-dev libxslt1-dev