HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/rvm/patches/ree/lib64.patch
--- a/installer.rb
+++ b/installer.rb
@@ -281,7 +281,7 @@
 		if install_autoconf_package('source', 'Ruby Enterprise Edition')
 			# Some installed files may have wrong permissions
 			# (not world-readable). So we fix this.
-			if sh("chmod -R g+r,o+r,o-w #{@destdir}#{@prefix}/lib/ruby")
+			if sh("chmod -R g+r,o+r,o-w #{@destdir}#{@prefix}/lib*/ruby")
 				if @using_system_allocator_library &&
 				   !sh("install source/libsystem_allocator.dylib #{@destdir}#{@prefix}/lib/")
 					return false
@@ -307,7 +307,7 @@
 	def install_rubygems
 		# We might be installing into a fakeroot, so add the fakeroot's library
 		# search paths to RUBYLIB so that gem installation will work.
-		basedir = "#{@destdir}#{@prefix}/lib/ruby"
+		basedir = "#{@destdir}#{@prefix}/lib*/ruby"
 		libdir = "#{basedir}/1.8"
 		archname = File.basename(File.dirname(Dir["#{libdir}/*/thread.#{PlatformInfo::RUBYLIBEXT}"].first))
 		extlibdir = "#{libdir}/#{archname}"