* add back train method but mark as deprecated * add back train method but mark as deprecated * fix scalastyle error * fix scalastyle error * static glibc glibc++ * update to build with glib 2.12 * remove unsupported flags * update version number * remove properties * remove unnecessary command * update poms
22 lines
515 B
Bash
Executable File
22 lines
515 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
export JAVA_HOME=/usr/lib/jvm/java-1.8.0
|
|
export MAVEN_OPTS="-Xmx3000m"
|
|
export CMAKE_CXX_COMPILER=/opt/rh/devtoolset-2/root/usr/bin/gcc
|
|
export CXX=/opt/rh/devtoolset-2/root/usr/bin/g++
|
|
export CC=/opt/rh/devtoolset-2/root/usr/bin/gcc
|
|
|
|
export PATH=$CXX:$CC:/opt/rh/python27/root/usr/bin/python:$PATH
|
|
|
|
scl enable devtoolset-2 bash
|
|
scl enable python27 bash
|
|
|
|
rm /usr/bin/python
|
|
ln -s /opt/rh/python27/root/usr/bin/python /usr/bin/python
|
|
|
|
# build xgboost
|
|
cd /xgboost/jvm-packages;mvn package
|
|
|