Repository: incubator-singa Updated Branches: refs/heads/master 7d39f8813 -> 8bf975cbc
SINGA-22 redress Q&A3 and add -fPIC option when installing gflags Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/07596d93 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/07596d93 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/07596d93 Branch: refs/heads/master Commit: 07596d93aef1a555ee4e9bd1e0c81a533faaf294 Parents: 2bbed5f Author: xiezl <[email protected]> Authored: Tue Jun 23 15:00:53 2015 +0800 Committer: xiezl <[email protected]> Committed: Tue Jun 23 15:00:53 2015 +0800 ---------------------------------------------------------------------- README.md | 10 ++++++++-- thirdparty/install.sh | 4 ++-- 2 files changed, 10 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/07596d93/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index d96a94c..d712a94 100644 --- a/README.md +++ b/README.md @@ -101,6 +101,7 @@ After the execution, czmq will be installed in /usr/local while zeromq is instal ### FAQ Q1:While compiling Singa and installing glog on max OS X, I get fatal error "'ext/slist' file not found" + A1:You may install glog individually and try command : $ make CFLAGS='-stdlib=libstdc++' CXXFLAGS='stdlib=libstdc++' @@ -108,6 +109,7 @@ A1:You may install glog individually and try command : Q2:While compiling Singa, I get error "SSE2 instruction set not enabled" + A2:You can try following command: $ make CFLAGS='-msse2' CXXFLAGS='-msse2' @@ -115,7 +117,11 @@ A2:You can try following command: Q3:I get error "./configure --> cannot find blas_segmm() function" even I run "install.sh OpenBLAS". -A3:Since OpenBLAS library is installed in /opt folder by default or /other/folder by your preference, you may edit your environment settings. For example, you can add its default installation directories to LD_LIBRARY_PATH, just run: - $ export $LD_LIBRARY_PATH=/opt +A3:Since OpenBLAS library is installed in /opt folder by default or /other/folder by your preference, you may edit your environment settings. For example, you can add its default installation directories to LIBRARY_PATH, just run: + + $ export LDFLAGS=-L/opt + +Or as an alternative option, you can also edit LIBRARY_PATH to figure it out. + # http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/07596d93/thirdparty/install.sh ---------------------------------------------------------------------- diff --git a/thirdparty/install.sh b/thirdparty/install.sh index 2d70059..52a74bc 100755 --- a/thirdparty/install.sh +++ b/thirdparty/install.sh @@ -97,12 +97,12 @@ function install_gflags() if [ $# == 1 ] then echo "install gflags in $1" - cmake .. -DCMAKE_INSTALL_PREFIX=$1; + cmake .. -DCMAKE_INSTALL_PREFIX=$1 -DCMAKE_CXX_FLAGS=-fPIC; make && make install; elif [ $# == 0 ] then echo "install gflags in default path"; - cmake ..; + cmake .. -DCMAKE_CXX_FLAGS=-fPIC; make && sudo make install; else echo "gflags is done";
