📜 ⬆️ ⬇️

Windows + Tmux + Cygwin

Good afternoon, Habr!

I have been working closely with Linux systems for a long time, but I prefer Windows as a desktop. But for comfortable work sometimes you need to try.

Today I want to share experiences and impressions about how I tried to find a replacement for Tmux under cygwin and how I eventually defeated Tmux and compiled it under Cygwin + Windows. Who cares - I ask under the cat.
')
image

System requirements

I built tmux on windows 7 x64 with Cygwin.x86 installed. On Cygwin.x86_64 The libevent library could not be compiled.
It’s worth starting with installing Cygwin.x86 . When installing in addition to the necessary software you need to install:

gcc *, make, autoconf, automake, cmake.

You will also need to install the library that tmux requires: libncurses10, libncurses-devel, ncurses .

Build libevent

I scooped information and experience from this correspondence . But still I had to change a bit and dig out the souce code. I do not want you to upload .patch files and unnecessary details, for whom it is necessary - he will be able to compare the sources. I will post my finished work, you only need to collect.

Another necessary dependency of Tmux is a library of libevent, which, unfortunately, is not in the cygwin repository. It must be collected from the source. I used libevent-2.0.21-stable . Open Cygwin and collect:

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


Please note that with configure, the libdir parameter is not in vain, and Cygwin is not friendly with / usr / local / lib.

Build tmux

I laid out my workings out Tmux

 tar xf tmux-tmux-code.tgz cd tmux-tmux-code ./configure make && make install tmux echo 'Enjoy!' 


Impressions

It works very fast and does not crash! In comparison with alternatives such as Byobu and Screen, heaven and earth.
Thank you for your attention, I wish you all a good week and comfortable working conditions!

Sources

I personally made a couple of small fixes, the main work was done for me, I want to express my great gratitude to this project .

UPD. Also I collected the binaries that I collected.

Source: https://habr.com/ru/post/196128/


All Articles