centos-6.4 Yum EPEL

Source: Internet
Author: User
Tags metalink

The first use of CentOS, a lot of not used to record.

First install Epel, otherwise the default package is very poor: (see: http://www.rackspace.com/knowledge_center/article/ Install-epel-and-additional-repositories-on-centos-and-red-hat)

sudo yum install epel-release

When you're finished, you'll get an error with Yum:

[Email Protected]:~]yum Search Tmux

Loaded Plugins:fastestmirror, Refresh-packagekit, security

Loading mirror speeds from cached hostfile

Error:cannot retrieve Metalink for Repository:epel. Verify its path and try again

The solution is: (see: Https://community.hpcloud.com/article/centos-63-instance-giving-cannot-retrieve-metalink-repository-epel-error)

sudo sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
yum check-update

好了,可以开始装别的东西了。。

OK, immediately again encountered the error, installed Tmux Well, resolved as follows:

1, the system comes with libevent too low, to manually install 2.0: see http://superuser.com/questions/738829/ Attempting-to-install-tmux-on-centos-6-4-or-centos-6-5-fails-with-error-evbuff

wget http://iweb.dl.sourceforge.net/project/levent/libevent/libevent-2.0/libevent-2.0.22-stable.tar.gztar -xvzf libevent-2.0.22-stable.tar.gzcd libevent-2.0.22-stable./configuremakemake install

2, link error, to manually change makefile plus parameters: see: http://superuser.com/questions/829860/ Undefined-reference-to-b64-ntop-tmux-compilation-error-on-centos

Error:

.../tty.c:1067:undefined reference to ' __b64_ntop '

FIX: Open Makefiler find "LIBS = -lutil -lcurses -levent -lrt】后面加-lresov

3、运行出错,要手动对依赖的so做软链:详见同上

tmux: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory

 解决:

sudo ln -s /usr/local/lib/libevent-2.0.so.5 /lib64/

真是蛋疼。。。

 

centos-6.4 Yum EPEL

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.