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

[FLASH-777] static compile for centos and ubuntu deploy #363

Merged
merged 9 commits into from
Dec 26, 2019

Conversation

hanfei1991
Copy link
Member

@hanfei1991 hanfei1991 commented Dec 23, 2019

How to build

#prepare build enviroment
make image_builer
#compile
make build_release

The executable files are located in tiflash dir.

Deploy Enviroument Requirements

Following OS are tested OK

  • CentOS 7.6 or higher version
  • Ubuntu 16.04 or higher version

NOTE CentOS 8 has newer libnsl.so.2. If we want to run on CentOS 8 , maybe we should copy old libnsl manually.

Your system needs to install

  • GLibC 2.27+ (musl LibC is not OK)
  • Libgcc 4.8+

@hanfei1991 hanfei1991 changed the title static compile for centos and ubuntu deploy [FLASH-777] static compile for centos and ubuntu deploy Dec 23, 2019
Copy link
Contributor

@marsishandsome marsishandsome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

-Wno-dev

make -j $NPROC

cp -f "$build_dir/dbms/src/Server/theflash" "$install_dir/theflash"

ldd "$build_dir/dbms/src/Server/theflash" | grep '/' | grep '=>' | \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do not forget to copy tiflash proxy so to $install_dir

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's ganranteed by build-tiproxy

@hanfei1991 hanfei1991 removed the request for review from guliangliangatpingcap December 24, 2019 09:05
@hanfei1991
Copy link
Member Author

/run-integration-tests

@hanfei1991
Copy link
Member Author

/run-integration-tests

@hanfei1991
Copy link
Member Author

/run-integration-tests

@marsishandsome
Copy link
Contributor

/run-integration-tests

@marsishandsome marsishandsome merged commit 31d470f into master Dec 26, 2019
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.

2 participants