Closed baggers27 closed 3 weeks ago
@baggers27, can you provide more information on your environment (OS, Ruby version...) and the exact error message you have ?
So I've done these commands below on a new VM image as I did manage to get it working yesterday by bashing some keys but I wanted to replicate the issue.
┌──(kali㉿kali)-[~]
└─$ ruby -v
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-linux-gnu]
┌──(kali㉿kali)-[~]
└─$ gem -v
3.4.20
┌──(kali㉿kali)-[~] └─$ uname -a Linux kali 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 GNU/Linux
┌──(kali㉿kali)-[~]
└─$ gem install bundler
Fetching bundler-2.5.10.gem
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /var/lib/gems/3.1.0 directory.
/usr/lib/ruby/vendor_ruby/rubygems/installer.rb:713:in verify_gem_home' /usr/lib/ruby/vendor_ruby/rubygems/installer.rb:903:in
pre_install_checks'
/usr/lib/ruby/vendor_ruby/rubygems/installer.rb:303:in install' /usr/lib/ruby/vendor_ruby/rubygems/resolver/specification.rb:105:in
install'
/usr/lib/ruby/vendor_ruby/rubygems/request_set.rb:195:in block in install' /usr/lib/ruby/vendor_ruby/rubygems/request_set.rb:183:in
each'
/usr/lib/ruby/vendor_ruby/rubygems/request_set.rb:183:in install' /usr/lib/ruby/vendor_ruby/rubygems/commands/install_command.rb:215:in
install_gem'
/usr/lib/ruby/vendor_ruby/rubygems/commands/install_command.rb:231:in block in install_gems' /usr/lib/ruby/vendor_ruby/rubygems/commands/install_command.rb:224:in
each'
/usr/lib/ruby/vendor_ruby/rubygems/commands/install_command.rb:224:in install_gems' /usr/lib/ruby/vendor_ruby/rubygems/commands/install_command.rb:170:in
execute'
/usr/lib/ruby/vendor_ruby/rubygems/command.rb:328:in invoke_with_build_args' /usr/lib/ruby/vendor_ruby/rubygems/command_manager.rb:253:in
invoke_command'
/usr/lib/ruby/vendor_ruby/rubygems/command_manager.rb:193:in process_args' /usr/lib/ruby/vendor_ruby/rubygems/command_manager.rb:151:in
run'
/usr/lib/ruby/vendor_ruby/rubygems/gem_runner.rb:52:in run' /usr/bin/gem:12:in
As the kali user, You don't have write permissions for the /var/lib/gems/3.1.0 directory. So I did sudo gem install bundler.
┌──(kali㉿kali)-[~] └─$ sudo gem install bundler [sudo] password for kali: Fetching bundler-2.5.10.gem Successfully installed bundler-2.5.10 Parsing documentation for bundler-2.5.10 Installing ri documentation for bundler-2.5.10 Done installing documentation for bundler after 0 seconds 1 gem installed
But the write issues then also cause problems when doing bundle install
┌──(kali㉿kali)-[~/eol/endoflife.date] └─$ bundle install Bundler 2.5.10 is running, but your lockfile was generated with 2.4.1. Installing Bundler 2.4.1 and restarting using that version. Fetching gem metadata from https://rubygems.org/. Fetching bundler 2.4.1
Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to /var/lib/gems/3.1.0/cache/bundler-2.4.1.gem
. It is likely that you need to grant write permissions for that path.
Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to /var/lib/gems/3.1.0/cache/bundler-2.4.1.gem
. It is likely that you need to grant write permissions for that path.
Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to /var/lib/gems/3.1.0/cache/bundler-2.4.1.gem
. It is likely that you need to grant write permissions for that path.
There was an error installing the locked bundler version (2.4.1), rerun with the --verbose
flag for more details. Going on using bundler 2.5.10.
Fetching gem metadata from https://rubygems.org/.........
Fetching rake 13.2.0
Retrying download gem from https://rubygems.org/ due to error (2/4): Bundler::PermissionError There was an error while trying to write to /var/lib/gems/3.1.0/cache/rake-13.2.0.gem
. It is likely that you need to grant write permissions for that path.
Retrying download gem from https://rubygems.org/ due to error (3/4): Bundler::PermissionError There was an error while trying to write to /var/lib/gems/3.1.0/cache/rake-13.2.0.gem
. It is likely that you need to grant write permissions for that path.
Retrying download gem from https://rubygems.org/ due to error (4/4): Bundler::PermissionError There was an error while trying to write to /var/lib/gems/3.1.0/cache/rake-13.2.0.gem
. It is likely that you need to grant write permissions for that path.
Fetching base64 0.2.0 Fetching bigdecimal 3.1.6 Fetching concurrent-ruby 1.2.3 Fetching connection_pool 2.4.1
Thanks @baggers27.
Mmm, don't know what to do here. Closing this issue as it was circumvented and seems to me the issue in more on the Jekyll side than the endoflife.date side.
I've tried to follow the instructions here https://github.com/endoflife-date/endoflife.date/blob/master/HACKING.md, so I can have a local version of the site and start raising pull requests. However there appears to be an issue with the bundle install step, linked to this: https://github.com/sass-contrib/sass-embedded-host-ruby/issues/176. Is anything needed to be changed on the endoflife.date side to fix this?