Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to install Tmux under a Cygwin 64-bit installation on Windows 7 64-bit. I'm following these instructions: http://java.ociweb.com/mark/programming/tmuxInCygwin.html

I successfully compiled and installed libevent and ncurses, but I get this error when I try to make the patched version of tmux:

$ make
gcc  -I /usr/include/ncurses  -std=gnu99 -O0 -g -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare -Wundef -Wbad-function-cast -Winline -Wcast-align -Wdeclaration-after-statement  -Wno-pointer-sign    -o tmux.exe arguments.o attributes.o cfg.o client.o clock.o cmd-attach-session.o cmd-bind-key.o cmd-break-pane.o cmd-capture-pane.o cmd-choose-buffer.o cmd-choose-client.o cmd-choose-list.o cmd-choose-tree.o cmd-clear-history.o cmd-clock-mode.o cmd-command-prompt.o cmd-confirm-before.o cmd-copy-mode.o cmd-delete-buffer.o cmd-detach-client.o cmd-display-message.o cmd-display-panes.o cmd-find-window.o cmd-has-session.o cmd-if-shell.o cmd-join-pane.o cmd-kill-pane.o cmd-kill-server.o cmd-kill-session.o cmd-kill-window.o cmd-link-window.o cmd-list-buffers.o cmd-list-clients.o cmd-list-commands.o cmd-list-keys.o cmd-list-panes.o cmd-list-sessions.o cmd-list-windows.o cmd-list.o cmd-load-buffer.o cmd-lock-server.o cmd-move-window.o cmd-new-session.o cmd-new-window.o cmd-paste-buffer.o cmd-pipe-pane.o cmd-queue.o cmd-refresh-client.o cmd-rename-session.o cmd-rename-window.o cmd-resize-pane.o cmd-respawn-pane.o cmd-respawn-window.o cmd-rotate-window.o cmd-run-shell.o cmd-save-buffer.o cmd-select-layout.o cmd-select-pane.o cmd-select-window.o cmd-send-keys.o cmd-set-buffer.o cmd-set-environment.o cmd-set-option.o cmd-show-environment.o cmd-show-messages.o cmd-show-options.o cmd-source-file.o cmd-split-window.o cmd-string.o cmd-suspend-client.o cmd-swap-pane.o cmd-swap-window.o cmd-switch-client.o cmd-unbind-key.o cmd-unlink-window.o cmd-wait-for.o cmd.o colour.o control.o control-notify.o environ.o format.o grid-cell.o grid-view.o grid.o input-keys.o input.o job.o key-bindings.o key-string.o layout-custom.o layout-set.o layout.o log.o mode-key.o names.o notify.o options-table.o options.o paste.o resize.o screen-redraw.o screen-write.o screen.o server-client.o server-fn.o server-window.o server.o session.o signal.o status.o style.o tmux.o tty-acs.o tty-keys.o tty-term.o tty.o utf8.o window-choose.o window-clock.o window-copy.o window.o xmalloc.o xterm-keys.o osdep-unknown.o  compat/imsg.o compat/imsg-buffer.o compat/closefrom.o      compat/fgetln.o    compat/vis.o compat/unvis.o compat/strtonum.o     -lcurses -levent
tty-term.o:tty-term.c:(.rdata$.refptr.cur_term[.refptr.cur_term]+0x0): undefined reference to `cur_term'
collect2: error: ld returned 1 exit status
Makefile:686: recipe for target 'tmux.exe' failed
make: *** [tmux.exe] Error 1

Is there any way I can work around that error?

Alternatively, is there another way to get Tmux working on Cygwin?

share|improve this question
    
Is there any particular reason you need to use tmux instead of screen? screen is in the repository and works out of the box. –  nitro2k01 Feb 7 at 8:43
    
Yes, I know. I need to use tmux because it's required for the Vim-R-Plugin to work –  Enrico Feb 7 at 8:46

2 Answers 2

up vote 5 down vote accepted

This may be of interest to you: tmux has been released as a cygwin package just recently!

Please have a look at the announcement at on the Cygwin-Announce mailing list; you can now simply install tmux with the common cygwin setup-{x86|x64}.exe.

share|improve this answer

I just had exactly the same issue.

I solved it by editing tty-term.c. Search for 'cur_term' and comment out the line.

It compiled fine after that. Not sure if there are any downsides to this. Haven't seen any yet!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.