Skip to content

Commit 51e60a5

Browse files
committed
add missing libyaml on macOS
1 parent fa7ecfb commit 51e60a5

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

lib/build_doctor.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ case "$OS" in
2323
else
2424
check_fail "Xcode Command Line Tools are not installed"
2525
fi
26+
27+
if brew list libyaml > /dev/null 2>&1; then
28+
check_pass "libyaml is installed"
29+
else
30+
check_fail "libyaml is not installed (required for Ruby)"
31+
fi
2632
;;
2733
ubuntu)
2834
if dpkg -s build-essential > /dev/null 2>&1; then
@@ -37,5 +43,6 @@ case "$OS" in
3743
else
3844
check_fail "base-devel is not installed"
3945
fi
46+
4047
;;
4148
esac

lib/build_setup.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@ case "$OS" in
1616
xcode-select --install 2>/dev/null || true
1717
echo " NOTE: A dialog may have opened. Complete the installation and re-run this script."
1818
fi
19+
20+
# libyaml is required for building Ruby from source
21+
if brew list libyaml > /dev/null 2>&1; then
22+
fmt_ok "libyaml already installed"
23+
else
24+
fmt_install "libyaml"
25+
brew install libyaml
26+
fi
1927
;;
2028
ubuntu)
2129
if dpkg -s build-essential > /dev/null 2>&1; then
@@ -32,5 +40,6 @@ case "$OS" in
3240
fmt_install "base-devel"
3341
sudo pacman -S --noconfirm --needed base-devel
3442
fi
43+
3544
;;
3645
esac

0 commit comments

Comments
 (0)