I'm using ubuntu guest on virtualbox.
follwing this tutorial http://wayland.freedesktop.org/building.html
when I command $weston, respond is
fatal: environment variable XDG_RUNTIME_DIR is not set.
But in tutorial say this
Weston creates its unix socket file (for example, wayland-0) in the directory specified by the required environment variable $XDG_RUNTIME_DIR . Clients use the same variable to find that socket. This is provided by Fedora using systemd. Ubuntu began providing it in Quantal. Arch began providing it with systemd in June 2012. It is not provided by Gentoo. If you are using a distro that does not set $XDG_RUNTIME_DIR for you, do:
$ mkdir /tmp/wayland
$ chmod 0700 /tmp/wayland
$ su -c 'echo XDG_RUNTIME_DIR=/tmp/wayland >> /etc/environment'
So I doesn't command $ su -c 'echo XDG_RUNTIME_DIR=/tmp/wayland >> /etc/environment'
As a result is fatal: environment variable XDG_RUNTIME_DIR is not set.
what am I supposed to do? thanks.
Oh I got new error
error: failed to add default include path /usr/share/x11/xkb
How can I slove this error? thanks