asdf-vm / asdf-vm/asdf-ruby

rbenv install faild with whitespace in `$ASDF_DATA_DIR`

Open
#372 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
734
Forks
156
Avg merge
17h 6m
Merged PRs (30d)
1

Description

Maybe releated to: #270

```sh
$ echo $ASDF_DATA_DIR
/Users/user/Library/Application Support/asdf
```

```sh
$ asdf install ruby 3.2.2
...
-> ./configure "--prefix=$HOME/Library/Application Support/asdf/installs/ruby/3.2.2" --with-openssl-dir=/opt/homebrew/opt/openssl@3 --enable-shared --with-readline-dir=/opt/homebrew/opt/readline --with-gmp-dir=/opt/homebrew/opt/gmp
-> make -j 8

BUILD FAILED (macOS 14.1.1 on arm64 using ruby-build 20231107)

You can inspect the build directory at /var/folders/x_/63vwgt6x6q356xl90678gy7h0000gn/T/ruby-build.20231114083010.23859.uPDln8
See the full build log at /var/folders/x_/63vwgt6x6q356xl90678gy7h0000gn/T/ruby-build.20231114083010.23859.log
```

```sh
$ tail /var/folders/x_/63vwgt6x6q356xl90678gy7h0000gn/T/ruby-build.20231114083010.23859.log
...
clang: error: no such file or directory: 'Support/asdf/installs/ruby/3.2.2/lib/libruby.3.2.dylib'
make: *** [libruby.3.2.dylib] Error 1
external command failed with status 2
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure with asdf install ruby 3.2.2 while ASDF_DATA_DIR contains a space, then inspect the ruby-build build directory and full build log named in the report. Trace how the prefix reaches ./configure and make; done means the same Ruby installation completes successfully from that path.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby, shell
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.