File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;;
4148esac
Original file line number Diff line number Diff 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 ;;
3645esac
You can’t perform that action at this time.
0 commit comments