CentOS 6安装部署轻量级批量运维工具Omnitty
CentOS 6安装部署轻量级运维工具Omnitty的过程,本文基于CentOS 6 64bit.
1, 安装
Omnitty的官网介绍了安装方法,因此这里从Omnitty的官网复制过来的。
$ yum install gcc gcc-c++ make ncurses ncurses-devel
$ sudo apt install gcc g++ make ncurses-bin ncurses-dev
#In order to run Omnitty, you will need to download and install libROTE first.
#Then you can install Omnitty.
$ tar -zxf /path/to/rote-X.Y.Z.tar.gz
$ cd rote-X.Y.Z
$ ./configure
$ make
$ su -c "make install"
$ cd ..
$ tar -zxf /path/to/omnitty-X.Y.Z.tar.gz
$ cd omnitty-X.Y.Z
$ ./configure
$ make # 可能会遇到错误, 参考下方的处理方法.
$ su -c "make install"
然后,你就可以运行omnitty了.
可能会遇到的错误1:
make时提示/usr/lib64/libncurses.so.5: error adding symbols: DSO missing from command line
解决方法(参考文档):
$ vim Makefile # 在下方添加-lncurses -ltinfo
...
omnitty: $(objects)
$(CC) $(CFLAGS) -o omnitty $(objects) $(LDFLAGS) $(LIBS) -lncurses -ltinfo
...
Read More