Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
8cd0fc3d
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
8cd0fc3d
编写于
6月 19, 2018
作者:
C
Ciju John
提交者:
GitHub
6月 19, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'release/1.1' into tests-sys-info-2
上级
c7eee1d7
ad1d2eea
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
59 addition
and
25 deletion
+59
-25
scripts/eosio_build_fedora.sh
scripts/eosio_build_fedora.sh
+59
-25
未找到文件。
scripts/eosio_build_fedora.sh
浏览文件 @
8cd0fc3d
...
...
@@ -246,54 +246,88 @@
fi
printf
"
\\
n
\\
tChecking MongoDB C++ driver installation.
\\
n"
if
[
!
-e
"/usr/local/lib/libmongocxx-static.a"
]
;
then
printf
"
\\
n
\\
tInstalling MongoDB C & C++ drivers.
\\
n"
MONGO_INSTALL
=
true
if
[
-e
"/usr/local/lib/libmongocxx-static.a"
]
;
then
MONGO_INSTALL
=
false
if
!
version
=
$(
grep
"Version:"
/usr/local/lib/pkgconfig/libmongocxx-static.pc |
tr
-s
' '
|
awk
'{print $2}'
)
then
printf
"
\\
tUnable to determine mongodb-cxx-driver version.
\\
n"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
maj
=
$(
echo
"
${
version
}
"
|
cut
-d
'.'
-f1
)
min
=
$(
echo
"
${
version
}
"
|
cut
-d
'.'
-f2
)
if
[
"
${
maj
}
"
-gt
3
]
;
then
MONGO_INSTALL
=
true
elif
[
"
${
maj
}
"
-eq
3
]
&&
[
"
${
min
}
"
-lt
3
]
;
then
MONGO_INSTALL
=
true
fi
fi
if
[
$MONGO_INSTALL
==
"true"
]
;
then
if
!
cd
"
${
TEMP_DIR
}
"
then
printf
"
\\
tUnable to enter directory %s.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
STATUS
=
$(
curl
-LO
-w
'%{http_code}'
--connect-timeout
30 https://github.com/mongodb/mongo-c-driver/releases/download/1.9.3/mongo-c-driver-1.9.3.tar.gz
)
STATUS
=
$(
curl
-LO
-w
'%{http_code}'
--connect-timeout
30 https://github.com/mongodb/mongo-c-driver/releases/download/1.10.2/mongo-c-driver-1.10.2.tar.gz
)
if
[
"
${
STATUS
}
"
-ne
200
]
;
then
rm
-f
"
${
TEMP_DIR
}
/mongo-c-driver-1.9.3.tar.gz"
2>/dev/null
if
!
rm
-f
"
${
TEMP_DIR
}
/mongo-c-driver-1.10.2.tar.gz"
then
printf
"
\\
tUnable to remove file %s/mongo-c-driver-1.10.2.tar.gz.
\\
n"
"
${
TEMP_DIR
}
"
fi
printf
"
\\
tUnable to download MongoDB C driver at this time.
\\
n"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
tar
xf
"
${
TEMP_DIR
}
/mongo-c-driver-1.9.3.tar.gz"
if
!
tar
xf
mongo-c-driver-1.10.2.tar.gz
then
printf
"
\\
tUnable to unarchive file %s/mongo-c-driver-1.
9.3
.tar.gz.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tUnable to unarchive file %s/mongo-c-driver-1.
10.2
.tar.gz.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
rm
-f
"
${
TEMP_DIR
}
/mongo-c-driver-1.
9.3
.tar.gz"
if
!
rm
-f
"
${
TEMP_DIR
}
/mongo-c-driver-1.
10.2
.tar.gz"
then
printf
"
\\
tUnable to remove file
%s/mongo-c-driver-1.9.3.tar.gz.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tUnable to remove file
mongo-c-driver-1.10.2.tar.gz.
\\
n
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
cd
"
${
TEMP_DIR
}
/mongo-c-driver-1.9.3"
if
!
cd
"
${
TEMP_DIR
}
"
/mongo-c-driver-1.10.2
then
printf
"
\\
tUnable to
enter directory %s/mongo-c-driver-1.9.3
.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tUnable to
cd into directory %s/mongo-c-driver-1.10.2
.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
./configure
--enable-static
--with-libbson
=
bundled
--enable-ssl
=
openssl
--disable-automatic-init-and-cleanup
--prefix
=
/usr/local
if
!
mkdir
cmake-build
then
printf
"
\\
t
Configuring MongoDB C driver has exited with the errors above.
\\
n
"
printf
"
\\
t
Unable to create directory %s/mongo-c-driver-1.10.2/cmake-build.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
make
-j
"
${
JOBS
}
"
if
!
cd
cmake-build
then
printf
"
\\
tMakecompiling MongoDB C driver has exited with the above error.
\\
n"
printf
"
\\
tUnable to enter directory %s/mongo-c-driver-1.10.2/cmake-build.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
cmake
-DCMAKE_BUILD_TYPE
=
Release
-DCMAKE_INSTALL_PREFIX
=
/usr/local
-DENABLE_BSON
=
ON
\
-DENABLE_SSL
=
OPENSSL
-DENABLE_AUTOMATIC_INIT_AND_CLEANUP
=
OFF
-DENABLE_STATIC
=
ON ..
then
printf
"
\\
tConfiguring MongoDB C driver has encountered the errors above.
\\
n"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
make
-j
"
${
CPU_CORE
}
"
then
printf
"
\\
tError compiling MongoDB C driver.
\\
n"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
sudo
make
install
then
printf
"
\\
t
Installing MongoDB C driver has exited with the above erro
r.
\\
nMake sure you have sudo privileges.
\\
n"
printf
"
\\
t
Error installing MongoDB C drive
r.
\\
nMake sure you have sudo privileges.
\\
n"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
...
...
@@ -303,13 +337,13 @@
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
rm
-rf
"
${
TEMP_DIR
}
/mongo-c-driver-1.
9.3
"
if
!
rm
-rf
"
${
TEMP_DIR
}
/mongo-c-driver-1.
10.2
"
then
printf
"
\\
tUnable to remove directory %s/mongo-c-driver-1.
9.3
.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tUnable to remove directory %s/mongo-c-driver-1.
10.2
.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
git clone https://github.com/mongodb/mongo-cxx-driver.git
--branch
releases/v3.
2
--depth
1
if
!
git clone https://github.com/mongodb/mongo-cxx-driver.git
--branch
releases/v3.
3
--depth
1
then
printf
"
\\
tUnable to clone MongoDB C++ driver at this time.
\\
n"
printf
"
\\
tExiting now.
\\
n
\\
n"
...
...
@@ -327,9 +361,9 @@
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
sudo
make
-j
"
${
JOBS
}
"
if
!
sudo
make
-j
"
${
CPU_CORE
}
"
then
printf
"
\\
t
Making MongoDB C++ driver has exited with the above errors
.
\\
n"
printf
"
\\
t
Error compiling MongoDB C++ driver
.
\\
n"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
...
...
@@ -339,21 +373,21 @@
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
cd
"
${
CWD
}
"
if
!
cd
"
${
TEMP_DIR
}
"
then
printf
"
\\
tUnable to enter directory %s.
\\
n"
"
${
CWD
}
"
printf
"
\\
tUnable to enter directory %s.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
if
!
sudo rm
-rf
"
${
TEMP_DIR
}
/mongo-cxx-driver"
then
printf
"
\\
tUnable to remove directory %s/mongo-cxx-driver.
\\
n"
"
${
TEMP_DIR
}
"
printf
"
\\
tUnable to remove directory %s/mongo-cxx-driver.
\\
n"
"
${
TEMP_DIR
}
"
"
${
TEMP_DIR
}
"
printf
"
\\
tExiting now.
\\
n
\\
n"
exit
1
;
fi
printf
"
\\
n
\\
tMongo C++ driver successfully installed @ /usr/local/lib.
\\
n
\\
n"
printf
"
\\
tMongo C++ driver installed at /usr/local/lib/libmongocxx-static.a.
\\
n"
else
printf
"
\\
tMongo C++ driver found
/usr/local/lib
.
\\
n"
printf
"
\\
tMongo C++ driver found
at /usr/local/lib/libmongocxx-static.a
.
\\
n"
fi
printf
"
\\
n
\\
tChecking secp256k1-zkp installation.
\\
n"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录