launch GUI emacs
See if you can open other gui app from the terminal, for instance
gvim
gedit
xterm
If yes, run run
emacs
If it is not GUI emacs, it means it does not come with GUI support.
For example
~/.linuxbrew/bin/emacs # no gui
/usr/bin/emacs # with gui
https://stackoverflow.com/questions/49539669/how-to-open-emacs-gui/49540237
echo $DISPLAY
Run Alt x
If your Emacs does not recognize your Alt key as the Meta key, you can type ESC x instead of M-x .
ESC x does not work under evil mode.
Install emacs 27.1
--with-x-toolkit=lucid (emacs daemon)
export PATH=/depot/qsc/QSCR/binutils/bin:$PATH
export PATH=/depot/qsc/QSCR/GCC/bin:$PATH
export PATH=/depot/autoconf-2.69/bin:$PATH
gcc --version
gcc (GCC) 7.3.0
git clone https://github.com/emacs-mirror/emacs.git
cd emacs
git checkout emacs-27.1
./autogen.sh
./configure --prefix=/u/ming/bin/emacs-27.1 \
--with-x-toolkit=lucid --without-makeinfo --with-gif=ifavailable
make -j11 && make install
--with-x-toolkit=lucid
emacs --daemon
Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
Loading /u/jianmin/.spacemacs...
...
Unable to start the daemon.
Another instance of Emacs is running the server, either as daemon or interactively.
You can use emacsclient to connect to that Emacs process.
Saving file /u/jianmin/.emacs.d/.cache/recentf...
Wrote /u/jianmin/.emacs.d/.cache/recentf
Wrote /u/jianmin/.emacs.d/.cache/places
Error: server did not start correctly
Emacs.AppImage
https://github.com/probonopd/Emacs.AppImage
Emacs-27.1.glibc2.16-x86_64.AppImage
https://github.com/probonopd/Emacs.AppImage/releases/download/continuous/Emacs-27.1.glibc2.16-x86_64.AppImage
clean build
If you have build from git before, you might want to clean your repo first.
cd ~/mygit/emacs
# discard stuff from last build
git reset --hard
# delete all of the last build stuff
git clean -xdf
# get latest update
git pull https://github.com/mirrors/emacs.git
http://ergoemacs.org/emacs/building_emacs_from_git_repository.html