!! Download Download from [http://tmux.sourceforge.net]. !! Install libevent-dev {{{ $ cd /data/usr/ports/devel/libevent $ sudo make install clean }}} !! Patch Tmux If you attempt to compile tmux as is, you may get an error {{{ cmd-pipe-pane.o(.text+0x342): In function `cmd_pipe_pane_exec': : undefined reference to `closefrom' job.o(.text+0x8ff): In function `job_run': : undefined reference to `closefrom' tmux.o(.text+0x10f): In function `shell_exec': : undefined reference to `closefrom' window.o(.text+0x16ac): In function `window_pane_spawn': : undefined reference to `closefrom' *** Error code 1 }}} If so, apply the following patch {{{ diff -r d997d9105b9e configure --- a/configure Mon Mar 28 14:26:12 2011 -0700 +++ b/configure Mon Mar 28 14:28:22 2011 -0700 @@ -224,7 +224,6 @@ #define HAVE_ASPRINTF #define HAVE_BROKEN_KQUEUE #define HAVE_BZERO -#define HAVE_CLOSEFROM #define HAVE_DAEMON #define HAVE_FGETLN #define HAVE_FORKPTY @@ -245,6 +244,7 @@ cat <<EOF >>$CONFIG_MK LIBS+= -lcurses -lutil -levent SRCS+= osdep-freebsd.c \ + compat/closefrom.c \ compat/vis.c \ compat/unvis.c \ compat/imsg-buffer.c \ ~ }}} !! Build/Install Tmux {{{ $ ./configure $ make $ sudo make install }}} ---- [CategoryArchived] - [Computing | CategoryArchived.Computing] - [BSD | CategoryArchived.Computing.BSD] - [TmMx | CategoryComputing.Archived.Shell.TerminalMultiplexer]