Skip to content

Commit f35aee4

Browse files
committed
install gcc on OS machines to resolve dependencies on openmp thatis needed by lightgbm native code.
1 parent eb9cefb commit f35aee4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
set -e
44

5+
if [ "$(uname)" == "Darwin" ]; then
6+
#Mac OS X platform
7+
yes | /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
8+
brew install gcc
9+
fi
10+
511
SOURCE="${BASH_SOURCE[0]}"
612
while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symlink
713
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"

0 commit comments

Comments
 (0)