-
-
Notifications
You must be signed in to change notification settings - Fork 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
requirements_debian_libs_install libssl1.0-dev 2.3.8 on Ubuntu 19.04 #4680
Comments
@otavioschwanck - i'm getting the same error. doesn't look like libssl1.0-dev is included in the repositories for 19.04. I wound up adding in the security repository for cosmic based on the recommendation here => https://packages.ubuntu.com/cosmic/amd64/libssl1.0.0/download and was able to install my ruby-2.3.X. |
I can update deps if you tell me how to install old version of that deop on a newer ubuntu? |
I believe it's
|
This would be implementing openssl > 1.0, and old versions of ruby need the 1.0 |
Oh, right, i was not aware of that. As far as i can see there is currently no |
@grhansen I installed libssl that you linked to, but I am still getting the same error. Did you do something else to be able to install an old Ruby? |
@choallin - after I added the repository to my sources, I reloaded with
|
rvm install 2.2.0 --autolibs=disable solved to me |
Note that |
@samhanes-fs indeed, that was the case for me as well; i had to move away from |
I did the same as @grhansen suggested. I was installing ruby 2.3 and that required libssl1.0-dev. I am using Ubuntu 19.04. So I opened my Before adding I was getting |
|
Later versions of Ubuntu have no I fixed this for most of my Ubuntu 19.10 situations via:
and
Although I'm now hitting issues where the mysql2 gem is broken (postgres projects work fine). |
I am hitting the same issues as you do currently,i am looking into this issue as well but hitting a dead end,if you reach any progress please notify me with what to do if you can ? |
I was getting the same error on Ubuntu 18.04. |
I have the same issue in Debian Stretch for Ruby 2.0.0: For who has not find repositories, maybe this have some utility, since when I use Ubuntu package .deb and your dependencies worked fine. As I am in a Debian host I look for packages 'libssl1.0-dev' at: On Ubuntu it needs to look for some official Repository or PPA to install it or try install . deb packages if was not found. As a comment above said, just the ruby being installed doesn't means that you will not face another problems, in the end is the SSL lib and everything you build with minimal critical security will be broken. |
mark |
this worked great on ubuntu 20.04 |
Thank you, the problem has been solved |
I just built |
Hi, adding some inputs on this issue: The problem is that rvm always wants to install libssl1.0-dev on Ubuntu for old rubies (<= 2.3), but there is a conflict with the mysql2 gem (and other libs that may use libssl-dev on Ubuntu 18+). That one needs libmysqlclient-dev installed, which requires libssl-dev to run. When you do the installation, it removes automatically the libssl1.0-dev package. According to this thread: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1861304 - regarding mysql, it seems that libssl1.0-dev is an older version of libssl than the one shipped in the libssl-dev package. Indeed, you can see here: https://packages.ubuntu.com/fr/bionic/libmysqlclient-dev that libssl-dev is at version 1.1 (and requiring libssl-1.1), but libssl1.0-dev: https://packages.ubuntu.com/fr/bionic/libdevel/libssl1.0-dev is requiring libssl-1.0. So, rvm should rather install libssl-dev as this lib is more recent (and still maintained) rather than installing libssl1.0-dev which is removed in recent Ubuntu versions. [EDIT] Actually - it seems that rvm is requiring libssl1.0-dev or libssl-dev depending on the ruby version to install: rvm/scripts/functions/requirements/ubuntu Line 21 in 5fc0f10
This is a bit troublesome as by removing libssl-dev, it removes all its dependencies (like libmysqlclient-dev)... so, best solution is to update the ruby version used in projects to use latest libssl-dev version ^^'... I have no problems installing old ruby versions, and then re-installing libmysqlclient-dev with libssl-dev (which removes libssl1.0-dev). Everything is running fine... So I guess, libssl1.0-dev is only required to build old ruby versions but not to run them? Anyway, this requirement part should be updated for Ubuntu 19+ where libssl1.0-dev no longer exists by default. But I don't know what we should do... add the ppa? Warn people that old rubies can't be installed by rvm on Ubuntu 19+? |
@Kulgar Like you said, old rubies wants the old |
@raelgc : there is also a pb with other libs that would require libssl-dev on Ubuntu 18- (like libmysqlclient)... Wouldn"t it be possible to package libssl1.0-dev with rvm to install old ruby versions instead of installing that lib system-wide? Maybe that's too complicated... But, clearly, forcing the installation of libssl1.0-dev (system-wide) is already causing pbs with other libs that require libssl-dev... And... I can't think of any good way to solve that pb... |
for Debian "buster", run steps as root:
|
I absolutely love you |
Just confirming to you: This is indeed happening on Ubuntu 20.04 |
@jgomo3: If you're using the Ubuntu dedicated package, the related PPA has the old openssl library and it'll install automatically when required.
|
This didn't work for me, I'm still getting the same error "Error running 'requirements_debian_libs_install libncurses5-dev libssl-dev', |
Has this issue been resolved yet? It was a sad day of futile search for a solution. |
This is what works for me https://stackoverflow.com/a/60325120/19120958 |
@SeemabMehmood would you be keen on providing a PR? |
I did not work for me, sudo apt update gave me error.
|
Hi, has anyone been able to solve it with Ubuntu 22.04? sudo apt-cache policy libssl1.0-dev
libssl1.0-dev:
Instalados: (ninguno)
Candidato: (ninguno)
Tabla de versión: |
Warning, new version of rvm available '1.29.7', you are using older version '1.29.7-next'.
You can disable this warning with: echo rvm_autoupdate_flag=0 >> ~/.rvmrc
You can enable auto-update with: echo rvm_autoupdate_flag=2 >> ~/.rvmrc
Searching for binary rubies, this might take some time.
No binary rubies available for: ubuntu/19.04/x86_64/ruby-2.3.8.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for ubuntu.
Installing requirements for ubuntu.
Updating system - please wait
Installing required packages: libssl1.0-dev - please wait
Error running 'requirements_debian_libs_install libssl1.0-dev',
please read /home/otavio/.rvm/log/1556163658_ruby-2.3.8/package_install_libssl1.0-dev.log
Requirements installation failed with status: 100.
EDIT:
Managed to installling libssl1.0-dev
The text was updated successfully, but these errors were encountered: