Can not build ruby with lib-readline on Mac
jameschenjav opened this issue · comments
I have used rbenv
for years on Mac. This week I started to use frum
and immediately noticed an issue. The readline
does not work properly.
For example, previously if I enter pry
again, I can still use arrow-key to get my history. Now I press "up", nothing happens. I should be able to search in history with ctrl + r
if lib-readline had been compiled with ruby properly:
❯ pry
[1] pry(main)>
(reverse-i-search)`':
Both rbenv
and frum
have been installed via homebrew.
❯ rbenv install 3.1.1
Downloading openssl-1.1.1n.tar.gz...
-> https://dqw8nmjcqpjn7.cloudfront.net/40dceb51a4f6a5275bde0e6bf20ef4b91bfc32ed57c0552e2e8e15463372b17a
Installing openssl-1.1.1n...
Installed openssl-1.1.1n to /Users/james/.rbenv/versions/3.1.1
Downloading ruby-3.1.1.tar.gz...
-> https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.1.tar.gz
Installing ruby-3.1.1...
ruby-build: using readline from homebrew
Installed ruby-3.1.1 to /Users/james/.rbenv/versions/3.1.1
with frum
❯ frum install 3.1.1
==> Downloading https://cache.ruby-lang.org/pub/ruby/3.1/ruby-3.1.1.tar.xz
==> Extracting ruby-3.1.1.tar.xz
==> Building Ruby 3.1.1
My Mac is Intel version
❯ sw_vers
ProductName: macOS
ProductVersion: 12.2.1
BuildVersion: 21D62
❯ sh -c "$(echo $SHELL) --version"
fish, version 3.4.1