Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build.sh init 依赖sudo命令 #445

Merged
merged 15 commits into from
Nov 14, 2024
Merged

build.sh init 依赖sudo命令 #445

merged 15 commits into from
Nov 14, 2024

Conversation

hnwyllmm
Copy link
Collaborator

@hnwyllmm hnwyllmm commented Sep 14, 2024

What problem were solved in this pull request?

close #330

Problem:
普通用户,没有sudo权限,在执行build.sh init时需要使用sudo,才能把依赖安装到系统目录。

What is changed and how it works?

默认将第三方依赖安装到deps/3rd/usr/local下,编译miniob时,
在CMakeLists.txt文件中增加变量 CMAKE_PREFIX_PATH=deps/3rd/usr/local。
在构建docker镜像时,第三方依赖库还是安装在系统目录中,以防用户使用docker镜像时误删除自己的代码目录,在Dockerfile中使用下面的方式安装第三方依赖:

THIRD_PARTY_INSTALL_PREFIX=/usr/local bash build.sh init

使用 THIRD_PARTY_INSTALL_PREFIX 指定依赖安装的目录。

@hnwyllmm hnwyllmm requested a review from nautaa November 14, 2024 09:33
@hnwyllmm
Copy link
Collaborator Author

@nautaa Please take a look

@hnwyllmm hnwyllmm merged commit d0bae1b into oceanbase:main Nov 14, 2024
14 checks passed
@hnwyllmm hnwyllmm deleted the fix/sudo branch November 14, 2024 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

去除build.sh init依赖sudo的问题
2 participants