Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
84e47940
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
84e47940
编写于
7月 16, 2019
作者:
S
slguan
提交者:
GitHub
7月 16, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #69 from plum-lihui/master
modify libtaos.so link
上级
171be1c9
60673a9f
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
38 addition
and
31 deletion
+38
-31
packaging/deb/makedeb.sh
packaging/deb/makedeb.sh
+4
-1
packaging/rpm/tdengine.spec
packaging/rpm/tdengine.spec
+4
-1
packaging/tools/install.sh
packaging/tools/install.sh
+3
-3
packaging/tools/make_install.sh
packaging/tools/make_install.sh
+22
-22
packaging/tools/post.sh
packaging/tools/post.sh
+3
-2
packaging/tools/preun.sh
packaging/tools/preun.sh
+1
-1
packaging/tools/remove.sh
packaging/tools/remove.sh
+1
-1
未找到文件。
packaging/deb/makedeb.sh
浏览文件 @
84e47940
...
...
@@ -24,6 +24,9 @@ fi
mkdir
-p
${
pkg_dir
}
cd
${
pkg_dir
}
versioninfo
=
$(
${
script_dir
}
/../tools/get_version.sh
)
libfile
=
"libtaos.so.
${
versioninfo
}
"
# create install dir
install_home_path
=
"/usr/local/taos"
mkdir
-p
${
pkg_dir
}${
install_home_path
}
...
...
@@ -43,7 +46,7 @@ cp ${compile_dir}/../packaging/tools/preun.sh ${pkg_dir}${install_home_pat
cp
${
compile_dir
}
/build/bin/taosdump
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taosd
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/bin/taos
${
pkg_dir
}${
install_home_path
}
/bin
cp
${
compile_dir
}
/build/lib/
libtaos.so
${
pkg_dir
}${
install_home_path
}
/driver
cp
${
compile_dir
}
/build/lib/
${
libfile
}
${
pkg_dir
}${
install_home_path
}
/driver
cp
${
compile_dir
}
/../src/inc/taos.h
${
pkg_dir
}${
install_home_path
}
/include
cp
-r
${
top_dir
}
/tests/examples/
*
${
pkg_dir
}${
install_home_path
}
/examples
cp
-r
${
top_dir
}
/src/connector/grafana
${
pkg_dir
}${
install_home_path
}
/connector
...
...
packaging/rpm/tdengine.spec
浏览文件 @
84e47940
...
...
@@ -38,6 +38,9 @@ echo topdir: %{_topdir}
echo version: %{_version}
echo buildroot: %{buildroot}
versioninfo=$(%{_compiledir}/../packaging/tools/get_version.sh)
libfile="libtaos.so.${versioninfo}"
# create install path, and cp file
mkdir -p %{buildroot}%{homepath}/bin
mkdir -p %{buildroot}%{homepath}/cfg
...
...
@@ -55,7 +58,7 @@ cp %{_compiledir}/../packaging/tools/preun.sh %{buildroot}%{homepath}/scri
cp %{_compiledir}/build/bin/taos %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosd %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/bin/taosdump %{buildroot}%{homepath}/bin
cp %{_compiledir}/build/lib/
libtaos.so
%{buildroot}%{homepath}/driver
cp %{_compiledir}/build/lib/
${libfile}
%{buildroot}%{homepath}/driver
cp %{_compiledir}/../src/inc/taos.h %{buildroot}%{homepath}/include
cp -r %{_compiledir}/../src/connector/grafana %{buildroot}%{homepath}/connector
cp -r %{_compiledir}/../src/connector/python %{buildroot}%{homepath}/connector
...
...
packaging/tools/install.sh
浏览文件 @
84e47940
...
...
@@ -79,12 +79,12 @@ function install_bin() {
function
install_lib
()
{
# Remove links
sudo rm
-f
${
lib_link_dir
}
/libtaos.
so
||
:
sudo rm
-f
${
lib_link_dir
}
/libtaos.
*
||
:
sudo cp
-rf
${
script_dir
}
/driver/
*
${
install_main_dir
}
/driver
&&
sudo chmod
777
${
install_main_dir
}
/driver/
*
sudo ln
-s
${
install_main_dir
}
/driver/libtaos.
*
${
install_main_dir
}
/driver
/libtaos.so.1
sudo ln
-s
${
install_main_dir
}
/driver
/libtaos.so.1
${
lib_link_dir
}
/libtaos.so
sudo ln
-s
${
install_main_dir
}
/driver/libtaos.
*
${
lib_link_dir
}
/libtaos.so.1
sudo ln
-s
${
lib_link_dir
}
/libtaos.so.1
${
lib_link_dir
}
/libtaos.so
}
function
install_header
()
{
...
...
packaging/tools/make_install.sh
浏览文件 @
84e47940
...
...
@@ -89,8 +89,8 @@ function install_lib() {
versioninfo
=
$(
${
script_dir
}
/get_version.sh
)
sudo cp
${
binary_dir
}
/build/lib/libtaos.so.
${
versioninfo
}
${
install_main_dir
}
/driver
&&
sudo chmod
777
${
install_main_dir
}
/driver/
*
sudo ln
-sf
${
install_main_dir
}
/driver/libtaos.so.
${
versioninfo
}
${
install_main_dir
}
/driver
/libtaos.so.1
sudo ln
-sf
${
install_main_dir
}
/driver
/libtaos.so.1
${
lib_link_dir
}
/libtaos.so
sudo ln
-sf
${
install_main_dir
}
/driver/libtaos.so.
${
versioninfo
}
${
lib_link_dir
}
/libtaos.so.1
sudo ln
-sf
${
lib_link_dir
}
/libtaos.so.1
${
lib_link_dir
}
/libtaos.so
}
function
install_header
()
{
...
...
@@ -230,7 +230,7 @@ function update_TDengine() {
install_header
install_lib
install_bin
install_service
#
install_service
install_config
install_connector
install_examples
...
...
@@ -239,14 +239,14 @@ function update_TDengine() {
echo
-e
"
\0
33[44;32;1mTDengine is updated successfully!
${
NC
}
"
echo
echo
-e
"
${
GREEN_DARK
}
To configure TDengine
${
NC
}
: edit /etc/taos/taos.cfg"
if
is_using_systemd
;
then
echo
-e
"
${
GREEN_DARK
}
To start TDengine
${
NC
}
: sudo systemctl start taosd
${
NC
}
"
else
echo
-e
"
${
GREEN_DARK
}
To start TDengine
${
NC
}
: sudo update-rc.d taosd default
${
RED
}
for the first time
${
NC
}
"
echo
-e
" : sudo service taosd start
${
RED
}
after
${
NC
}
"
fi
echo
-e
"
${
GREEN_DARK
}
To access TDengine
${
NC
}
: use
${
GREEN_UNDERLINE
}
taos
${
NC
}
in shell
${
NC
}
"
#
if is_using_systemd; then
#
echo -e "${GREEN_DARK}To start TDengine ${NC}: sudo systemctl start taosd${NC}"
#
else
#
echo -e "${GREEN_DARK}To start TDengine ${NC}: sudo update-rc.d taosd default ${RED} for the first time${NC}"
#
echo -e " : sudo service taosd start ${RED} after${NC}"
#
fi
#
echo -e "${GREEN_DARK}To access TDengine ${NC}: use ${GREEN_UNDERLINE}taos${NC} in shell${NC}"
echo
echo
-e
"
\0
33[44;32;1mTDengine is updated successfully!
${
NC
}
"
}
...
...
@@ -261,7 +261,7 @@ function install_TDengine() {
install_header
install_bin
install_lib
install_service
#
install_service
install_config
install_connector
install_examples
...
...
@@ -271,14 +271,14 @@ function install_TDengine() {
echo
-e
"
\0
33[44;32;1mTDengine is installed successfully!
${
NC
}
"
echo
echo
-e
"
${
GREEN_DARK
}
To configure TDengine
${
NC
}
: edit /etc/taos/taos.cfg"
if
is_using_systemd
;
then
echo
-e
"
${
GREEN_DARK
}
To start TDengine
${
NC
}
: sudo systemctl start taosd
${
NC
}
"
else
echo
-e
"
${
GREEN_DARK
}
To start TDengine
${
NC
}
: sudo update-rc.d taosd default
${
RED
}
for the first time
${
NC
}
"
echo
-e
" : sudo service taosd start
${
RED
}
after
${
NC
}
"
fi
echo
-e
"
${
GREEN_DARK
}
To access TDengine
${
NC
}
: use
${
GREEN_UNDERLINE
}
taos
${
NC
}
in shell
${
NC
}
"
#
if is_using_systemd; then
#
echo -e "${GREEN_DARK}To start TDengine ${NC}: sudo systemctl start taosd${NC}"
#
else
#
echo -e "${GREEN_DARK}To start TDengine ${NC}: sudo update-rc.d taosd default ${RED} for the first time${NC}"
#
echo -e " : sudo service taosd start ${RED} after${NC}"
#3
fi
#
echo -e "${GREEN_DARK}To access TDengine ${NC}: use ${GREEN_UNDERLINE}taos${NC} in shell${NC}"
echo
echo
-e
"
\0
33[44;32;1mTDengine is installed successfully!
${
NC
}
"
}
...
...
packaging/tools/post.sh
浏览文件 @
84e47940
...
...
@@ -52,8 +52,9 @@ function install_include() {
function
install_lib
()
{
sudo rm
-f
${
lib_link_dir
}
/libtaos.so
||
:
sudo ln
-s
${
lib_dir
}
/libtaos.so
${
lib_link_dir
}
/libtaos.so
#sudo ln -s ${lib_dir}/libtaos.so.1 ${lib_link_dir}/libtaos.so.1 || :
sudo ln
-s
${
lib_dir
}
/libtaos.
*
${
lib_link_dir
}
/libtaos.so.1
sudo ln
-s
${
lib_link_dir
}
/libtaos.so.1
${
lib_link_dir
}
/libtaos.so
}
function
install_bin
()
{
...
...
packaging/tools/preun.sh
浏览文件 @
84e47940
...
...
@@ -72,7 +72,7 @@ sudo rm -f ${bin_link_dir}/taosd || :
sudo rm
-f
${
bin_link_dir
}
/taosdump
||
:
sudo rm
-f
${
cfg_link_dir
}
/
*
||
:
sudo rm
-f
${
inc_link_dir
}
/taos.h
||
:
sudo rm
-f
${
lib_link_dir
}
/libtaos.
so
||
:
sudo rm
-f
${
lib_link_dir
}
/libtaos.
*
||
:
sudo rm
-f
${
log_link_dir
}
||
:
sudo rm
-f
${
data_link_dir
}
||
:
...
...
packaging/tools/remove.sh
浏览文件 @
84e47940
...
...
@@ -53,7 +53,7 @@ function clean_bin() {
}
function
clean_lib
()
{
# Remove link
sudo rm
-f
${
lib_link_dir
}
/libtaos.
so
||
:
sudo rm
-f
${
lib_link_dir
}
/libtaos.
*
||
:
#sudo rm -f /usr/lib/libtaos.so || :
#sudo rm -rf ${lib_dir} || :
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录