こんにちは、私はこのガイドに従ってください
そして私のDebian Wheezy(64ビット)にPHP 5.6をインストールしようとしています。
私のサーバーにvirtualminがあり、私のPHPバージョンが5.4で、「Duplicator」を介して私のWordPressをバックアップするには5.6が必要ですが、少なくとも5.6が必要なため、これを行っています。
PHP 5.6を手動でインストールしようとしていますが(libdb5.3-devパッケージが見つかりません)、php5.6を抽出して移動しようとするとエラーが発生します。
wgetを数回試してみましたが、それでも常に同じエラーが発生します。
エラーは次のとおりです。
root@ns3009614:/# tar -xvjpf /home/downloads/php-5.6.31.tar.gz -C /opt/build
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
root@ns3009614:/# tar -xvjpf /home/downloads -C /opt/build
tar (child): /home/downloads: Cannot read: Is a directory
tar (child): At beginning of tape, quitting now
tar (child): Error is not recoverable: exiting now
bzip2: Compressed file ends unexpectedly;
perhaps it is corrupted? *Possible* reason follows.
bzip2: Inappropriate ioctl for device
Input file = (stdin), output file = (stdout)
It is possible that the compressed file(s) have become corrupted.
You can use the -tvv option to test integrity of such files.
You can use the `bzip2recover' program to attempt to recover
data from undamaged sections of corrupted files.
tar: Child returned status 2
tar: Error is not recoverable: exiting now
助けてください?
ありがとうございます!
ベストアンサー1
php-5.6.31.tar.gz
ファイルをbzip2圧縮ファイルとして処理しようとしたため、問題が発生しました。そして実際のファイルはgzipで圧縮されたファイルです。
tar -xvjpf php-5.6.31.tar.gz
に変更するとtar -xvzf php-5.6.31.tar.gz
問題が解決します。