ERROR: GLEW initalization error: Missing GL version

System: Ubuntu 18.04
since there is no NVIDIA XXX folder in my/usr/lib directory, use the following method in the. Bashrc file:

export PATH=/usr/local/cuda-10.2/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-10.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so:/usr/lib/nvidia-460/libGL.so

it won ‘t work.

The final solution is:

By manually adding environment variables for the current running environment, run – & gt; Edit configuration – & gt; Add the corresponding environment variable to the environment variable

Variable name: LD_ Preload
variable value:/usr/lib/x86_ 64-linux-gnu/libGLEW.so

Read More: