码迷,mamicode.com
首页 > Web开发 > 详细

Centos7下安装部署MXNET

时间:2016-11-25 20:50:27      阅读:1144      评论:0      收藏:0      [点我收藏+]

标签:bash   参考   his   uid   exp   otl   lease   from   gcc   

Centos下安装MXNET(类似于Amazon Linux下安装MXNET),参考官方文档http://mxnet.io/get_started/setup.html#prerequisites,

安装步骤如下:

######################################################################
# This script installs MXNet for Python along with all required dependencies on a Amazon Linux Machine.
######################################################################
set -e
# CMake is required for installing dependencies.
sudo yum install -y cmake

# Set appropriate library path env variables
echo export PATH=/usr/local/bin:$PATH >> ~/.profile
echo export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH >> ~/.profile
echo export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH >> ~/.profile
echo . ~/.profile >> ~/.bashrc
source ~/.profile

# Install gcc-4.8/make and other development tools on Amazon Linux
# Reference: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/compile-software.html
# Install Python, Numpy, Scipy and set up tools.
sudo yum groupinstall -y "Development Tools"
sudo yum install -y python27 python27-setuptools python27-tools
sudo yum install -y python27-numpy python27-scipy python27-nose python27-matplotlib

# Install OpenBLAS at /usr/local/openblas
git clone https://github.com/xianyi/OpenBLAS
cd OpenBLAS
make FC=gfortran -j $(($(nproc) + 1))
sudo make PREFIX=/usr/local install
cd ..

# Install OpenCV at /usr/local/opencv
git clone https://github.com/opencv/opencv
cd opencv
mkdir -p build
cd build
cmake -D BUILD_opencv_gpu=OFF -D WITH_EIGEN=ON -D WITH_TBB=ON -D WITH_CUDA=OFF -D WITH_1394=OFF -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
sudo make PREFIX=/usr/local install

# Export env variables for pkg config
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH

这里安装opencv需要注意的地方:

1、如果停在了下载ippicv的地方,可以自行下载ippicv_linux_20151201.tgz(链接:http://www.linuxfromscratch.org/blfs/view/7.9/general/opencv.html),

然后将刚才下载的ippicv文件直接拷贝进入opencv源码的下面这个目录:3rdparty/ippicv/downloads/linux-808b791a6eac9ed78d32a7666804320e

 

Centos7下安装部署MXNET

标签:bash   参考   his   uid   exp   otl   lease   from   gcc   

原文地址:http://www.cnblogs.com/payton/p/6102744.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!