0

I get the error:

because no resource roots of any kind could be found: DRAKE_RESOURCE_ROOT is unset, a bazel::tools::cpp::runfiles::Runfiles could not be created, and there is no Drake CMake install marker.Aborted (core dumped)

The fix is as follows.

1 Answers1

0

The solution is to add DRAKE_RESOURCE_ROOT to the bashrc file permanently.

echo "export DRAKE_RESOURCE_ROOT=/" >> ~/.bashrc

Remember to commit the container to have the change persistent.

docker commit <container id> <container tag> on a different terminal that is not running docker.

  • Can I ask which Dockerfile you're building this off of? Ideally, if Drake was setup correctly, it shouldn't need `DRAKE_RESOURCE_ROOT` at all, and should just rely on resource paths relative to the shared library. – Eric Cousineau Nov 25 '19 at 16:27
  • I installed this Dockerfile: https://raw.githubusercontent.com/RobotLocomotion/drake/master/setup/ubuntu/docker/bionic/Dockerfile.nvidia-cuda-9.1-devel-ubuntu18.04 – Michael Jacob Mathew Nov 25 '19 at 17:49