dnbert / prm

PRM Allows you to quickly build package repositories, inspired by Jordan Sissels' FPM
MIT License
250 stars 33 forks source link

Only Ruby Version >=1.9.2 Supported #39

Closed brejoc closed 8 years ago

brejoc commented 10 years ago
ERROR:  Error installing prm:
    mime-types requires Ruby version >= 1.9.2.

Seems like mime-types requires Ruby >=1.9.2. Is prm also depending on Ruby >=1.9 or could this be fixed by e.g. using an older version of mime-types, that still supports Ruby 1.8?

dnbert commented 10 years ago

This is an issue with the aws-s3 gem, which is a dependency of PRM. I know for sure that older versions of mime-type work just fine, specifically: mime-types (1.21).

Because Ruby 1.8 was EOL'd about 8 months ago, I don't think I'll be investing much into assuring that it works with 1.8 going forward. But you should be fine if you install an older version of mime-types prior to installing PRM (specifically aws-s3 dependency).

brejoc commented 10 years ago

I can fully understand your argument. Too bad that e.g. Ubuntu 12.04 (LTS) only ships with 1.9.1. At least 14.04 comes with 1.9.3.

SpikesDivZero commented 10 years ago

@brejoc: It might be worth looking into the tools to build an omnibus version of prm: https://github.com/rlangford/omnibus-prm

Unfortunately, omnibus-prm doesn't look to be available pre-built at this time.

As well, it looks like Ubuntu offers Ruby 1.9.3, via the ruby1.9.1 package: http://packages.ubuntu.com/precise/ruby1.9.3

haf commented 10 years ago

A quick fix can be to use: https://github.com/alup/puppet-rbenv