I can only write in English as in ubuntu system.
Tried a lot, finally found this way.
1. 装GTK+等图形开发库
sudo apt-get install libgtk2.0-dev
2. 几个图像开发库
sudo apt-get install libxpm-dev
sudo apt-get install libjpeg62-dev
sudo apt-get install libgif-dev
sudo apt-get install libtiff4-dev
last one:
sudo apt-get install libncurses5-dev
download source code of emacs-24.4, extract and enter the folder.
./configure
make
make install or sudo make install if permission denied.
run it in window
emacs
run it without any window
emacs -nw