forked from smartdu/srs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
2,285 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
ccache是samba组织提供的加速编译过程的工具, | ||
使用虚拟机编译可以考虑用这个工具,让编译过程飞快。 | ||
|
||
链接: | ||
http://ccache.samba.org/ | ||
http://samba.org/ftp/ccache/ccache-3.1.9.tar.xz | ||
http://ccache.samba.org/manual.html | ||
|
||
安装方法: | ||
bash build_ccache.sh | ||
注意:要求以sudoer执行,要修改文件。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# check exists. | ||
if [[ -d graphviz-2.18 ]]; then | ||
echo "graphviz is ok"; | ||
exit 0; | ||
fi | ||
|
||
# check sudoer. | ||
sudo echo "ok" > /dev/null 2>&1; | ||
ret=$?; if [[ 0 -ne ${ret} ]]; then echo "you must be sudoer"; exit 1; fi | ||
|
||
tar xf graphviz-2.18.tar.gz | ||
cd graphviz-2.18 && ./configure && make && sudo make install | ||
ret=$?; if [[ $ret -ne 0 ]]; then echo "build gprof2dot failed."; exit $ret; fi | ||
|
||
echo "we test in Centos6.0, it's ok" |
Oops, something went wrong.