源码路径过长带来的编译失败
Created by: guru4elephant
cmake -DCMAKE_INSTALL_PREFIX=./output/ -DCMAKE_BUILD_TYPE=Release -DWITH_PYTHON=ON -DWITH_MKL=OFF -DWITH_GPU=OFF -DWITH_FLUID_ONLY=ON -DPYTHON_INCLUDE_DIR=$PYTHONROOT/include/python2.7/ -DPYTHON_LIBRARY=$PYTHONROOT/lib/libpython2.7.so -DPYTHON_EXECUTABLE=$PYTHONROOT/bin/python2.7 -DWITH_GRPC=ON -DWITH_BRPC=OFF ..
打开WITH_DISTRIBUTE和WITH_GRPC,关闭WITH_BRPCS
如果源码路径很长,会触发 ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied make[3]: execvp: /bin/sh: Argument list too long
把源码路径换到离根目录更近的位置,例如/home/users下,可以编译通过。
此处对用户开发体验不够友好,即使路径过长触发第三方软件错误,需要有个提示。