libssh2 version problem for rex rpm and Amazon AMI Linux

124 views
Skip to first unread message

Hiroaki Nakamura

unread,
Jan 31, 2013, 8:47:06 AM1/31/13
to rex-...@googlegroups.com
Hi all.

I had a problem to install rex on Amazon AMI Linux using the rex
CentOS 6 repository,
described at http://rexify.org/get/index.html

rpm --import http://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO.CENTOS6

cat >/etc/yum.repos.d/rex.repo <<EOF
[rex]
name=Fedora \$releasever - \$basearch - Rex Repository
baseurl=http://rex.linux-files.org/CentOS/\$releasever/rex/\$basearch/
enabled=1
EOF

yum install rex

First, I had to change \$releasever to 6, since it becomes 'latest' on
Amazon AMI Linux.

I retried with this fix, but got a dependency error.

--> Processing Dependency: libssh2 >= 1.2.8 for package: rex-0.38.0-1.x86_64
--> Finished Dependency Resolution
Error: Package: 2:perl-Net-SSH2-0.45-2.x86_64 (rex)
Requires: libssh2 >= 1.4.2
Installed: libssh2-1.2.2-11.8.amzn1.x86_64 (installed)
libssh2 = 1.2.2-11.8.amzn1

I found we can use the epel repository on Amazon AMI Linux.
http://aws.amazon.com/amazon-linux-ami/faqs/#epel

And epel has perl-Net-SSH2-0.45, which depends on libssh2 <= 1.2.2-11.
http://rpmfind.net//linux/RPM/epel/6/x86_64/perl-Net-SSH2-0.45-2.el6.x86_64.html

So could you change the rex rpm to depend on the epel perl-Net-SSH2 instead of
the perl-Net-SSH in the rex repository?

Thanks

--
)Hiroaki Nakamura) hnak...@gmail.com

Jan

unread,
Jan 31, 2013, 9:14:24 AM1/31/13
to rex-...@googlegroups.com
Hi,

could you please post the AMI ID and Zone you've used for this? So i can test it and build new rpms.

Thanks,

Jan

Hiroaki Nakamura

unread,
Jan 31, 2013, 9:27:20 PM1/31/13
to rex-...@googlegroups.com
Hi, Jan.

AMI: amzn-ami-pv-2012.09.0.x86_64-ebs (ami-4e6cd34f)
Zone: ap-northeast-1a

Thanks for your help.

2013/1/31 Jan <jan.g...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "Rex Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rex-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

--
)Hiroaki Nakamura) hnak...@gmail.com

Jan

unread,
Feb 7, 2013, 4:24:57 PM2/7/13
to rex-...@googlegroups.com
Hi,

the problem here is the priority plugin in yum.

If you add this line to your rex.repo file than it works:

priority=5


HTH

Jan

Hiroaki Nakamura

unread,
Feb 9, 2013, 5:31:02 PM2/9/13
to rex-...@googlegroups.com
Hi,

Thanks for you investigation.

Could you add an entry for Amazon AMI Linux at
http://rexify.org/get/index.html

Thanks

2013/2/8 Jan <jan.g...@gmail.com>:
Reply all
Reply to author
Forward
0 new messages