As @Eliah pointed out, this is happening because you are downloading an incorrect file by using wget. This can be confirmed by comparing the downloaded files MD5 checksum to the one listed on the AMD checksum reference page. The archive downloaded using wget will have a different checksum than the one listed on that page.
- If you download
AMD-APP-SDK-v2.9-lnx64.tgz from the AMD website, you will need to agree to a License Agreement before being able to download it.
- If you use wget to download the SDK, you will not be agreeing to the license agreement and thus, archive will have the wrong MD5 Checksum:
MD5 (AMD-APP-SDK-v2.9-lnx64.tgz) = 649b53fccfa8262de835d554fdd56dfc
- However, if you download it properly from the website, the checksum will be:
MD5 (AMD-APP-SDK-v2.9-lnx64 (1).tgz) = 24ca89856d41aa82dea8370b7a24fb4e
AMD lists the correct checksums on this page.
So, in order to download it using a script, you will most likely have to upload the correctly downloaded archive somewhere else. However, this may be against the License Agreement, I'm not sure. I copied AMD's license agreement to this gist if you'd like to take a look.
You can refer to this answer for how to check the md5sum. Copied from the answer:
for MD5 and SHA1 you can do
md5sum (file name)
for md5sum and
sha1sum (file name)