Windows + Tmux + Cygwin

来源:互联网 发布:php ajax返回html标签 编辑:程序博客网 时间:2024/05/19 01:13
     很多朋友在Linux下体验到tmux是不是很酷大笑,有一种黑客的感觉有木有啊,而哪些在windows下使用Cygwin的朋友为难了,tmux只有Linux平台的版本,如何在windows下体验tmux?今天我给大家带来的这篇文章转载于国外开源网站某个黑客的blog,教你如何在Cygwin中安装tmux。接下来体验极客生活吧!大笑Good afternoon, habr!I densely works for a long time with Linux systems, but as a desktop I prefers Windows. But for comfortable operation sometimes it are necessary to try.

Today I wants will share experience and impressions about that as I trying to find changeover of Tmux under cygwin and as I eventually winning Tmux and compiling it under Cygwin + Windows. To whom it are interesting — I asks under kat.


Requirements to system

I collecting tmux on windows 7 x64 with install Cygwin.x86. On Cygwin.x86_64 to Collect library of libevent it were not possible.
It are necessary to begin with setting of Cygwin.x86. When setting besides a software necessary for you it are necessary to install:

gcc *, make, autoconf, automake, cmake.

Also it will be necessary to deliver library which tmux demanded: libncurses10, libncurses-devel, ncurses.

Assembly of libevent

I scooping the information and experience with this correspondence. But all the same it were necessary to change a little and pokovyryatsya in souce code. I does not want you to load.patch files and superfluous details for whom it are necessary — could compare source codes. I will lay out the ready operating time, it will be necessary for you to collect only. 

One more of necessary dependences of Tmux — are which library of libevent, unfortunately, are not present in a repository of cygwin. It are necessary for collect with source codes. I using libevent-2.0.21-stable. We opened Cygwin and we collected:

tar xf libevent-2.0.21-stable.tgzcd libevent-2.0.21-stable./configure --libdir=/usr/lib/make && make install


I asks to pay attention that at configure the parameter of libdir are specif knowingly, and Cygwin badly are on friendly terms with / usr/local/lib.

Assembly of tmux

I laying out the operating time of Tmux

tar xf tmux-tmux-code.tgzcd tmux-tmux-code./configuremake && make installtmuxecho 'Enjoy!'
Impressions
Worked very quickly and not sboit! In comparison with alternatives such as Byobu and Screen the sky and the earth.
Thanks for attention, I wishes all good week and comfortable working conditions!
0 0
原创粉丝点击