-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fpm install fails on RHEL8 Ruby 2.5.0 due to dotenv #2048
Comments
I'm seeing the same problem as well. We have RHEL7 systems running system ruby as 2.6. These are now failing to install fpm:
Trying to pin the version of dotenv like the error suggest doesn't work. If I manually install dotenv 2.8.1 as the error suggest and try to install fpm again, it still fails:
We also have RHEL8 systems running system ruby 2.7 and this is happening on those as well:
It looks like fpm is making dotenv 3.0.0 a hard requirement for some reason:
|
fpm has a dependency on pleaserun. pleaserun is making the newest version of dotenv a hard requirement. Relevant Issue from pleaserun |
Perhaps pleaserun could be an optional dependency for fpm? |
This also an issue in amazon linux 2 as ruby is 2.6 so would be nice to have dotenv version as 2.8.1 and up. |
causing problems since 2022 as far as I can see.. |
For those interested, I've created forks of How to use:
|
@asgeirn thanks for providing a workaround! I’ll look into pleaserun’s dotenv dependency a bit more and see about removing that dependency soon. |
Ran into this as well; the behavior is strange as it almost seems like a bug in ruby gems. I can get fpm to install fairly easily on CentOS 7 (ruby 2.0, gem 2.0.14.1) with:
But on Rocky Linux 8 (ruby 2.5, gem 2.7.6.3), even if I install dotenv first, it still tries to install the latest, even if the installed dotenv meets the requirements of pleaserun:
Even with flags that I thought should explicitly tell it not to upgrade deps that already meet the requirements (though I've never had to use these in the past; that seems to be the default behavior:
|
My workaround for installing on EL 8; basically just explicitly install the dependencies of pleaserun and fpm and then install those without any deps:
|
This contains two different fixes: - For Debian, pin dotenv version to last one that supports Ruby 2.7 This is an interim fix until we can upgrade the Ruby version used for fpm in the build scripts. That is slightly complicated due to the base OS being intentionally old (to keep an older glibc base version). - For CentOS, use Ruby 3.0 to avoid problems with Ruby 2.7 and fpm jordansissel/fpm#2048 (comment)
This contains two different fixes: - For Debian, pin dotenv version to last one that supports Ruby 2.7 This is an interim fix until we can upgrade the Ruby version used for fpm in the build scripts. That is slightly complicated due to the base OS being intentionally old (to keep an older glibc base version). - For CentOS, use Ruby 3.0 to avoid problems with Ruby 2.7 and fpm jordansissel/fpm#2048 (comment)
This contains two different fixes: - For Debian, pin dotenv version to last one that supports Ruby 2.7 This is an interim fix until we can upgrade the Ruby version used for fpm in the build scripts. That is slightly complicated due to the base OS being intentionally old (to keep an older glibc base version). - For CentOS, use Ruby 3.0 to avoid problems with Ruby 2.7 and fpm jordansissel/fpm#2048 (comment)
I got the same error, and I was able to workaround it by using more recent Ubuntu version:
Also |
Another workaround for Rocky 8 (and most likely all RHEL 8 variants) is to specify a You can install source 'https://rubygems.org'
gem 'dotenv', '= 2.8.1'
gem 'fpm', '= 1.15.1' |
The text was updated successfully, but these errors were encountered: