cygwin下でgitグラフィックスインターフェースgitkとgit giをインストールします。
1281 ワード
端末にgitkを入力したらエラーが発生しました。
Appliation initialization failed:no display name and no$DISPLAY environment variable
ソリューション:http://stackoverflow.com/questions/9393462/cannot-launch-git-gui-using-cygwin-on-windows
As of a recent Tcl/Tk udate、Cygwin now uses X 11 instead of GDI.In shot、this means to install some of the Cygwin X 11 package and set them up to able to open the GUI.
This shound get you back up and running:
Run the Cygwin installer again(download setup.exe again if you need to)At the package list、select to install“xinit”and“X-start-menu-incons”;both are under the X 11 category.Click next,accept all the dependencies,and install.In the Windows Start menu,you shound have a new group:Cygwin-X.From there,run XWin Server.In your Cygwin shell,run
For the interested,the reason the X 11 package s aren't installed atomatic ally is that they're not technially need:it's possible through somewhat convoluted means to use a different
Appliation initialization failed:no display name and no$DISPLAY environment variable
ソリューション:http://stackoverflow.com/questions/9393462/cannot-launch-git-gui-using-cygwin-on-windows
As of a recent Tcl/Tk udate、Cygwin now uses X 11 instead of GDI.In shot、this means to install some of the Cygwin X 11 package and set them up to able to open the GUI.
This shound get you back up and running:
Run the Cygwin installer again(download setup.exe again if you need to)At the package list、select to install“xinit”and“X-start-menu-incons”;both are under the X 11 category.Click next,accept all the dependencies,and install.In the Windows Start menu,you shound have a new group:Cygwin-X.From there,run XWin Server.In your Cygwin shell,run
export DISPLAY=:0.0
.You'll need to repeat step 3 everry time you reboot your computer,and step 4 every time you open a new Cygwin shell(or just run echo "export DISPLAY=:0.0" >>~/.profile
to have it run auticallywhenever create a newshell)For the interested,the reason the X 11 package s aren't installed atomatic ally is that they're not technially need:it's possible through somewhat convoluted means to use a different