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

Installation Error / Ruby 3.0.2 #108

Open
egvibar opened this issue Nov 13, 2021 · 13 comments
Open

Installation Error / Ruby 3.0.2 #108

egvibar opened this issue Nov 13, 2021 · 13 comments

Comments

@egvibar
Copy link

egvibar commented Nov 13, 2021

Frum gave me the following error when I attempted to install Ruby 3.0.2:

==> Downloading https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.2.tar.xz
==> Extracting ruby-3.0.2.tar.xz
==> Building Ruby 3.0.2
error: No such file or directory (os error 2)

Could you please tell me how to solve this? Thanks for your patience.

@TaKO8Ki
Copy link
Owner

TaKO8Ki commented Nov 13, 2021

Thank you for your question. What is your environment?

@egvibar
Copy link
Author

egvibar commented Nov 13, 2021

Thank you for your response. I have just installed Rust on my MacOS High Sierra (10.13.2). I am still fairly new to this but I have heard a lot of good things about Frum.

@TaKO8Ki
Copy link
Owner

TaKO8Ki commented Nov 14, 2021

You can't install the other versions similarly?

@egvibar
Copy link
Author

egvibar commented Nov 14, 2021

Thank you for responding. I did make an attempt to install version 2.2.6. I received the following error message:==> Downloading https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.6.tar.xz
==> Extracting ruby-2.2.6.tar.xz
error: Can't extract the file: IoError(Custom { kind: Other, error: TarError { desc: "failed to unpack /Users/userName/.frum/versions/.downloads/.tmp6brXY6/ruby-2.2.6/test/rexml/data/much_ado.xml", io: Custom { kind: Other, error: TarError { desc: "failed to unpack ruby-2.2.6/test/rexml/data/much_ado.xml into /Users/userName/.frum/versions/.downloads/.tmp6brXY6/ruby-2.2.6/test/rexml/data/much_ado.xml", io: Custom { kind: Other, error: reqwest::Error { kind: Decode, source: TimedOut } } } } } })

I also attempted to install version 3.0.1. I received the following message:

==> Downloading https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.1.tar.xz
error: error sending request for url (https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.1.tar.xz): operation timed out

I have no idea what I missed. But I am still trying. Thank you for your patience.

@egvibar
Copy link
Author

egvibar commented Nov 16, 2021

I was able to install Ruby 2.7.4 manually by compiling its source code. Frum could not install this on my system; it only gave me this message: error: No such file or directory (os error 2). Also, I could not manually compile version 3.0.2.

@TaKO8Ki
Copy link
Owner

TaKO8Ki commented Nov 17, 2021

Hmm. That is weird. Did you try removing $HOME/.frum and then installing 3.0.2 already?

@TaKO8Ki
Copy link
Owner

TaKO8Ki commented Nov 17, 2021

If it doesn't work, could you try removing $HOME/.frum/aliases/default?

@egvibar
Copy link
Author

egvibar commented Nov 18, 2021

I haven't tried removing $HOME/.frum and installing 3.0.2 yet. But the "aliases" folder in $HOME/.frum/aliases/default is empty and does not contain the "default" folder you indicated.

@egvibar
Copy link
Author

egvibar commented Nov 18, 2021

.frum contains 2 folders and both are empty: "aliases", "verisons".

@egvibar
Copy link
Author

egvibar commented Nov 18, 2021

will frum be able to fulfill all the dependencies of every Ruby version it installs?

@TaKO8Ki
Copy link
Owner

TaKO8Ki commented Nov 18, 2021

.frum contains 2 folders and both are empty: "aliases", "verisons".

frum uses symlinks to switch Ruby versions, so aliases and default are always empty. If they have symlinks to not found directories, frum causes errors.

@TaKO8Ki
Copy link
Owner

TaKO8Ki commented Nov 18, 2021

will frum be able to fulfill all the dependencies of every Ruby version it installs?

Yes.

@gssdromen
Copy link

@egvibar some issue here, after some time to read source code, maybe the problem is your did not install openssl with homebrew, if you did not --with-openssl-dir when you install ruby with frum install command, frum will try to find openssl with brew command

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

3 participants