Skip to content

Instantly share code, notes, and snippets.

@y-lan
Last active August 29, 2015 14:21
Show Gist options
  • Save y-lan/7417380e8d51f424adc3 to your computer and use it in GitHub Desktop.
Save y-lan/7417380e8d51f424adc3 to your computer and use it in GitHub Desktop.
sudo pip-2.7 install numpy==1.9.1 scipy==0.15.1 scikit-learn==0.16.1
sudo yum install -y libcurl libcurl-devel
git clone https://github.com/dmlc/xgboost.git
cd xgboost
git clone https://github.com/dmlc/dmlc-core
cd dmlc-core
cp make/config.mk ./
vim config.mk
# 22c22
# < USE_HDFS = 1
# ---
# > USE_HDFS = 0
# 25c25
# < USE_S3 = 1
# ---
# > USE_S3 = 0
cp /home/hadoop/.versions/2.4.0-amzn-?/include/hdfs.h include/
make cxx11=1 -j 4
cd ..
make cxx11=1 dmlc=./dmlc-core -j 4
cd wrapper/
sudo python27 setup.py install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment