tmux 编译安装过程
本文是在龙芯上进行 tmux 编译,其中涉及的工具可能是平台相关的.
按照 tmux 文档进行编译
git clone https://github.com/tmux/tmux.git
cd tmux
sh autogen.sh
./configure && make
出错,错误为
configure: error: "libevent not found"
查阅相关 issue ./configure: libevent not found #1084,得知需要安装依赖 libevent-dev
sudo rpm -ivh http://repo.superred.com.cn/altarch/7.7.1910/os/mips64el/Packages/libevent-devel-2.0.21-4.lns7.mips64el.rpm
继续执行 configure, 发现依赖
sudo rpm -ivh http://repo.superred.com.cn/altarch/7.7.1910/os/mips64el/Packages/ncurses-base-5.9-14.20130511.lns7.noarch.rpm
sudo rpm -ivh http://repo.superred.com.cn/altarch/7.7.1910/os/mips64el/Packages/ncurses-libs-5.9-14.20130511.lns7.mips64el.rpm
sudo rpm -ivh http://repo.superred.com.cn/altarch/7.7.1910/os/mips64el/Packages/ncurses-devel-5.9-14.20130511.lns7.mips64el.rpm
进入 make 步骤,报错
./etc/ylwrap:行177: yacc: 未找到命令
make: *** [cmd-parse.c] 错误 127
安装依赖
sudo rpm -ivh http://repo.superred.com.cn/altarch/7.7.1910/os/mips64el/Packages/bison-3.0.4-2.lns7.mips64el.rpm
sudo rpm -ivh http://repo.superred.com.cn/altarch/7.7.1910/os/mips64el/Packages/bison-devel-3.0.4-2.lns7.mips64el.rpm
sudo rpm -ivh http://repo.superred.com.cn/altarch/7.7.1910/os/mips64el/Packages/flex-2.5.37-6.lns7.mips64el.rpm
sudo rpm -ivh http://repo.superred.com.cn/altarch/7.7.1910/os/mips64el/Packages/flex-devel-2.5.37-6.lns7.mips64el.rpm
重新运行 ./configure && make
,仅输出警告,继续运行 sudo make install
,安装成功
leoninew 原创,转载请注明来自博客园