}

Tensorflow 0.12.1 installation: no such package @zlib_archive- Error downloading -http:-zlib.net-zlib-1.2.8.tar.gz

Created:

I'm attempting to install tensorflow 0.12.1 from the r0.12 branch from source.

zlib has been updated from 1.2.8 to 1.2.9 so it appears the link must be updated from: http://zlib.net/zlib-1.2.8.tar.gz

edit: per later comments, this has been moved to http://zlib.net/fossils/zlib-1.2.8.tar.gz

~~one solution may be to update to:~~ ~~http://zlib.net/zlib-1.2.9.tar.gz~~

here is the error I'm getting:

INFO: Starting clean (this may take a while). Consider using --expunge_async if the clean takes more than several minutes.
........
ERROR: /home/ahundt/src/tensorflow/tensorflow/core/BUILD:970:1: no such package '@zlib_archive//': Error downloading [http://zlib.net/zlib-1.2.8.tar.gz] to /home/ahundt/.cache/bazel/_bazel_ahundt/beca172f341045bf57b6baf5296669b3/external/zlib_archive/zlib-1.2.8.tar.gz: GET returned 404 Not Found and referenced by '//tensorflow/core:lib_internal'.
ERROR: /home/ahundt/src/tensorflow/tensorflow/core/BUILD:970:1: no such package '@zlib_archive//': Error downloading [http://zlib.net/zlib-1.2.8.tar.gz] to /home/ahundt/.cache/bazel/_bazel_ahundt/beca172f341045bf57b6baf5296669b3/external/zlib_archive/zlib-1.2.8.tar.gz: GET returned 404 Not Found and referenced by '//tensorflow/core:lib_internal'.
ERROR: Evaluation of query "deps((//tensorflow/... union @bazel_tools//tools/jdk:toolchain))" failed: errors were encountered while computing transitive closure.

In addition to the breakage fix, perhaps it would also make sense to make a change that would prevent future breakage of this sort?For those wanderers with the same problem it can be fixed changing tensorflow/tensorflow/workspace.bzl from

native.new_http_archive(
      name = "zlib_archive",
      url = "http://zlib.net/zlib-1.2.8.tar.gz",
      sha256 = "36658cb768a54c1d4dec43c3116c27ed893e88b02ecfcb44f2166f9c0b7f2a0d",
      strip_prefix = "zlib-1.2.8",
      build_file = str(Label("//third_party:zlib.BUILD")),
)

To

native.new_http_archive(
      name = "zlib_archive",
      url = "http://zlib.net/zlib-1.2.9.tar.gz",
      sha256 = "73ab302ef31ed1e74895d2af56f52f5853f26b0370f3ef21954347acec5eaa21",
      strip_prefix = "zlib-1.2.9",
      build_file = str(Label("//third_party:zlib.BUILD")),
)