I used Ruby on Rails on Red Hat server. When I trying to generate a controller file, I got this error:
[ec2-user@ip-172-31-22-128 testApp4]$ rails generate
Or,
export XDG_RUNTIME_DIR=/run/user/${id -u}
to change this system variable. id -u returns your UID(user id), which is the dir name where you have access to write/read under /run/user/.
id -u
/run/user/