error building CuArrays in Julia 1.0

Error: Error building CUDAdrv:
Building against CUDA driver stubs, which is not supported.
I built CUDAdrv successfully in Julia 0.6.4, and I don’t know what’s the problem here. Any suggestions?

Below is version information.

Julia Version 1.0.3
Commit 099e826241 (2018-12-18 01:34 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
LIBM: libopenlibm
LLVM: libLLVM-6.0.0 (ORCJIT, broadwell)

I wonder if the instructions here will help u I managed to make Flux.jl work with GPUs again!

You need to install the NVIDIA kernel driver, and/or make sure its libcuda is discoverable.

The LD_LIBRARY_PATH contains /usr/local/cuda/lib64/stubs To build successfully, I found that this folder must be excluded from the path. Somehow this explains the error message.

Seems pretty clear? No support for CUDA stubs, while you forcibly load modules from /.../cuda/lib/stubs

How did that path end up in your LD_LIBRARY_PATH?