5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

今更ながらtd-agent-1.1.20をインストールする

Last updated at Posted at 2015-04-20

事情により古いバージョンのtd-agentを入れたかったのだけどやや面倒だったのでメモ。

2015/04/20現在のtreasuredataレポジトリには2系しか無い?

[vagrant@vagrant-centos65 ~]$ sudo yum --showduplicate list td-agent --enablerepo=treasuredata
Failed to set locale, defaulting to C
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
 * base: ftp.tsukuba.wide.ad.jp
 * epel: ftp.riken.jp
 * extras: ftp.tsukuba.wide.ad.jp
 * updates: ftp.tsukuba.wide.ad.jp
Available Packages
td-agent.x86_64    2.0.0-0.el6         treasuredata
td-agent.x86_64    2.0.1-0.el6         treasuredata
td-agent.x86_64    2.0.2-0.el6         treasuredata
td-agent.x86_64    2.0.3-0.el6         treasuredata
td-agent.x86_64    2.0.4-0.el6         treasuredata
td-agent.x86_64    2.1.0-0             treasuredata
td-agent.x86_64    2.1.1-0             treasuredata
td-agent.x86_64    2.1.2-0             treasuredata
td-agent.x86_64    2.1.3-0             treasuredata
td-agent.x86_64    2.1.4-0             treasuredata
td-agent.x86_64    2.1.5-0             treasuredata
td-agent.x86_64    2.1.5-1             treasuredata
td-agent.x86_64    2.2.0-0             treasuredata

1系はyumでInstallできなそうなのでrpmから入れようと思いきや

td-agent(Fluentd)をバージョン指定でインストールする - Qiita http://qiita.com/saicologic/items/affbb4799b4a696d490f

ここを参考に手動でインストール

[vagrant@vagrant-centos65 ~]$ sudo rpm -ivh http://packages.treasuredata.com.s3.amazonaws.com/redhat/x86_64/td-agent-1.1.20-0.x86_64.rpm
Retrieving http://packages.treasuredata.com.s3.amazonaws.com/redhat/x86_64/td-agent-1.1.20-0.x86_64.rpm
error: Failed dependencies:
	libcrypto.so.6()(64bit) is needed by td-agent-1.1.20-0.x86_64
	libexslt.so.0()(64bit) is needed by td-agent-1.1.20-0.x86_64
	libreadline.so.5()(64bit) is needed by td-agent-1.1.20-0.x86_64
	libssl.so.6()(64bit) is needed by td-agent-1.1.20-0.x86_64
	libtermcap.so.2()(64bit) is needed by td-agent-1.1.20-0.x86_64
	libxslt is needed by td-agent-1.1.20-0.x86_64
	libxslt.so.1()(64bit) is needed by td-agent-1.1.20-0.x86_64
	libyaml-1024.so.4()(64bit) is needed by td-agent-1.1.20-0.x86_64
	td-libyaml is needed by td-agent-1.1.20-0.x86_64

としたのだけど、td-libyamlというのが無くてインストールできなかった。

td-libyamlのRPM作成

そこで

treasure-data/td-libyaml https://github.com/treasure-data/td-libyaml

こちらから

git clone https://github.com/treasure-data/td-libyaml.git
cd td-libyaml/
sudo ./make-rpm.sh

これでtd-libyamlのRPMが作成される

td-agent-1.1.20のRPMのインストール

sudo yum localinstall rpmbuild/RPMS/x86_64/td-libyaml-0.1.4-1.el6.x86_64.rpm
sudo yum install libyaml
sudo yum localinstall td-agent-1.1.20-0.x86_64.rpm --enablerepo=treasuredata

これでインストールが通る。

[vagrant@vagrant-centos65 ~]$ sudo service td-agent start
Starting td-agent:                                         [  OK  ]
[vagrant@vagrant-centos65 ~]$ rpm -qa | grep td-agent
td-agent-1.1.20-0.x86_64
5
4
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?