I am currently unable to run rvm install through Ubuntu and I have an idea as to why, but have no idea how to fix it.
Here's what's happening
~$ rvm install 2.6.1
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
mkdir: cannot create directory ‘/usr/share/rvm/log/1609714241_ruby-2.6.1’: Permission denied
tee: /usr/share/rvm/log/1609714241_ruby-2.6.1/update_system.log: No such file or directory
Updating system....
Error running 'requirements_debian_update_system ruby-2.6.1',
please read /usr/share/rvm/log/1609714241_ruby-2.6.1/update_system.log
Requirements installation failed with status: 1.
Any help would be very much appreciated.
I ended up changing my ability to edit the directory
/log/
and I am now being shown There was an error(23). Failed download There has been an error fetching the ruby interpreter. Halting the installation.
when I attempt to install
I found that I needed to add my Ubuntu user to rvm group using rvm group add rvm "$USER"
Issue resolved
Related
Error running '__rvm_make -j2',
please read /usr/share/rvm/log/1657548775_ruby-2.5.5/make.log
There has been an error while running make. Halting the installation.
After struggling a lot. This worked for me
rvm pkg install openssl
rvm remove x.x.x
rvm install x.x.x -C --with-openssl-dir=$HOME/.rvm/usr
Foreword: I encountered this problem while trying to install rvm in WSL2
Onto to the meat now.
You may encounter newer versions of this error marked by a different end switch. I mean, instead of the last switch being strictly -j2, yours might be -j3, j4, j5, or other subsequent ones. Therefore proceed to read below for a possible solution.
Shortly, I suggest two commands to resolve this error. Please do not run the installation suggestion that may appear immediately after running the first command. Instead, just proceed to run the second command.
On pasting the second command, replace <version> portion with the appropriate ruby version you would like to install. In my case, I wanted to install ruby version 2.7.4, and therefore, I set it as ruby-2.7.4
rvm pkg install openssl
rvm install ruby-<version> --with-openssl-dir=/usr/share/rvm/usr
However, if the above fix fails to remedy the ruby installation problem, you can ensure that rvm is added to the user group by running the command below:
rvm group add rvm $USER
After running the command above, close the Ubuntu app and reopen it. Then proceed to run the command below:
rvm fix-permissions
Now try reinstalling ruby with the command rvm install 2.7.4 --default. If problems persist, run sudo usermod -a -G rvm $USER and attempt a reinstall. If that fails, only further research gives you a chance.
PS:
Please note that I was making this installation in Windows Subsystem for Linux (WSL2) Ubuntu Therefore, if this problem persists in another system like macOS, it may mean that this solution is perhaps not platform agnostic, and thus, the specific solution for such requires further digging.
I ran into a similar problem - Error running "__rvm_make -j4". The bug was the lack of support for OpenSSL 3.0 when used on Ubuntu 22.04. You can try using "rbenv" instead of "rvm", it worked for me.
Had a similar error "Error running '__rvm_make -j10'" and solved with --with-out-ext=fiddle flag.
rvm install "ruby-2.7.0" --with-out-ext=fiddle
This on M1
you can try this command to solve the issue
sudo apt-get install curl git g++ make libssl-dev libreadline-dev zlib1g-dev
Whenever I try to install Ruby 2.6.1 on Ubuntu this error keeps coming up. Does anyone have any solutions?
$ rvm install 2.6.1
Searching for binary rubies, this might take some time.
Found remote file https://rvm_io.global.ssl.fastly.net/binaries/ubuntu/20.04/x86_64/ruby-2.6.1.tar.bz2
Checking requirements for ubuntu.
Installing requirements for ubuntu.
mkdir: cannot create directory ‘/usr/share/rvm/log/1624238816_ruby-2.6.1’: Permission denied
tee: /usr/share/rvm/log/1624238816_ruby-2.6.1/update_system.log: No such file or directory
Updating systemddsmith password required for 'apt-get --quiet --yes update': ..-
..
Error running 'requirements_debian_update_system ruby-2.6.1',
please read /usr/share/rvm/log/1624238816_ruby-2.6.1/update_system.log
Requirements installation failed with status: 1.`
I'm trying to put a google sign in for my ios app and to do that I need CocoaPods. But when installing it like there own website on terminal I get this:
$ sudo gem install cocoapods
[Password: (*Put in my admin password for my macbook*)
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
This is being done on a Macbook Air running High Sierra 10.13.2
(Don't know if you need that info but I've never done anything with cocoapods or ruby before)
I also tried following this link and followed the awnser and installed RVM, or at least I think I did. I just put this in:
ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
Well I tried installing CocoaPods after that but still got the same thing.
You might try the following command
sudo gem install cocoapods -n /usr/local/bin
The problem is that gem install was trying to use /usr/bin for installing the binaries, which shouldn't be touched for the System Integrity Protection. Since:
A centerpiece is the protection of system-owned files and directories
against modifications by processes without a specific "entitlement",
even when executed by the root user or a user with root privileges
(sudo)
Sudo is without any power in this situation.
Hence the solution uses -n, from gem help install it says:
-n, --bindir DIR Directory where binary files are located
in this way you will be able to move the binaries in a more comfortable destination: /usr/local/bin which stands for programs that a normal user may run.
I'm trying to reinstall Homebrew and the installation is successfull up to when I try typing 'brew doctor' to which I receive this message:
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 26: /usr/local/Library/brew.rb: Undefined error: 0
I definitely think this may be something wrong with one of my .profile files, but I can't seem to figure out what to do. I've manually compiled Ruby because I accidentally screwed that installation up, and I've installed RVM.
In RVM, running 'rvm install ruby' gives me the same error as above, along with this one below:
ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
Requirements installation failed with status: 1.
I've tried to run
rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
to delete Homebrew but I get the same error as listed above.
I've spent a few hours trying to solve this mess but I'm getting no where and just cluttering my system with broken installations. Any advice on how to finally solve this would be greatly appreciated.
I ran into the same problem. The program /usr/local/Library/brew.rb calls an old version of the ruby interpreter, that no longer exists due to a recent MacOS X upgrade:
#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
Change that to:
#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
Then run:
$ brew update
You will have to clean up a bunch of git related problems in /usr/local/Library, basically you need to make a commit of your changed version of brew.rb, but there may be other things git will complain about. I was able to salvage my brew installation in this manner.
I am trying to install ruby 1.9.2 or latest to work with cupertino gems
In order to install ruby, i have install 3rd party tool(RVM)
I am able to install rvm, However to install ruby, i am getting macport errors
I tried to resolve it using existing stackoverflow question, but it does not aid me clearly in resolving the issue
Steps which i followed are:
Installed rvm from get.rvm.io
activated rvm using below command:
$ source ~/.rvm/scripts/rvm
Now i am trying to install ruby 1.9.2 using following command:
$ rvm install 1.9.2
it fails with following error
*BLR4AUTOMATION2:ruby-1.9.2-p320 admin$ rvm install 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.8/x86_64/ruby-2.0.0-p247.
Continuing with compilation.
Please read 'rvm help mount' to get more information on binary rubies. Installing requirements for osx, might require sudo password.
Password:
DEBUG: Copying /Users/admin/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
DEBUG: MacPorts sources location: /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
---> Updating MacPorts base sources using rsync rsync: failed to connect to rsync.macports.org:
Connection refused (61) rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-42/rsync/clientserver.c(105) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 10
DEBUG: Error synchronizing MacPorts sources: command execution failed
while executing "macports::selfupdate [array get global_options]
base_updated"
Error: /opt/local/bin/port: port selfupdate failed:
Error synchronizing MacPorts sources: command execution failed
Requirements installation failed with status: 1.*
I have tried to follow several thread related to it, but it did not work for me:
http://samkhan13.wordpress.com/2012/06/15/make-macports-work-behind-proxy
synching macports using tarballs and other sources
Tried to uninstall macports from my mac and reinstall, but that also make no use
Reinstall latest xcode with cli
I have uploaded the console logs at below location:
https://docs.google.com/document/d/1l_OFbE5d0tliKdnU_gF6Bil75Ek7wJb58h7Da_JTXdQ/edit?usp=sharing
At the same time i am able to install the ruby in my other mac machines but not on build machine
Can any one please help me in setting up ruby(1.9.2 or higher) using rvm or with other ways.
Thanks in advance!!
kishan
Check if the internet ports are available in your router, I tried in college (tons of ports closed) and got the same problem, try again in my house with less locked ports and worked just fine.
make sure you can run
sudo /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/base.tar /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
when you find proper flags (proxy!) then you can make sure macports will use them with rsync_options from macports.conf