Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tensorflow installation error - (directory not empty)

I'm trying to install tensorflow 0.11.0 by running

./configure

I'm getting an error saying :

ERROR: /home/abc/.cache/bazel/_bazel_abc/235fe154e0/server (Directory not empty).

I'm not sure if they are related, but before the error message, I also get a warning saying:

WARNING: Output base '/home/abc/.cache/bazel/_bazel_abc/235fe154e0' is on NFS.     
This may lead to surprising failures and undetermined behavior.

I have no clue what the error message means, but if I try running ./configure right after this error message, I get another message saying:

/home/rkohli1/.cache/bazel/_bazel_rkohli1/235fe154e0a4c7e0c0527cd185fe6b6b/server/
.nfs00000000820050bd00000e9e (Device or resource busy).

At this point, I just tried deleting the entire .cache folder (I had to first kill a process which was preventing me from deleting it). I tried running configure with the --expunge_async flag as well but it doesn't help. It takes me back to the first error message.

Not sure if it's relevant, but I'm trying to install tensorflow with GPU support and use cuda 8.0 and cudNN 5

like image 699
kerouac Avatar asked Oct 20 '16 03:10

kerouac


1 Answers

I am not sure if it is correct. After I changed

bazel clean --expunge

to

bazel clean --expunge_async

in the tensorflow/configure file, the build is successful.

Environments:

  • bazel 0.3.1
  • cuDNN 5
  • Cuda 8.0
like image 146
user200340 Avatar answered Nov 03 '22 22:11

user200340