kunwar
1
Hi,
I am trying to install tmux on vm allocated to me in my company . i am very new to linux. I have the root access on it.
Can someone please provide the exact steps to get it installed.
I tried:
-
Using yum, i get the below message.
# yum install tmux
Loaded plugins: security
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
[1]+ Terminated yum install tmx
-
Copying the tmux from git.
I have copied the tmux-master to the server , but don't what to do with it.
I have heard great reviews from few developers, i want to use it but stuck now
Neo
2
cd /tmp
git clone https://github.com/tmux/tmux.git
cd tmux
sh autogen.sh
./configure && make
1 Like
kunwar
3
Thanks for the reply. I tried again and was able to install but getting this error:
# tmux
tmux: error while loading shared libraries: libevent-2.1.so.6: cannot open shared object file: No such file or directory
I installed tmux-2.9 and libevent-2.1.10-stable
The file is there , not sure why getting this error
# find . -name "libevent-2.1.so.6"
./lib/libevent-2.1.so.6
If you suggest me opening a new thread , i can do , no problem.
Appreicate your help
Neo
4
You have to do a clean configure and make after you install the dependent libs.
kunwar
5
getting this error:
# git clone GitHub - tmux/tmux: tmux source code
Initialized empty Git repository in /tmp/tmux/.git/
error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/tmux/tmux.git/info/refs
fatal: HTTP request failed
How to work around this issue?
--- Post updated at 04:01 PM ---
I did the tarbar download and followed the steps you gave and getting the below error:
[tmux-master]# ./configure && make
...
configure: error: "libevent not found"
kunwar
6
fixed the issue by creating an alias.
https://unix.stackexchange.com/questions/17907/why-cant-gcc-find-libevent-when-building-tmux-from-source/17918
Neo
7
Great to hear you got it working.
Thanks for posting back your solution.