_rvm_log_dotted:23: permission denied:

Mac OS rvm install ruby faild, and I get the message:

Error running ' CFLAGS=-O3 -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include -I/usr/local/opt/libyaml/include -I/usr/local/opt/libksba/include -I/usr/local/opt/readline/include -I/usr/local/opt/zlib/include -I/usr/local/opt/openssl@1.1/include LDFLAGS=-L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/zlib/lib -L/usr/local/opt/openssl@1.1/lib ./configure --prefix=/Users/tiny/.rvm/rubies/ruby-3.0.0 --disable-install-doc --enable-shared', please read /Users/tiny/.rvm/log/1608892720_ruby-3.0.0/configure.log There has been an error while running configure. Halting the installation.

When I $cat /Users/tiny/.rvm/log/1608892720_ruby-3.0.0/configure.log

I get this:

_rvm_log_dotted:23: permission denied:

When I try $rvm install ruby-3.0.0 --with-openssl-dir=`brew --prefix openssl`, this problem is resolved.

发表于 2020.12.25


M • 2023-01-09 18:07

Save my life, thanks a lot

schaffer • 2022-03-02 14:42

rvm install 3.0.0 --with-gcc=clang