{"id":13149,"date":"2020-12-19T23:17:45","date_gmt":"2020-12-19T15:17:45","guid":{"rendered":"http:\/\/blog.idc.net\/13149\/"},"modified":"2020-12-19T23:17:45","modified_gmt":"2020-12-19T15:17:45","slug":"ubuntu-16-04cuda8-0mklopencv3-2matlab-r2016bcaffe%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/13149\/","title":{"rendered":"Ubuntu 16.04+CUDA8.0+MKL+OpenCV3.2+Matlab R2016b+Caffe\u5b89\u88c5"},"content":{"rendered":"<div class=\"idc_table\">\n<p>\u7ecf\u8fc7\u65e0\u6570\u6b21\u7684\u5931\u8d25\u540e\uff0c\u7ec8\u4e8e\u5b89\u88c5\u6210\u529f\uff0c\u5b89\u88c5\u8fc7\u7a0b\u5e76\u4e0d\u662f\u5f88\u96be\uff0c\u53ea\u662f\u9047\u5230\u95ee\u9898\u65f6\u5019\u7684\u89e3\u51b3\u65b9\u5f0f\u4e0d\u5bf9\uff0c\u5bfc\u81f4\u82b1\u8d39\u4e86\u4e0d\u5c11\u65f6\u95f4\u3002\u73b0\u5c06\u8fc7\u7a0b\u6574\u7406\u5982\u4e0b\uff1a<\/p>\n<p>\u7535\u8111\u7684\u73af\u5883\uff1aUbuntu 16.04 64\u4f4d\u7cfb\u7edf(Windows7\u53cc\u7cfb\u7edf)\u3001GPU\u578b\u53f7\u4e3aGeForce GT 540M\u3002<\/p>\n<p>1\u3001\u5148\u5b89\u88c5\u76f8\u5173\u4f9d\u8d56\u9879<\/p>\n<p><span style=\"font-size: 12px\"><span style=\"color: #0000ff;line-height: 22px\">sudo<\/span><span style=\"color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"> apt-get <\/span><span style=\"color: #0000ff;text-align: justify;line-height: 22px\">install<\/span><span style=\"color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"> libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev protobuf-<\/span><span style=\"text-align: justify;line-height: 22px\">compiler<\/span><\/span><\/p>\n<p><span style=\"font-size: 12px;color: #0000ff;line-height: 22px\">sudo<\/span><span style=\"font-size: 12px;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"> apt-get <\/span><span style=\"font-size: 12px;color: #0000ff;text-align: justify;line-height: 22px\">install<\/span><span style=\"font-size: 12px;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"> --no-<\/span><span style=\"font-size: 12px;color: #0000ff;text-align: justify;line-height: 22px\">install<\/span><span style=\"font-size: 12px;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">-recommends libboost-all-<\/span><span style=\"font-size: 12px;text-align: justify;line-height: 22px\">dev<\/span><\/p>\n<p><span style=\"font-size: 12px;color: #0000ff;line-height: 22px\">sudo<\/span><span style=\"font-size: 12px;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"> apt-get <\/span><span style=\"font-size: 12px;color: #0000ff;text-align: justify;line-height: 22px\">install<\/span><span style=\"font-size: 12px;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"> libopenblas-dev liblapack-dev libatlas-base-<\/span><span style=\"font-size: 12px;text-align: justify;line-height: 22px\">dev<\/span><span style=\"font-size: 12px;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 12px;color: #0000ff;text-align: justify;line-height: 22px\">sudo<\/span><span style=\"font-size: 12px;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"> apt-get <\/span><span style=\"font-size: 12px;color: #0000ff;text-align: justify;line-height: 22px\">install<\/span><span style=\"font-size: 12px;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"> libgflags-dev libgoogle-glog-dev liblmdb-dev<\/span><\/p>\n<p><span style=\"color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"font-size: 12px\">2\u3001\u5b89\u88c5NVIDIA\u9a71\u52a8<\/span><\/span><\/p>\n<p><span style=\"font-size: 10px\">\u6700\u540e\uff0c\u6211\u76f4\u63a5\u901a\u8fc7\u7cfb\u7edf\u8bbe\u7f6e-&gt;\u8f6f\u4ef6\u548c\u66f4\u65b0-&gt;\u9644\u4ef6\u9a71\u52a8\uff0c\u5b89\u88c5\u4e86\u6700\u65b0\u7684\u4e13\u6709\u9a71\u52a8nvidia-375\u3002\u82e5\u603b\u662f\u5e94\u7528\u66f4\u6539\u5931\u8d25\uff0c\u5219\u53ef\u4ee5\u5c1d\u8bd5\u66f4\u65b0\u6e90\uff0c\u66f4\u65b0\u65b9\u5f0f\u5982\u4e0b\uff1a<\/span><\/p>\n<p><span style=\"font-size: 10px\"><span style=\"text-align: justify\">sudo vi \/etc\/apt\/sources.<\/span><span style=\"color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">list &nbsp;-&gt;\u66ff\u6362\u6e90 &nbsp;-&gt;<span style=\"font-size: 14px;color: #660066;line-height: 20px\">sudo<\/span><span style=\"font-size: 14px;color: #333333;line-height: 20px\"> apt-get update<\/span><\/span><\/span><\/p>\n<blockquote style=\"margin: 0px 0px 0px 40px;padding: 0px\">\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\"># deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]\/ xenial main restricted<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb-src http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/archive.ubuntu.com\/ubuntu xenial main restricted #Added by software-properties<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial main restricted<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb-src http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial main restricted multiverse universe #Added by software-properties<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-updates main restricted<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb-src http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-updates main restricted multiverse universe #Added by software-properties<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial universe<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-updates universe<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial multiverse<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-updates multiverse<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-backports main restricted universe multiverse<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb-src http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-backports main restricted universe multiverse #Added by software-properties<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/archive.canonical.com\/ubuntu xenial partner<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb-src http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/archive.canonical.com\/ubuntu xenial partner<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-security main restricted<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb-src http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-security main restricted multiverse universe #Added by software-properties<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-security universe<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p> <span style=\"min-height: auto !important\">deb http:<\/span><br \/>\n <span style=\"min-height: auto !important\">\/\/mirrors.aliyun.com\/ubuntu\/ xenial-security multiverse<\/span>  <\/p>\n<p>&nbsp;<\/p>\n<\/blockquote>\n<p>3\u3001CUDA8.0<\/p>\n<p style=\"text-align: justify\"><span><span style=\"text-align: justify\"><span style=\"font-size: 10px\">(<\/span><\/span><span style=\"font-size: 10px\"><span style=\"text-align: justify\">1)\u4e0b\u8f7d\uff1a<\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;line-height: 22px;background-color: #fafafc\">https:\/\/developer.nvidia.com\/cuda-downloads<\/span><br \/><\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span><span style=\"font-size: 10px\">(2)<span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u4e0b\u8f7d\u5b8c\u6210\u540e\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/span><\/span><\/span><\/p>\n<p style=\"text-align: justify\">&nbsp;<\/p>\n<pre>sudo<span style=\"color: #0000ff\">chmod<\/span><span style=\"color: #800080\">777<\/span><span style=\"color: #333333\"> cuda_8.<\/span><span style=\"color: #800080\">0<\/span><span style=\"color: #000000\">.44_linux.run\r\n<\/span>sudo<span style=\"color: #333333\">  .\/cuda_8.<\/span><span style=\"color: #800080\">0<\/span><span style=\"color: #333333\">.44_linux.run<\/span><\/pre>\n<pre><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u6ce8\u610f\uff1a\u6267\u884c\u540e\u4f1a\u6709\u4e00\u7cfb\u5217\u63d0\u793a\u8ba9\u4f60\u786e\u8ba4\uff0c\u4f46\u662f<\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"color: #ff0000\">\u6ce8\u610f\uff0c\u6709\u4e2a\u8ba9\u4f60\u9009\u62e9\u662f\u5426\u5b89\u88c5nvidia367\u9a71\u52a8\u65f6\uff0c\u4e00\u5b9a\u8981\u9009\u62e9\u5426<\/span><\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\uff1a<\/span><span style=\"line-height: 22px\"><br><\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 367.48?<\/span><span style=\"line-height: 22px\"><br><\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u56e0\u4e3a\u524d\u9762\u6211\u4eec\u5df2\u7ecf\u5b89\u88c5\u4e86\u66f4\u52a0\u65b0\u7684nvidia367\uff0c\u6240\u4ee5\u8fd9\u91cc\u4e0d\u8981\u9009\u62e9\u5b89\u88c5\u3002\u5176\u4f59\u7684\u90fd\u76f4\u63a5\u9ed8\u8ba4\u6216\u8005\u9009\u62e9\u662f\u5373\u53ef\u3002<\/span><\/pre>\n<p><span style=\"font-size: 10px\"><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;line-height: 22px;background-color: #fafafc\">(3)<\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;line-height: 22px;background-color: #fafafc\">\u73af\u5883\u53d8\u91cf\u914d\u7f6e<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u6253\u5f00~\/.bashrc\u6587\u4ef6\uff1a&nbsp;<span><span style=\"color: #0000ff\">sudo<\/span>&nbsp;gedit ~\/.bashrc<\/span>&nbsp;<br \/>\u5c06\u4ee5\u4e0b\u5185\u5bb9\u5199\u5165\u5230~\/.bashrc\u5c3e\u90e8\uff1a<\/p>\n<pre>export PATH=\/usr\/local\/cuda-<span style=\"color: #800080\">8.0<\/span><span style=\"color: #333333\">\/bin${PATH:+<\/span><span style=\"color: #000000\">:${PATH}}\r\n<\/span>export LD_LIBRARY_PATH=\/usr\/local\/cuda8.<span style=\"color: #800080\">0<\/span><span style=\"color: #333333\">\/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}<\/span><\/pre>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">(4)\u6d4b\u8bd5CUDA\u7684samples<\/p>\n<pre>cd \/usr\/local\/cuda-<span style=\"color: #800080\">8.0<\/span><span style=\"color: #333333\">\/samples\/1_Utilities\/<\/span><span style=\"color: #000000\">deviceQuery\r\n<\/span>makesudo<span style=\"color: #333333\"> .\/deviceQuery<\/span><\/pre>\n<p><span style=\"font-size: 10px\"><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u5982\u679c\u663e\u793a\u4e00\u4e9b\u5173\u4e8eGPU\u7684\u4fe1\u606f\uff0c\u5219\u8bf4\u660e\u5b89\u88c5\u6210\u529f\u3002<\/span><br \/><\/span><\/p>\n<p><span style=\"font-size: 10px\">4\u3001<span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u914d\u7f6ecuDNN<\/span><br \/><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">cuDNN\u662fGPU\u52a0\u901f\u8ba1\u7b97\u6df1\u5c42\u795e\u7ecf\u7f51\u7edc\u7684\u5e93\u3002<\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u9996\u5148\u53bb\u5b98\u7f51&nbsp;<\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">https:<span style=\"color: #008000\">\/\/<\/span><span style=\"color: #008000\">developer.nvidia.com\/rdp\/cudnn-download<\/span><\/span><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">&nbsp;\u4e0b\u8f7dcuDNN\uff0c\u9700\u8981\u6ce8\u518c\u4e00\u4e2a\u8d26\u53f7\u624d\u80fd\u4e0b\u8f7d\u3002<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u4e0b\u8f7dcuDNN5.1\u4e4b\u540e\u8fdb\u884c\u89e3\u538b\uff1a<\/p>\n<pre><span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">tar<\/span> -zxvf .\/cudnn-<span style=\"color: #800080\">8.0<\/span>-linux-x64-v6.<span style=\"color: #800080\">0<\/span>.tgz <\/pre>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u8fdb\u5165cuDNN5.1\u89e3\u538b\u4e4b\u540e\u7684include\u76ee\u5f55\uff0c\u5728\u547d\u4ee4\u884c\u8fdb\u884c\u5982\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<pre>cd cuda\/<span style=\"color: #000000\">include\r\n<\/span><span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">cp<\/span> cudnn.h \/usr\/local\/cuda\/include &nbsp;#\u590d\u5236\u5934\u6587\u4ef6<\/pre>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u518d\u5c06\u8fdb\u5165lib64\u76ee\u5f55\u4e0b\u7684\u52a8\u6001\u6587\u4ef6\u8fdb\u884c\u590d\u5236\u548c\u94fe\u63a5\uff1a<\/p>\n<pre><span style=\"color: #000000\">cd ..\r\ncd lib64\r\n<\/span><span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">cp<\/span> lib* \/usr\/local\/cuda\/lib64\/<span style=\"color: #000000\">    #\u590d\u5236\u52a8\u6001\u94fe\u63a5\u5e93\r\ncd <\/span>\/usr\/local\/cuda\/lib64\/\r\n<span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">rm<\/span> -rf libcudnn.so libcudnn.so.<span style=\"color: #800080\">6<\/span><span style=\"color: #000000\">    #\u5220\u9664\u539f\u6709\u52a8\u6001\u6587\u4ef6\r\n<\/span><span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">ln<\/span> -s libcudnn.so.<span style=\"color: #800080\">6.0<\/span>.<span style=\"color: #800080\">20<\/span> libcudnn.so.<span style=\"color: #800080\">6<\/span><span style=\"color: #000000\">  #\u751f\u6210\u8f6f\u8854\u63a5\r\n<\/span><span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">ln<\/span> -s libcudnn.so.<span style=\"color: #800080\">6<\/span> libcudnn.so      #\u751f\u6210\u8f6f\u94fe\u63a5<\/pre>\n<p style=\"text-align: justify\"><span style=\"font-size: 10px\"><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;line-height: 22px;background-color: #fafafc\">5\u3001<\/span><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;color: #5d5d5d;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\">\u5b89\u88c5<\/span><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;color: #5d5d5d;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span style=\"font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;color: #5d5d5d;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\">MKL<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span style=\"color: #5d5d5d\">\u8fd9\u91cc\u4e5f\u53ef\u4ee5\u9009\u62e9\uff08<\/span><span style=\"color: #5d5d5d\">ATLAS<\/span><span style=\"color: #5d5d5d\">\uff0c<\/span><span style=\"color: #5d5d5d\">MKL<\/span><span style=\"color: #5d5d5d\">\u6216\u8005<\/span><span style=\"color: #5d5d5d\">OpenBLAS<\/span><span style=\"color: #5d5d5d\">\uff09\uff0c\u4f9d\u8d56\u6587\u4ef6\u5b89\u88c5\u65f6\u5df2\u7ecf\u5b89\u88c5\u4e86ATLAS\uff0c\u6211\u8fd9\u91cc\u5b89\u88c5<\/span><span style=\"color: #5d5d5d\">MKL<\/span><span style=\"color: #5d5d5d\">\uff0c\u9996\u5148\u4e0b\u8f7d\u5e76\u5b89\u88c5\u82f1\u7279\u5c14<\/span><span style=\"color: #5d5d5d\">\u00ae<\/span><span style=\"color: #5d5d5d\">\u6570\u5b66\u5185\u6838\u5e93<\/span><span style=\"color: #5d5d5d\">&nbsp;Linux*<\/span><span style=\"color: #5d5d5d\">\u7248<\/span><span style=\"color: #5d5d5d\">MKL(Intel(R) Parallel Studio XE Cluster Edition for Linux 2016)<\/span><span style=\"color: #5d5d5d\">\uff0c\u4e0b\u8f7d\u94fe\u63a5\u662f\uff1a<\/span><span style=\"color: #5d5d5d\">https:\/\/software.intel.com\/en-us\/intel-education-offerings<\/span><span style=\"color: #5d5d5d\">\uff0c<\/span><span style=\"color: #5d5d5d\">\u4f7f\u7528\u5b66\u751f\u8eab\u4efd\uff08\u90ae\u4ef6<\/span><span style=\"color: #5d5d5d\">&nbsp;+&nbsp;<\/span><span style=\"color: #5d5d5d\">\u5b66\u6821\uff09\u4e0b\u8f7d<\/span><span style=\"color: #5d5d5d\">Student<\/span><span style=\"color: #5d5d5d\">\u7248\uff0c\u586b\u597d\u5404\u79cd\u4fe1\u606f\uff0c\u53ef\u4ee5\u76f4\u63a5\u4e0b\u8f7d\uff0c\u540c\u65f6\u4f1a\u7ed9\u4f60\u4e00\u4e2a\u90ae\u4ef6\u544a\u77e5\u5e8f\u5217\u53f7\u3002\u4e0b\u8f7d\u5b8c\u4e4b\u540e\uff0c\u8981\u628a\u6587\u4ef6\u89e3\u538b\u5230<\/span><span style=\"color: #5d5d5d\">home<\/span><span style=\"color: #5d5d5d\">\u6587\u4ef6\u5939<\/span><span style=\"color: #5d5d5d\">\uff0c\u6216\u8005\u5176\u4ed6\u7684<\/span><span style=\"color: #5d5d5d\">ext4<\/span><span style=\"color: #5d5d5d\">\u7684\u6587\u4ef6\u7cfb\u7edf\u4e2d\u3002<\/span><\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span style=\"color: red;text-align: justify\">\u63a5\u4e0b\u6765\u662f\u5b89\u88c5\u8fc7\u7a0b\uff0c\u5148\u6388\u6743\uff0c\u7136\u540e\u5b89\u88c5\uff1a<\/span><\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span><span style=\"color: navy\">$ tar zxvf parallel_studio_xe_2017_update3.tgz<\/span><\/span><\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span><span style=\"color: navy\">$ chmod a+x parallel_studio_xe_2016 -R<\/span><\/span><\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span><span style=\"color: navy\">$ sudo sh install_GUI.sh<\/span><\/span><\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span style=\"color: red\">PS:&nbsp;<\/span><span style=\"color: red\">\u5b89\u88c5\u7684\u65f6\u5019\uff0c\u5efa\u8bae\u4f7f\u7528<\/span><span style=\"color: red\">root<\/span><span style=\"color: red\">\u6743\u9650\u5b89\u88c5\uff0c\u8fc7\u7a0b\u4e2d\u4f1a\u8981\u6c42\u8f93\u5165<\/span><span style=\"color: red\">Linux<\/span><span style=\"color: red\">\u7684<\/span><span style=\"color: red\">root<\/span><span style=\"color: red\">\u53e3\u4ee4\u3002<\/span><\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\">&nbsp;<\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span><span style=\"color: #5d5d5d\">MKL<\/span><span style=\"color: #5d5d5d\">\u4e0e<\/span><span style=\"color: #5d5d5d\">CUDA<\/span><span style=\"color: #5d5d5d\">\u7684\u73af\u5883\u8bbe\u7f6e<\/span><\/span><\/p>\n<p style=\"margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: #5d5d5d\">(1)&nbsp;<\/span><span style=\"color: #5d5d5d\">\u65b0\u5efa<\/span><span style=\"color: #5d5d5d\">intel_mkl.conf<\/span><span style=\"color: #5d5d5d\">\uff0c<\/span><span style=\"color: #5d5d5d\">\u5e76\u7f16\u8f91<\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span><span style=\"color: navy\">$ sudo gedit \/etc\/ld.so.conf.d\/intel_mkl.conf<\/span><\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: red\">\/opt\/intel\/lib\/intel64<\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: red\">\/opt\/intel\/mkl\/lib\/intel64<\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: #5d5d5d\">(2)&nbsp;<\/span><span style=\"color: #5d5d5d\">\u65b0\u5efa<\/span><span style=\"color: #5d5d5d\">cuda.conf<\/span><span style=\"color: #5d5d5d\">\uff0c\u5e76\u7f16\u8f91<\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span><span style=\"color: navy\">$ sudo gedit \/etc\/ld.so.conf.d\/cuda.conf<\/span><\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: red\">\/usr\/local\/cuda\/lib64<\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: red\">\/lib<\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: #5d5d5d\">(3)&nbsp;<\/span><span style=\"color: #5d5d5d\">\u5b8c\u6210<\/span><span style=\"color: #5d5d5d\">lib<\/span><span style=\"color: #5d5d5d\">\u6587\u4ef6\u7684\u94fe\u63a5\u64cd\u4f5c\uff0c\u6267\u884c\uff1a<\/span><\/p>\n<p style=\"font-size: 12px;margin-bottom: 10px;font-family: \u5fae\u8f6f\u96c5\u9ed1,Verdana,sans-serif,\u5b8b\u4f53;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span><span style=\"color: navy\">$ sudo ldconfig<\/span><\/span><\/p>\n<p>6\u3001\u5b89\u88c5opencv3.2<\/p>\n<p style=\"margin-bottom: 10px;margin-top: 10px;padding-bottom: 0px;padding-top: 0px\">&nbsp;<\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\">\u4ece\u5b98\u7f51(http:\/\/opencv.org)\u4e0b\u8f7dOpencv\u3002<\/p>\n<pre><span style=\"color: #0000ff\">unzip<\/span> opencv-<span style=\"color: #800080\">3.2.0<\/span>.<span style=\"color: #0000ff\">zip<\/span>\r\n<\/pre>\n<pre>cd ~\/<span style=\"color: #000000\">opencv-3.2.0\r\n<\/span><span style=\"color: #0000ff\">mkdir<\/span><span style=\"color: #000000\"> build\r\ncd build<\/span><\/pre>\n<p style=\"color: #333333;text-align: justify;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span style=\"font-family: SimSun\">\u914d\u7f6e\uff1a<\/span><\/p>\n<p><span style=\"font-family: SimSun\"><span style=\"color: #0000ff\">sudo<\/span><span style=\"color: #333333\"> apt <\/span><span style=\"color: #0000ff\">install<\/span><span style=\"color: #000000\"> cmake<br \/><\/span><\/span><span style=\"font-family: SimSun\"><span style=\"color: #0000ff\">sudo<\/span><span style=\"color: #333333\"> cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=\/usr\/local ..<\/span><\/span><\/p>\n<p style=\"color: #333333;text-align: justify;letter-spacing: 0px;line-height: 22px;background-color: #fafafc\"><span style=\"font-family: SimSun\">\u7f16\u8bd1\uff1a<\/span><\/p>\n<p><span style=\"font-size: 10px;font-family: SimSun\"><span style=\"background-color: #ffffff\"><span style=\"color: #3333ff\">sudo<\/span> <\/span>make<\/span><\/p>\n<p><span style=\"font-size: 10px;font-family: SimSun\"><span style=\"text-align: justify\"><span style=\"color: #3333ff\">sudo<\/span><\/span><span style=\"text-align: justify\">make<\/span><span style=\"text-align: justify\">install<\/span><\/span><\/p>\n<p><span style=\"text-align: justify;line-height: 22px\"><span style=\"font-size: 10px\">7\u3001\u5b89\u88c5Matlab<\/span><\/span><\/p>\n<p><span style=\"text-align: justify\"><span style=\"font-family: SimSun\">(1)\u4e0b\u8f7dMatlab2016b\uff0c\u8bf7\u81ea\u884c\u641c\u7d22<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px\"><span style=\"font-family: SimSun\">\u4e0b\u8f7d\u540e\u7684Linux\u6587\u4ef6\u5939\u4f1a\u6709\u4e09\u4e2a\u6587\u4ef6\u5206\u522b\u662fR2016b_glnxa64_dvd1.iso\u3001R2016b_glnxa64_dvd2.iso\u548cMatlab 2016b Linux64 Crack\u6587\u4ef6\u5939\u3002Crack\u6587\u4ef6\u89e3\u538b\uff1a<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px\"><span style=\"font-family: SimSun\"><span style=\"color: #3366ff;line-height: 35px\"><span style=\"font-size: 10px\">rar x Matlab\\ 2016b\\ Linux64\\ Crack.rar<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px\"><span style=\"font-family: SimSun\">\u6ce8\u610f\uff1a\u89e3\u538b\u540eCrack\u6587\u4ef6\u5939\u4e2d\u5305\u542breadme.txt\u6587\u4ef6\uff0c\u91cc\u9762\u5305\u542b\u5bc6\u94a5\uff1blicense_standalone.lic\u6587\u4ef6\uff0c\u7528\u4e8e\u8fdb\u884c\u8f6f\u4ef6\u6fc0\u6d3b\uff1b\/bin\/glnx64\/\u6587\u4ef6\uff0c\u7528\u4e8e\u8fdb\u884cmatlab\u5b89\u88c5\u76ee\u5f55\u4e2dbin\/glnx64\/\u7684\u66ff\u6362\uff0c\u91cc\u9762\u5de5\u56db\u4e2a\u6587\u4ef6\u3002<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px\"><span style=\"font-family: SimSun\">(<\/span><span style=\"line-height: 35px\"><span style=\"font-family: SimSun\">2)<\/span>\u6302\u8f7d\uff1a\u9996\u5148\u5efa\u7acb\u6302\u8f7d\u6587\u4ef6\u5939\uff0c\u672c\u6587\u4e3a\/home\/generallc\/matlab2016\uff0c<\/span>\u7136\u540e\u7528mount<span style=\"color: #555555\"><span style=\"line-height: 35px\">\u547d\u4ee4\u8fdb\u884cR2016b_glnxa64_dvd1.iso\u6587\u4ef6\u6302\u8f7d\uff0c<\/span><\/span>\u6ce8\u610f\u5f53\u524d\u53ea\u6302\u8f7dR2016b_glnxa64_dvd1.iso\u6587\u4ef6\uff0cR2016b_glnxa64_dvd2.iso\u5148\u4e0d\u8981\u8fdb\u884c\u6302\u8f7d\u3002<\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"color: #3366ff\"><span style=\"font-family: SimSun\">\u547d\u4ee4\uff1a<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: SimSun;color: #3366ff\">mkdir&nbsp;\/home\/generallc\/matlab2016 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: SimSun;color: #3366ff\">#\u6302\u8f7d\u76ee\u5f55<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: SimSun;color: #3366ff\">sudo mount -t auto -o loop \/home\/generallc\/\u4e0b\u8f7d\/matlab\/R2016b_glnxa64_dvd1.iso \/home\/generallc\/matlab2016<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\">&nbsp;<\/p>\n<p><span style=\"font-family: SimSun\">\u6ce8\u610f\uff1a<span style=\"color: #ff0000\">\/home\/generallc\/\u4e0b\u8f7d\/matlab\/\u4e3a\u4e0b\u8f7d\u7684<\/span><span style=\"color: #ff0000\">linux\u7248\u672cMATLAB2016\u6587\u4ef6\u76ee\u5f55\uff0c\/home\/generallc\/matlab2016\u4e3a\u6307\u5b9a\u7684\u6302\u8f7d\u76ee\u5f55<\/span><span style=\"text-align: justify\"><span style=\"font-size: 10px\"><br \/><\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px\">(3)\u5b89\u88c5\uff1a\u8fdb\u5165\u5230\u6302\u8f7d\u76ee\u5f55\u4e0b,\u53ef\u4ee5\u53d1\u73b0\u6709install\u6587\u4ef6\uff0c\u7136\u540e\u8fd4\u56de\u5f53\u524d\u76ee\u5f55\u7684\u524d\u4e00\u5c42\u8fdb\u5b89\u88c5<\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"color: #ff0000\"><span style=\"font-family: SimSun\">\u547d\u4ee4\uff1a<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"color: #3366ff\"><span style=\"font-family: SimSun\">cd \/home\/generallc\/matlab2016<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: SimSun;color: #3366ff\">cd .. &nbsp;<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: SimSun;color: #3366ff\">sudo \/home\/generallc\/matlab2016\/install&nbsp; &nbsp; # \u8fdb\u884c\u5b89\u88c5\u3001\u5f39\u51fa\u5b89\u88c5\u754c\u9762\uff0c\u7c7b\u4f3cwindows\u5b89\u88c5\uff0c\u5b89\u88c5\u5bc6\u94a5\u5728Crack\u6587\u4ef6\u4e2d\u7684readme.txt\u4e2d<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"color: #ff0000\"><span style=\"font-family: SimSun\">\u6ce8\u610f\uff1a\u8bb0\u4f4fmatlab\u5b89\u88c5\u76ee\u5f55\uff0c\u672c\u6587\u4e3a\/home\/generallc\/MATLAB<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px\">(4)\u5b89\u88c5R2016b_glnxa64_dvd2.iso<\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px\">\u5f53R2016b_glnxa64_dvd1.iso\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u63d0\u793a\u62d4\u51fadvd1\uff0c\u7136\u540e\u63d2\u5165dvd2\u5bf9\u8bdd\u6846\uff0c\u6b64\u65f6\u9700\u8981\u6302\u8f7d\u7b2c\u4e8c\u4e2aiso\u6587\u4ef6(R2016b_glnxa64_dvd2.iso)\u5230\/home\/generallc\/matlab2016\u6587\u4ef6\u5939\u4e0b\uff0c\u8fd9\u91cc\u6ce8\u610f\u7684\u662f\uff0c\u7531\u4e8e\u4f60\u5f53\u65f6\u7684\u7ec8\u7aef\u7a97\u53e3\u6b63\u5728 \u8fdb\u884c\u5b89\u88c5\uff0c\u6240\u4ee5\u4f60\u662f\u65e0\u6cd5\u8fdb\u884c\u64cd\u4f5c\u7684\uff0c\u6240\u4ee5\u4f60\u9700\u8981ctrl+Alt+t\u8fdb\u884c\u91cd\u65b0\u5f00\u4e00\u4e2a\u7ec8\u7aef\u547d\u4ee4\u7a97\u53e3\u3002\u6302\u8f7d\u6210\u529f\u540e\u76f4\u63a5\u70b9\u51fbok\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">\u547d\u4ee4\uff1a<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">ctrl+Alt+t<\/span><\/span><\/span><\/span>&nbsp; &nbsp; #\u65b0\u5efa\u7a97\u53e3<br \/><\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">sudo mount -t auto -o loop \/home\/generallc\/\u4e0b\u8f7d\/matlab\/R2016b_glnxa64_dvd2.iso \/home\/generallc\/matlab2016<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px\">(5)\u6fc0\u6d3b\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8fdb\u5165\u5b89\u88c5 \u76ee\u5f55\u4e0b\uff0c\u8fd0\u884cmatlab\u6587\u4ef6\uff0c\u5f39\u51fa\u6fc0\u6d3b\u5bf9\u8bdd\u6846\uff0c\u9009\u62e9\u7528\u4e0d\u8054\u7f51\u7684\u65b9\u6cd5\u8fdb\u884c\u6fc0\u6d3b\u3002\u7136\u540e\u7528\u7528\u4e0b\u8f7d\u76ee\u5f55\u4e2d\/bin\/glnx64\/\u7684\u56db\u4e2a\u6587\u4ef6\u66ff\u6362matlab\u5b89\u88c5\u76ee\u5f55\u4e2dbin\/glnx64\/\u91cc\u9762\u6587\u4ef6\u3002<\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"color: #3366ff\"><span style=\"font-family: FangSong_GB2312\">\u547d\u4ee4\uff1alicense\u6587\u4ef6\u52a0\u8f7d<\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">cd&nbsp;<span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">\/home\/generallc\/MATLAB<\/span><\/span>\/R2016b\/bin&nbsp; #\u8fdb\u5165\u5230matlab\u5b89\u88c5\u76ee\u5f55\u4e2d<\/span><\/span><br \/><\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">.\/matlab &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #\u8fd0\u884cmatlab\uff0c\u5f39\u51fa\u6fc0\u6d3b\u5bf9\u8bdd\u6846\uff0c\u9009\u62e9\u7528\u4e0d\u8054\u7f51\u7684\u65b9\u6cd5\u8fdb\u884c\u6fc0\u6d3b\uff0c\u52a0\u8f7d<strong>license_standalone.lic<\/strong>\u6587\u4ef6<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\">\u6ce8\u610f\uff1a\u672c\u6587\u6fc0\u6d3b\u8fc7\u7a0b\u4e2d\uff0c\u51fa\u73b0\u4e86\u6743\u9650\u4e0d\u8db3\u95ee\u9898\uff0c\u91c7\u7528chomd\u547d\u4ee4\u63d0\u9ad8\u5bf9<strong>license_standalone.lic<\/strong>\u6587\u4ef6\u548c\u5b89\u88c5\u76ee\u5f55R2016b\u7684\u6743\u9650<\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">cd \/home\/generallc\/MATLAB\/R2016b\/&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #\u8fdb\u5165\u5230\u6302\u8f7d\u76ee\u5f55\u4e2d<br \/><\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\">sudo chmod 777 license_standalone.lic&nbsp; &nbsp; &nbsp; <span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\">#<span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #3366ff\">\u63d0\u9ad8\u5bf9<span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">license_standalone.lic<\/span><\/span><\/span><\/span><\/span><\/span><\/span>\u6587\u4ef6\u7684\u64cd\u4f5c\u6743\u9650<\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">cd&nbsp;<span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">\/home\/generallc\/MATLAB<\/span><\/span><\/span><\/span><\/span><\/span><\/span>&nbsp; &nbsp; #<span style=\"color: #ff0000\"><span style=\"color: #3366ff\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">\u8fdb\u5165\u5230matlab\u5b89\u88c5\u6587\u4ef6\u4e2d<\/span><\/span><\/span><\/span><br \/><\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;color: #555555;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\"><span style=\"color: #ff0000\"><span style=\"color: #3366ff\">sudo chmod -R 777 R2016b\/&nbsp; &nbsp; &nbsp; #\u63d0\u9ad8\u5bf9\u5b89\u88c5\u76ee\u5f55R2016b\u7684\u64cd\u4f5c\u6743\u9650<\/span><\/span><\/span><\/p>\n<p style=\"margin-bottom: 0px;margin-top: 0px;padding-bottom: 0px;padding-top: 0px;line-height: 35px\"><span style=\"font-family: FangSong_GB2312\">\u547d\u4ee4\uff1a\u6587\u4ef6\u66ff\u6362\uff0c\u7528\u4e0b\u8f7d\u76ee\u5f55\u4e2d\/bin\/glnx64\/\u7684\u56db\u4e2a\u6587\u4ef6\u66ff\u6362matlab\u5b89\u88c5\u76ee\u5f55\u4e2dbin\/glnx64\/\u91cc\u9762\u6587\u4ef6\u3002<br \/><span style=\"color: #3366ff\">sudo cp \/home\/generallc\/\u4e0b\u8f7d\/matlab\/R2016b\/bin\/glnxa64\/libmwservices.so \/home\/generallc\/MATLAB\/R2016b\/bin\/glnxa64<\/span><br \/><span style=\"color: #3366ff\">sudo cp \/home\/generallc\/\u4e0b\u8f7d\/matlab\/R2016b\/bin\/glnxa64\/libmwlmgrimpl.so \/home\/generallc\/MATLAB\/R2016b\/bin\/glnxa64<\/span><br \/><span style=\"color: #3366ff\">sudo cp \/home\/generallc\/\u4e0b\u8f7d\/matlab\/R2016b\/bin\/glnxa64\/libinstutil.so \/home\/generallc\/MATLAB\/R2016b\/bin\/glnxa64<\/span><br \/><span style=\"color: #3366ff\">sudo cp \/home\/generallc\/\u4e0b\u8f7d\/matlab\/R2016b\/bin\/glnxa64\/libcufft.so.7.5.18 \/home\/generallc\/MATLAB\/R2016b\/bin\/glnxa64<\/span><\/span><\/p>\n<p>8\u3001Python\u5b89\u88c5(\u6839\u636e\u9700\u8981\u5b89\u88c5\uff09<\/p>\n<p><span style=\"text-align: justify\"><span style=\"font-size: 10px\">(1)<span>anaconda\u5b89\u88c5python2.7\u65b9\u5f0f\uff0c\u4e0b\u8f7dAnaconda<\/span>\uff08<span style=\"font-size: 14px;font-family: Arial;color: #333333;line-height: 26px\">https:\/\/www.continuum.io\/downloads<\/span>\uff09<span>\uff0c\u4e0b\u8f7d\u5b8c\u6210\u4e4b\u540e\uff0ccd\u8fdb\u5165\u4e0b\u8f7d\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff1a<\/span><\/span><\/span><\/p>\n<p><span style=\"text-align: justify\"><span style=\"font-size: 10px;font-family: SimSun\"><span style=\"line-height: 18px\">$&nbsp;<span style=\"color: #3333ff\">bash<\/span>&nbsp;Anaconda2-4.0.0-Linux-x86_64.sh<\/span><br \/><\/span><\/span><\/p>\n<p><span style=\"text-align: justify\"><span style=\"font-size: 10px\">(2)\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\uff0c\u5728\uff5e\/.bashrc\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0Anaconda\u7684\u5e93\u6587\u4ef6\uff08\u6ce8\u610f\u201c=\u201d\u4e24\u8fb9\u4e0d\u8981\u6709\u7a7a\u683c\uff09\uff0c\u5177\u4f53\u5982\u4e0b\uff1a<\/span><\/span><\/p>\n<p><span style=\"text-align: justify\"><span style=\"font-size: 10px\">$&nbsp;<span style=\"color: #3333ff\">sudo<\/span>&nbsp;gedit ~\/.bashrc &nbsp; &nbsp; &nbsp;<\/span><\/span><\/p>\n<p><span style=\"font-size: 10px\"><span style=\"text-align: justify\">export&nbsp;<\/span><span style=\"text-align: justify;margin: 0px;padding: 0px\">PATH<\/span><span style=\"margin: 0px;padding: 0px\">=<\/span><span style=\"text-align: justify;margin: 0px;padding: 0px\">\"\/home\/jeson\/anaconda2\/bin:$PATH\"<\/span><span style=\"text-align: justify;margin: 0px;padding: 0px\">&nbsp; <\/span><\/span><\/p>\n<p><span style=\"font-size: 10px\"><span style=\"text-align: justify\">export&nbsp;<\/span><span style=\"text-align: justify;margin: 0px;padding: 0px\">LD_LIBRARY_PATH<\/span><span style=\"margin: 0px;padding: 0px\">=<\/span><span style=\"text-align: justify;margin: 0px;padding: 0px\">\"\/home\/jeson\/anaconda2\/lib:$LD_LIBRARY_PATH\"<\/span><span style=\"text-align: justify;margin: 0px;padding: 0px\">&nbsp;<\/span><\/span><\/p>\n<p><span style=\"text-align: justify\"><span style=\"font-size: 10px\">(3)\u91cd\u542f\u7535\u8111\u4e4b\u540e\uff0c\u5728\u547d\u4ee4\u884c\u8f93\u5165\uff1aipython,\u5c31\u53ef\u4ee5\u770b\u5230python\u7684\u7248\u672c\u3002<\/span><\/span><\/p>\n<p><span><span style=\"font-size: 10px;font-family: SimSun\"><span style=\"font-size: 10px;font-family: SimSun;text-align: justify\">9\u3001<span style=\"font-size: 10px;font-family: SimSun\">caffe\u914d\u7f6e<\/span><\/span><\/span><\/span><\/p>\n<p><span>(1)<\/span>\u4e0b\u8f7dcaffe\u6e90\u7801\uff1a<\/p>\n<p><span style=\"line-height: 18px\">git&nbsp;clone&nbsp;https:\/\/github.com\/BVLC\/caffe.git&nbsp; &nbsp; \/\/\u4ecegithub\u4e0agit&nbsp;caffe &nbsp;<\/span><\/p>\n<p>(2)\u5b89\u88c5\u914d\u7f6e\uff1a<\/p>\n<p><span style=\"line-height: 18px\">cd&nbsp;caffe&nbsp; &nbsp; \/\/\u6253\u5f00\u5230\u521a\u521agit\u4e0b\u6765\u7684caffe &nbsp;<\/span><\/p>\n<p><span style=\"line-height: 18px\">cp&nbsp;Makefile.config.example&nbsp;Makefile.config&nbsp;\/\/make\u6307\u4ee4\u53ea\u80fdmake&nbsp;Makefile.config &nbsp;<\/span><\/p>\n<p>(3)\u914d\u7f6e\u6587\u4ef6\u4fee\u6539<\/p>\n<p>&nbsp;<\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;text-align: justify;line-height: 22px;background-color: #fafafc\"><span>sudo<span style=\"font-size: 10px;color: #333333\">&nbsp;gedit Makefile.config #\u6253\u5f00Makefile.config\u6587\u4ef6<\/span><\/span><span style=\"font-size: 10px;color: #333333\">&nbsp;\u6839\u636e\u4e2a\u4eba\u60c5\u51b5\u4fee\u6539\u6587\u4ef6\uff1a<br \/>a\uff09\u82e5\u4f7f\u7528cudnn\uff0c\u5219\u5c06<br \/>#USE_CUDNN := 1<br \/>\u4fee\u6539\u6210\uff1a&nbsp;<br \/>USE_CUDNN := 1<\/span><\/p>\n<p style=\"text-align: justify;line-height: 22px;background-color: #fafafc\">&nbsp;<\/p>\n<p style=\"margin-bottom: 10px;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: #5d5d5d\">b\uff09<\/span><span style=\"color: #5d5d5d\">\u542f\u7528<\/span><span style=\"color: #5d5d5d\">Intel Parallel Studio XE 2016<\/span><\/p>\n<p style=\"margin-bottom: 10px;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: red\">BLAS := mkl<\/span><\/p>\n<p style=\"margin-bottom: 10px;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: #5d5d5d\">c)<\/span><span style=\"color: #5d5d5d\">\u914d\u7f6e\u8def\u5f84\uff0c\u5b9e\u73b0<\/span><span style=\"color: #5d5d5d\">caffe<\/span><span style=\"color: #5d5d5d\">\u5bf9<\/span><span style=\"color: #5d5d5d\">Python<\/span><span style=\"color: #5d5d5d\">\u548c<\/span><span style=\"color: #5d5d5d\">Matlab<\/span><span style=\"color: #5d5d5d\">\u63a5\u53e3\u7684\u652f\u6301<\/span><\/p>\n<p style=\"margin-bottom: 10px;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: red\">PYTHON_LIB := \/usr\/local\/lib<\/span><\/p>\n<p style=\"margin-bottom: 10px;margin-top: 10px;color: #333333;padding-bottom: 0px;padding-top: 0px;letter-spacing: 0px;line-height: 22px\"><span style=\"color: red\">MATLAB_DIR := \/usr\/local\/MATLAB\/R2016b<\/span><\/p>\n<p><span style=\"font-family: tahoma,\u5b8b\u4f53\">d\uff09\u82e5\u4f7f\u7528\u7684opencv\u7248\u672c\u662f3\u7684\uff0c\u5219\u5c06<br \/><\/span><span style=\"font-family: tahoma,\u5b8b\u4f53\">#OPENCV_VERSION := 3&nbsp;<br \/><\/span><span style=\"font-family: tahoma,\u5b8b\u4f53\">\u4fee\u6539\u4e3a\uff1a&nbsp;<br \/><\/span><span style=\"font-family: tahoma,\u5b8b\u4f53\">OPENCV_VERSION := 3<br \/><\/span><span style=\"font-family: tahoma,\u5b8b\u4f53\">e\uff09\u82e5\u8981\u4f7f\u7528python\u6765\u7f16\u5199layer\uff0c\u5219\u5c06<\/span><\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"font-size: 10px;color: #333333\">#WITH_PYTHON_LAYER :=&nbsp;<span style=\"color: #800080\">1<\/span>&nbsp;<\/span><span style=\"font-size: 10px;color: #333333\">&nbsp;<br \/>\u4fee\u6539\u4e3a\uff1a<\/span><\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"font-size: 10px;color: #333333\">WITH_PYTHON_LAYER :=&nbsp;<span style=\"color: #800080\">1<\/span><\/span><span style=\"font-size: 10px;color: #333333\">&nbsp;<br \/>f\uff09\u91cd\u8981\u7684\u4e00\u9879\uff1a\u5c06<\/span><\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"font-size: 10px\"><span style=\"color: #333333\">&nbsp;<\/span><span style=\"color: #333333\"># Whatever&nbsp;<span style=\"color: #0000ff\">else<\/span>&nbsp;you&nbsp;<span style=\"color: #0000ff\">find<\/span>&nbsp;you need goes here.<\/span><span style=\"color: #333333\">&nbsp;\u4e0b\u9762\u7684<\/span><\/span><\/p>\n<pre><span style=\"font-size: 10px\">INCLUDE_DIRS := $(PYTHON_INCLUDE) \/usr\/local\/<span style=\"color: #000000\">include <\/span>LIBRARY_DIRS := $(PYTHON_LIB) \/usr\/local\/lib \/usr\/lib <\/span><\/pre>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"font-size: 10px\">\u4fee\u6539\u4e3a\uff1a<\/span><\/p>\n<pre><span style=\"font-size: 10px\"><span style=\"color: #ff0000\">INCLUDE_DIRS := $(PYTHON_INCLUDE) \/usr\/local\/include \/usr\/include\/hdf5\/serial LIBRARY_DIRS := $(PYTHON_LIB) \/usr\/local\/lib \/usr\/lib \/usr\/lib\/x86_64-linux-gnu \/usr\/lib\/x86_64-linux-gnu\/hdf5\/serial <\/span><\/span><\/pre>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"font-size: 10px\">\u8fd9\u662f\u56e0\u4e3aUbuntu16.04\u7684\u6587\u4ef6\u5305\u542b\u4f4d\u7f6e\u53d1\u751f\u4e86\u53d8\u5316\uff0c\u5c24\u5176\u662f\u9700\u8981\u7528\u5230\u7684hdf5\u7684\u4f4d\u7f6e\uff0c\u6240\u4ee5\u9700\u8981\u66f4\u6539\u8fd9\u4e00\u8def\u5f84\u3002<\/span><\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"font-size: 10px\">h\uff09\u82e5\u5b89\u88c5Anaconda\uff0c\u5219<\/span><\/p>\n<p style=\"text-align: justify\">&nbsp;<\/p>\n<p>\u6ce8\u91ca\u6389\u539f\u6765\u7684PYTHON_INCLUDE\uff0c\u4f7f\u7528ANACONDA\u7684\u914d\u7f6e\uff0c<br \/>\u6ce8\u610f\u6587\u4ef6\u7684<\/p>\n<p>ANACONDA_HOME := $(HOME)\/anaconda<br \/>\u53ef\u80fd\u9700\u8981\u6539\u4e3a<\/p>\n<p>ANACONDA_HOME := $(HOME)\/anaconda2<\/p>\n<p>\u6839\u636e\u81ea\u5df1\u7684\u60c5\u51b5<\/p>\n<p><span style=\"font-size: 10px\">#PYTHON_INCLUDE := \/usr\/include\/python2.7 \\<br \/># \/usr\/lib\/python2.7\/dist-packages\/numpy\/core\/include<br \/># Anaconda Python distribution is quite popular. Include path:<br \/># Verify anaconda location, sometimes it's in root.<br \/>ANACONDA_HOME := $(HOME)\/anaconda2<br \/>PYTHON_INCLUDE := $(ANACONDA_HOME)\/include \\<br \/>$(ANACONDA_HOME)\/include\/python2.7 \\<br \/>$(ANACONDA_HOME)\/lib\/python2.7\/site-packages\/numpy\/core\/include \\<\/span><br \/>\n<span style=\"font-size: 10px\"><span style=\"color: #333333;line-height: 26px\">#PYTHON_LIB := \/usr\/lib<\/span><br \/><span style=\"color: #333333;line-height: 26px\">PYTHON_LIB := $(ANACONDA_HOME)\/lib<\/span><\/span><br \/>\n<span style=\"font-size: 14px;font-family: Arial\"><br \/><\/span>  <\/p>\n<p><span style=\"font-family: SimSun\"><span style=\"font-size: 10px\">(4)<\/span><\/span><span style=\"text-align: justify\">\u4fee\u6539makefile\u6587\u4ef6<\/span><\/p>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u6253\u5f00makefile\u6587\u4ef6\uff0c\u505a\u5982\u4e0b\u4fee\u6539\uff1a<br \/>\u5c06\uff1a<\/p>\n<pre>NVCCFLAGS +=-ccbin=$(CXX) -Xcompiler-fPIC $(COMMON_FLAGS)<\/pre>\n<p style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333;text-align: justify;line-height: 22px;background-color: #fafafc\">\u66ff\u6362\u4e3a\uff1a<\/p>\n<pre><span style=\"color: #ff0000\">NVCCFLAGS += -D_FORCE_INLINES -ccbin=$(CXX) -Xcompiler -fPIC $(COMMON_FLAGS)<\/span><\/pre>\n<p>(5)\u7f16\u8f91\/usr\/local\/cuda\/include\/host_config.h<span style=\"font-size: 10px\"><span style=\"font-family: SimSun\"><span style=\"font-family: tahoma,\u5b8b\u4f53;color: #333333\"><span style=\"line-height: 22px;background-color: #fafafc\"><br \/><\/span><\/span><\/span><\/span>\u5c06\u5176\u4e2d\u7684\u7b2c115\u884c\u6ce8\u91ca\u6389\uff0c\u5c06<\/p>\n<pre><span style=\"color: #0000ff\">#error<\/span><span style=\"color: #333333\">-- unsupported GNU version! gcc versions later than 4.9 are not supported!<\/span><span style=\"color: #000000\">\r\n\u6539\u4e3a\r\n<\/span><span style=\"color: #ff0000\">\/\/#error-- unsupported GNU version! gcc versions later than 4.9 are not supported!<\/span><\/pre>\n<p><span><span style=\"font-size: 10px\">(6)\u7f16\u8bd1caffe<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;line-height: 22px;background-color: #fafafc\"><span style=\"color: #ff0000\">make -j4<\/span><span style=\"color: #333333\"> #-j\u6839\u636e\u81ea\u5df1\u7535\u8111\u914d\u7f6e\u51b3\u5b9a<br \/>\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u51fa\u73b0\u5982\u4e0b\u9519\u8bef\uff1a<br \/>\u9519\u8bef\u5185\u5bb91\uff1a<br \/>\"fatal error: hdf5.h: \u6ca1\u6709\u90a3\u4e2a\u6587\u4ef6\u6216\u76ee\u5f55\"<br \/>\u89e3\u51b3\u529e\u6cd5\uff1a<br \/>step1\uff1a\u5728Makefile.config\u6587\u4ef6\u7684\u7b2c85\u884c\uff0c\u6dfb\u52a0\/usr\/include\/hdf5\/serial\/ \u5230 INCLUDE_DIRS\uff0c\u4e5f\u5c31\u662f\u628a\u4e0b\u9762\u7b2c\u4e00\u884c\u4ee3\u7801\u6539\u4e3a\u7b2c\u4e8c\u884c\u4ee3\u7801\u3002<br \/>\u5c06\uff1a<br \/>INCLUDE_DIRS := $(PYTHON_INCLUDE) \/usr\/local\/include<br \/>\u66ff\u6362\u4e3a\uff1a<br \/>INCLUDE_DIRS := $(PYTHON_INCLUDE) \/usr\/local\/include \/usr\/include\/hdf5\/serial\/<br \/>stept2\uff1a\u5728Makefile\u6587\u4ef6\u7684\u7b2c173\u884c\uff0c\u628a hdf5_hl \u548chdf5\u4fee\u6539\u4e3ahdf5_serial_hl \u548c hdf5_serial\uff0c\u4e5f\u5c31\u662f\u628a\u4e0b\u9762\u7b2c\u4e00\u884c\u4ee3\u7801\u6539\u4e3a\u7b2c\u4e8c\u884c\u4ee3\u7801\u3002<br \/>\u5c06\uff1a<br \/>LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_hl hdf5<br \/>\u6539\u4e3a\uff1a<br \/>LIBRARIES += glog gflags protobuf boost_system boost_filesystem m hdf5_serial_hl hdf5_serial<br \/>\u9519\u8bef\u5185\u5bb92\uff1a<br \/>\"libcudnn.so.5 cannot open shared object file: No such file or directory\"<br \/>\u89e3\u51b3\u529e\u6cd5\u662f\u5c06\u4e00\u4e9b\u6587\u4ef6\u590d\u5236\u5230\/usr\/local\/lib\u6587\u4ef6\u5939\u4e0b\uff1a<br \/>#\u6ce8\u610f\u81ea\u5df1CUDA\u7684\u7248\u672c\u53f7\uff01<\/span><\/p>\n<pre><span style=\"font-family: SimSun\"> <span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">cp<\/span> \/usr\/local\/cuda-<span style=\"color: #800080\">8.0<\/span>\/lib64\/libcudart.so.<span style=\"color: #800080\">8.0<\/span> \/usr\/local\/lib\/libcudart.so.<span style=\"color: #800080\">8.0<\/span> &amp;&amp; <span style=\"color: #0000ff\">sudo<\/span><span style=\"color: #000000\"> ldconfig <\/span> <span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">cp<\/span> \/usr\/local\/cuda-<span style=\"color: #800080\">8.0<\/span>\/lib64\/libcublas.so.<span style=\"color: #800080\">8.0<\/span> \/usr\/local\/lib\/libcublas.so.<span style=\"color: #800080\">8.0<\/span> &amp;&amp; <span style=\"color: #0000ff\">sudo<\/span><span style=\"color: #000000\"> ldconfig <\/span> <span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">cp<\/span> \/usr\/local\/cuda-<span style=\"color: #800080\">8.0<\/span>\/lib64\/libcurand.so.<span style=\"color: #800080\">8.0<\/span> \/usr\/local\/lib\/libcurand.so.<span style=\"color: #800080\">8.0<\/span> &amp;&amp; <span style=\"color: #0000ff\">sudo<\/span><span style=\"color: #000000\"> ldconfig <\/span> <span style=\"color: #0000ff\">sudo<\/span> <span style=\"color: #0000ff\">cp<\/span> \/usr\/local\/cuda-<span style=\"color: #800080\">8.0<\/span>\/lib64\/libcudnn.so.<span style=\"color: #800080\">5<\/span> \/usr\/local\/lib\/libcudnn.so.<span style=\"color: #800080\">5<\/span> &amp;&amp; <span style=\"color: #0000ff\">sudo<\/span> ldconfig<\/span><\/pre>\n<p><span style=\"color: #ff0000\">make test -j4<\/span><\/p>\n<p><span><span style=\"font-size: 10px;font-family: SimSun;color: #ff0000\">make runtest<\/span><\/span><\/p>\n<p><span><span style=\"font-size: 10px;font-family: SimSun\">\u82e5runtest\u62a5\u9519\uff0c\u5219\u5c1d<\/span>\u8bd5\u5728\uff5e\/.bashrc\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u8f93\u5165\u4e00\u884c<span style=\"line-height: 18px;background-color: #f8f8f8\">export&nbsp;<\/span><span style=\"color: red;margin: 0px;line-height: 18px;background-color: #f8f8f8;padding: 0px\">MKL_CBWR<\/span><span style=\"margin: 0px;line-height: 18px;background-color: #f8f8f8;padding: 0px\">=<\/span><span style=\"color: blue;margin: 0px;line-height: 18px;background-color: #f8f8f8;padding: 0px\">AUTO\uff0c\u5373<\/span><\/span>\uff1a<\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\"><span style=\"color: #3333ff\">sudo&nbsp;<\/span>gedit&nbsp;~\/.bashrc&nbsp; <\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\"><span style=\"color: #3366ff\">export&nbsp;<\/span><\/span><span style=\"font-size: 10px;color: red;margin: 0px;line-height: 18px;padding: 0px\">MKL_CBWR<\/span><span style=\"font-size: 10px;margin: 0px;line-height: 18px;padding: 0px\">=<\/span><span style=\"font-size: 10px;color: blue;margin: 0px;line-height: 18px;padding: 0px\">AUTO<\/span><span style=\"font-size: 10px;margin: 0px;line-height: 18px;padding: 0px\">&nbsp; &nbsp; &nbsp;#\u6253\u5f00\u7684\u6587\u4ef6\u672b\u5c3e\u52a0\u5165\u8be5\u884c\uff0c\u7136\u540e\u4fdd\u5b58\u9000\u51fa\u3002&nbsp; <\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\"><span style=\"background-color: #ffffff\"><span style=\"color: #3333ff\">sudo&nbsp;<\/span><\/span><\/span><span style=\"font-size: 10px;line-height: 18px\">ldconfig&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; #\u7f16\u8bd1\u7acb\u5373\u751f\u6548&nbsp;<\/span><\/p>\n<p><span><span style=\"font-size: 10px;font-family: SimSun\">\u518d\u7f16\u8bd1\uff1a<\/span><\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\">make&nbsp;clean&nbsp; <\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\">make&nbsp;-j4&nbsp; <\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\">make&nbsp;test&nbsp;-j4&nbsp; <\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\">make&nbsp;runtest &nbsp;<\/span><\/p>\n<p><span>(7)\u7f16\u8bd1pycaffe<\/span><\/p>\n<p>a\uff09\u51c6\u5907Python\u73af\u5883<\/p>\n<p><span style=\"font-size: 10px;color: #3366ff\">sudo apt-get update<\/span><\/p>\n<p><span style=\"font-size: 10px;color: #3366ff\">sudo apt-get install python-pip python-dev python-numpy<\/span><\/p>\n<p><span style=\"font-size: 10px;color: #3366ff\">sudo apt-get install gfortran<\/span><\/p>\n<p><span style=\"font-size: 10px;color: #3366ff\">sudo pip install -r ${CAFFE_ROOT}\/python\/requirements.txt &nbsp;<\/span><span style=\"font-size: 10px\"><span style=\"color: #ff0000\">#${CAFFE_ROOT}\u4e3acaffe\u6839\u8def\u5f84<\/span><\/span><\/p>\n<p><span style=\"font-size: 10px;color: #3366ff\">sudo pip install pydot<\/span><\/p>\n<p><span><span style=\"font-size: 10px;font-family: SimSun\"><span style=\"color: #362e2b;line-height: 26px\">b\uff09Anaconda\u9700\u8981\u5c06caffe\u5934\u6587\u4ef6\u8fdb\u884c\u94fe\u63a5\uff08\u4e0d\u662f<span style=\"font-size: 10px;font-family: SimSun;color: #362e2b;line-height: 26px\">A<\/span><span style=\"font-size: 10px;font-family: SimSun;color: #362e2b;line-height: 26px\">naconda\uff0c\u5219\u76f4\u63a5\u7f16\u8bd1\uff1amake <span style=\"font-size: 10px;font-family: SimSun;line-height: 18px\">pycaffe<\/span><\/span>\uff09\uff1a<\/span><br \/><\/span><\/span><\/p>\n<p><span><span style=\"font-size: 10px;font-family: SimSun\"><span style=\"line-height: 18px\">sudo&nbsp;gedit&nbsp;~\/.bashrc<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: 10px;font-family: SimSun;margin: 0px;line-height: 18px;padding: 0px\">export&nbsp;<\/span><span style=\"font-size: 10px;font-family: SimSun;color: red;margin: 0px;line-height: 18px;padding: 0px\">PYTHONPATH<\/span><span style=\"font-size: 10px;font-family: SimSun;margin: 0px;line-height: 18px;padding: 0px\">=<\/span><span style=\"font-size: 10px;font-family: SimSun;color: blue;margin: 0px;line-height: 18px;padding: 0px\">\"\/home\/jeson\/caffe\/python:$PYTHONPATH\"<\/span><\/p>\n<p><span style=\"font-size: 10px;font-family: SimSun\"><span>\u4fdd\u5b58\u540e\uff1a<\/span><\/span><\/p>\n<p><span style=\"line-height: 18px\"><span style=\"font-size: 10px;font-family: SimSun\">sudo&nbsp;ldconfig&nbsp; <\/span><\/span><\/p>\n<p><span style=\"line-height: 18px\"><span style=\"font-size: 10px;font-family: SimSun\">make&nbsp;pycaffe&nbsp; <\/span><\/span><\/p>\n<p><span style=\"line-height: 18px\"><span style=\"font-size: 10px;font-family: SimSun\">make&nbsp;distribute&nbsp; <\/span><\/span><\/p>\n<p><span style=\"line-height: 18px\"><span style=\"font-size: 10px;font-family: SimSun\">ipython&nbsp; <\/span><\/span><\/p>\n<p><span style=\"line-height: 18px\"><span style=\"font-size: 10px;font-family: SimSun\">import&nbsp;caffe<\/span><\/span><\/p>\n<p><span>(8)\u7f16\u8bd1matcaffe<\/span><span style=\"color: #ff0000\">\uff08gcc\u53ef\u4ee5\u4e0d\u7528\u964d\u7ea7\uff0c\u6211\u964d\u7ea7\u540ecaffe\u4e00\u76f4\u7f16\u8bd1\u4e0d\u901a\u8fc7\uff0c\u540e\u9762\u624d\u53d1\u73b0\u4e0d\u964d\u7ea7\u4e5f\u53ef\u4ee5\u7528\uff09<\/span><\/p>\n<p><span><span style=\"color: #362e2b;line-height: 26px\"><span style=\"font-size: 10px;font-family: SimSun\">\u5c06matlab\u4e0b\u7684libstdc++.so.6 \u66f4\u6539\u540d\u79f0\u4e3alibstd++.so.6_back(\u8ba9matlab\u627e\u4e0d\u5230\u8fd9\u4e2a)\uff0c\u8fd9\u6837\u5728\u6267\u884cmatlab\u7f16\u8bd1\u7684\u65f6\u5019\u4f1a\u81ea\u52a8\u53bb\u627e\u7cfb\u7edf\u7528\u7684\u5e93\u3002\u5177\u4f53\u4e3a\uff1a<\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\"><span style=\"font-family: SimSun\">cd&nbsp;\/usr\/local\/MATLAB\/R2014a\/sys\/os\/glnxa64\/&nbsp; <\/span><\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\"><span style=\"font-family: SimSun\">sudo&nbsp;mv&nbsp;libstdc++.so.6&nbsp;libstdc++.so.6_back&nbsp; <\/span><\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\"><span style=\"font-family: SimSun\">sudo&nbsp;ldconfig&nbsp; <\/span><\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\"><span style=\"font-family: SimSun\">cd&nbsp;~\/caffe\/&nbsp; <\/span><\/span><\/p>\n<p><span style=\"line-height: 18px\"><span style=\"font-family: SimSun\"><span style=\"font-size: 10px\">make&nbsp;matcaffe&nbsp; <span style=\"color: #555555;line-height: 35px\">&nbsp;<\/span><span style=\"line-height: 35px\">(\u4f1a\u6709\u8b66\u544agcc\u7248\u672c\u4e0d\u652f\u6301\uff0c\u53ef\u5ffd\u7565\uff0c\u540e\u9762\u4f1a\u63d0\u793aMex\u6210\u529f)<\/span><\/span><\/span><\/span><\/p>\n<p><span style=\"font-size: 10px;line-height: 18px\"><span style=\"font-family: SimSun\">make&nbsp;mattest &nbsp;<\/span><\/span><\/p>\n<p><span><span style=\"font-size: 10px;font-family: SimSun\">\u82e5\u7f16\u8bd1\u6210\u529f\uff0c\u4f46\u5728\u8c03\u7528matcaffe\u63a5\u53e3\u65f6\u62a5\u9519\uff0c\u5982\uff1a<\/span><\/span><\/p>\n<p><span style=\"font-family: SimSun\">\"libcudart.so.8.0 cannot open shared object file: No such file or directory\"<\/span><\/p>\n<p><span style=\"font-family: SimSun\">\u5219\uff0c\u53ef\u7528ldd\u547d\u4ee4\u67e5\u770bcaffe_.mexa64\u6240\u4f9d\u8d56\u7684\u6240\u6709\u5e93\u6587\u4ef6\u8def\u5f84\uff0c\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\uff1a<\/span><\/p>\n<p><span><span style=\"line-height: 26px;background-color: #ffffff\"><span style=\"font-size: 10px;font-family: SimSun;color: #ff0000\">ldd external\/caffe\/matlab\/caffe_faster_rcnn\/+caffe\/caffe_.mexa64<\/span><\/span><\/span><\/p>\n<p><span><span style=\"line-height: 26px;background-color: #ffffff\"><span style=\"font-size: 10px;font-family: SimSun\">\u5728Matlab\u547d\u4ee4\u7a97\u53e3\u4e2d\u6267\u884c\uff1a<\/span><\/span><\/span><\/p>\n<p><span><span style=\"line-height: 26px\"><span style=\"font-size: 10px;font-family: SimSun;color: #ff0000\"><span><span style=\"font-size: 12px;line-height: 26px;background-color: #ffffff\">!ldd external\/caffe\/matlab\/caffe_faster_rcnn\/+caffe\/caffe_.mexa64<\/span><\/span><\/span><\/span><\/span><\/p>\n<p><span style=\"font-family: SimSun\">\u53ef\u5c06\u8fd9\u4e9b\u6587\u4ef6\u94fe\u63a5\u6216\u590d\u5236\u5230Matlab\u8def\u5f84\u4e0b\uff08\/usr\/local\/MATLAB\/R2016b\/bin\/glnxa64\/)\u6216\u7cfb\u7edf\u8def\u5f84\/usr\/local\/lib\uff08Matlab\u4e2d\u76f8\u5e94\u7684\u6587\u4ef6\u5e94\u5220\u9664\u6216\u91cd\u547d\u540d\uff09\u3002<\/span><\/p>\n<p><span style=\"font-family: SimSun\">\u6211\u89e3\u51b3\u7684\u65b9\u6848\u662f\u94fe\u63a5\u5230Matlab\u8def\u5f84\u4e0b\uff1a<\/span><\/p>\n<p><span><span style=\"font-family: SimSun\">sudo ln -sf \/usr\/local\/cuda-8.0\/lib64\/libcudart.so.8.0 \/usr\/local\/MATLAB\/R2016b\/bin\/glnxa64\/libcudart.so.8.0<\/span><\/span><\/p>\n<p><span style=\"font-family: SimSun\">sudo ln -sf \/usr\/local\/cuda-8.0\/lib64\/libcublas.so.8.0 \/usr\/local\/MATLAB\/R2016b\/bin\/glnxa64\/<span style=\"font-family: SimSun\">libcublas<\/span>.so.8.0<\/span><\/p>\n<p><span style=\"font-family: SimSun\"><span><span style=\"font-family: SimSun\">sudo ln -sf \/usr\/local\/cuda-8.0\/lib64\/libcurand.so.8.0 \/usr\/local\/MATLAB\/R2016b\/bin\/glnxa64\/<\/span><span style=\"font-family: SimSun\"><span style=\"font-family: SimSun\">libcurand<\/span><\/span><span style=\"font-family: SimSun\">.so.8.0<\/span><\/span><\/span><\/p>\n<p>\u81f3\u6b64\uff0ccaffe\u914d\u7f6e\u548c\u7f16\u8bd1\u7ed3\u675f\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ecf\u8fc7\u65e0\u6570\u6b21\u7684\u5931\u8d25\u540e\uff0c\u7ec8\u4e8e\u5b89\u88c5\u6210\u529f\uff0c\u5b89\u88c5\u8fc7\u7a0b\u5e76\u4e0d\u662f\u5f88\u96be\uff0c\u53ea\u662f\u9047\u5230\u95ee\u9898\u65f6\u5019\u7684\u89e3\u51b3\u65b9\u5f0f\u4e0d\u5bf9\uff0c\u5bfc\u81f4\u82b1\u8d39\u4e86\u4e0d\u5c11\u65f6\u95f4\u3002\u73b0\u5c06 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-13149","post","type-post","status-publish","format-standard","hentry","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/13149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=13149"}],"version-history":[{"count":0,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/13149\/revisions"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=13149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=13149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=13149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}