Skip to content

Can't install from source if I don't have a GPU?  #71

Description

@spk921

My os X: EI Captian version 10.11.1
I tried install from the source. However, running "$ bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkg" this make me error. I got following error message. I think I don't have a GPU in my mac. Is there anyway that I can isnstall from source even though I don't have a GPU ?

sangpil_kim@ ~/git/tensorflow $ bazel build -c opt //tensorflow/tools/pip_package:build_pip_package
.......
INFO: Found 1 target...
INFO: From Executing genrule //third_party/gpus/cuda:cuda_config_check:
/bin/bash: touch: command not found
ERROR: /Users/sangpil_kim/git/tensorflow/third_party/gpus/cuda/BUILD:143:1: Executing genrule //third_party/gpus/cuda:cuda_config_check failed: bash failed: error executing command /bin/bash -c 'source tools/genrule/genrule-setup.sh; touch bazel-out/local_darwin-opt/genfiles/third_party/gpus/cuda/cuda.config': com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 127.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 79.345s, Critical Path: 0.32s
-bash: tail: command not found
-bash: sed: command not found

Activity

  1. vincentvanhoucke commented on Nov 10, 2015

    @vincentvanhoucke
    Contributor

    I suspect the GPU is a red herring. Without more info, the fact that /bin/bash can't seem to be able to execute standard tools like 'touch', 'tail' or 'sed' suggests something is very weird about your system.

  2. booherbg commented on Nov 10, 2015

    @booherbg

    The actual error is that the 'touch' command fails. Fix that and you should be ok?

  3. spk921 commented on Nov 11, 2015

    @spk921
    Author

    Thanks, after that error my bash cracked so I just reinstalled my OS. I hope to know that there is a case who build from source which don't have a GPU in their labtop.

  4. mrry commented on Nov 12, 2015

    @mrry
    Contributor

    After reinstalling your OS, are you able to run the commands /usr/bin/touch, /usr/bin/tail and /usr/bin/sed from the Terminal? If so, this step in the installation should succeed.

    To clarify: it is possible to build TensorFlow from source without a GPU.

  5. spk921 commented on Nov 13, 2015

    @spk921
    Author

    I used Time Machine before reinstalling it and I found those commands works. I assume my errors are related with CUDA configuration. I don't have a GPU but I installed CUDA so TensorFlow act like I have a GPU and makes a problem. However, I know it's possible to build without GPU. I will try to solve it next time when I have a time. I saw a benchmark that TensorFlow is not fast as torch so I decided to stick with Torch. I will try to install TensorFlow next time when it get better in the future.

  6. added a commit that references this issue on Aug 9, 2019
    31eee7f
  7. added a commit that references this issue on Dec 6, 2019
  8. added a commit that references this issue on May 17, 2022
  9. added 2 commits that reference this issue on Mar 4, 2025
  10. added 4 commits that reference this issue on Apr 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions