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

test starRocks error in Debian 9 linux 4.14 #131

Closed
BanBuDu0 opened this issue Sep 9, 2021 · 10 comments
Closed

test starRocks error in Debian 9 linux 4.14 #131

BanBuDu0 opened this issue Sep 9, 2021 · 10 comments

Comments

@BanBuDu0
Copy link
Contributor

BanBuDu0 commented Sep 9, 2021

hi, I run cmd sh ./run-ut.sh --be --run in my Debian 9 linux 4.14.
And got the error ./run-ut.sh: 19: set: Illegal option -o pipefail

@stdpain
Copy link
Contributor

stdpain commented Sep 9, 2021

you could try to use

bash ./run-ut.sh --be --run

@BanBuDu0
Copy link
Contributor Author

BanBuDu0 commented Sep 9, 2021

you could try to use

bash ./run-ut.sh --be --run

i run this command and see Python 2.7.13 in new line..

@stdpain
Copy link
Contributor

stdpain commented Sep 9, 2021

@BanBuDu0
sorry
try to use

bash ./run-ut.sh --run

@BanBuDu0
Copy link
Contributor Author

I know why i get ./run-ut.sh: 19: set: Illegal option -o pipefail error.
the reason is debian default shell is dash rather bash.
Solution:

  1. run sudo dpkg-reconfigure dash
  2. select No

@BanBuDu0 BanBuDu0 reopened this Sep 10, 2021
@BanBuDu0
Copy link
Contributor Author

I change shell from dash to bash,
but whatever i run bash ./run-ut.sh --run or sh ./run-ut.sh --be --run, I got Python 2.7.13 output..

@stdpain
Copy link
Contributor

stdpain commented Sep 10, 2021

you could comment this line in ./run-ut.sh

set -eo pipefail

then execute bash ./run-ut.sh --run

it was because the shell command was terminated early with an error

@stdpain
Copy link
Contributor

stdpain commented Sep 10, 2021

I advise execute this command and paste the log

bash -x  ./run-ut.sh --run

I think may be some dependency is wrong

@BanBuDu0
Copy link
Contributor Author

bash -x ./run-ut.sh --run

yes, the command shows
Error: mvn is not found QAQ

@stdpain
Copy link
Contributor

stdpain commented Sep 11, 2021

@BanBuDu0 Hi !
Are you willing to submit Pull Request to provide more friendly error message in Debian 9?

@BanBuDu0
Copy link
Contributor Author

@BanBuDu0 Hi !
Are you willing to submit Pull Request to provide more friendly error message in Debian 9?

thanks, but I am not good at shell langunge. (ㄒoㄒ)

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

No branches or pull requests

2 participants