Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this work only on Debian? #13

Closed
smj4490 opened this issue Aug 6, 2013 · 7 comments
Closed

Does this work only on Debian? #13

smj4490 opened this issue Aug 6, 2013 · 7 comments

Comments

@smj4490
Copy link

smj4490 commented Aug 6, 2013

I'd like to use this on a work project but all of the work boxes run CentOS, would this work on CentOS or would I have to tweak the code for it to play nice with CentOS? This repo looks to be built specifically for a Debian environment unless I'm mistaken.

@ehammond
Copy link
Member

ehammond commented Aug 6, 2013

The program itself should be distro independent as long as you install the appropriate dependencies.

If you find there are changes needed, please submit a merge request, making sure it still runs on Ubuntu.

@ehammond ehammond closed this as completed Aug 6, 2013
@dansmith65
Copy link

I have this installed on Amazon Linux, which is similar to CentOS. I went through every item in the "Depends:" line here: https://github.com/alestic/ec2-expire-snapshots/blob/master/debian/control and found the package via yum list. For example, to find the yum equivalent of libfile-slurp-perl, you can run something like this: yum list *perl*slurp*

I used the following command to install dependencies for ec2-consistent-snapshot a year ago:

yum --enablerepo=epel install perl-Net-Amazon-EC2 perl-File-Slurp perl-DBI perl-DBD-MySQL perl-Net-SSLeay perl-IO-Socket-SSL perl-Time-HiRes perl-Params-Validate ca-certificates

@ehammond
Copy link
Member

ehammond commented Aug 6, 2013

dansmith65: Nice, thanks! Would you like to create and maintain the rpm? :-)

@dansmith65
Copy link

It would be great to have an rpm for this and related projects; but I don't think I'm up to the task. I have never done it before, but just read about it here: http://fedoraproject.org/wiki/How_to_create_an_RPM_package. It seems a little too involved for me.
If I ever want a side project to hack away on, I'll keep this in mind.

@FernandoMiguel
Copy link

Hi.
Even with the dependencies that @dansmith65 mentioned, I get an error:
Can't locate Date/Manip.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./ec2-expire-snapshots line 10.
BEGIN failed--compilation aborted at ./ec2-expire-snapshots line 10.

i had to install perl-DateTime-Format-ISO8601 perl-DateTime perl-Date-Manip

@gblazex
Copy link

gblazex commented Feb 25, 2016

Here is how I got it working on CentOS 7

sudo yum install -y wget git perl perl-CPAN 

# Grab everything that's available from EPEL 7
# see packages here: https://dl.fedoraproject.org/pub/epel/7/x86_64/repoview/letter_p.group.html
sudo yum install --enablerepo=epel -y perl-Date-Manip perl-DateTime perl-DateTime-TimeZone perl-DateTime-Format-ISO8601
sudo yum install --enablerepo=epel -y perl-File-Slurp perl-Net-SSLeay perl-IO-Socket-SSL perl-Time-HiRes perl-Params-Validate ca-certificates  perl-Net-Amazon-EC2 

# Net::Amazon::EC2 is the only one not available on EPEL 7, so we grab it from CPAN
# needs: Net::Amazon::EC2 -> XML::Simple -> XML::Parser -> XML::SAX::Expat -> expat-devel
sudo yum install -y expat-devel
sudo cpan App::cpanminus  # a better package manager for CPAN
sudo /usr/local/bin/cpanm Net::Amazon::EC2

Finally try ec2-expire-snapshots out (shouldn't complain about missing libraries):

cd ~
git clone https://github.com/alestic/ec2-expire-snapshots.git ec2-expire-snapshots
ec2-expire-snapshots/ec2-expire-snapshots --noaction

@gblazex
Copy link

gblazex commented Feb 25, 2016

Added wiki page:
https://github.com/alestic/ec2-expire-snapshots/wiki/Installing-on-CentOS-or-RHEL-(yum)

Also PR to mention installing on other distros in the README
#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants