-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Doc] fix 15775 #16104
base: master
Are you sure you want to change the base?
[Doc] fix 15775 #16104
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -161,6 +161,31 @@ cd tidb-java-jdbc-quickstart | |||
make | |||
``` | |||
|
|||
若运行 `make` 时出现错误: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
可以麻烦提供一下运行错误的环境吗?比如,OS、版本号等。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OS: Ubuntu
Version: 20,04.6 LTS
sh: ohmyzsh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我曾在 Ubuntu + dash,及 MacOS + zsh 上测试通过。是否是 oh-my-zsh 的配置问题?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我看了下,主要是在Makefile文件这里。
all:
. env.sh
这里我用make执行时,报错
. env.sh && make build run
/bin/sh: 1: .: env.sh: not found
make: *** [Makefile:18: all] Error 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
把makefile的 . env.sh 换成 bash env.sh.
env.sh 的#!/bin/sh 换成 #!/bin/bash
就可以了。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像是make会默认强制用sh,但我记得ubuntu默认用的是bash吧。
First-time contributors' checklist
What is changed, added or deleted? (Required)
fix #15775
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions (in Chinese).
What is the related PR or file link(s)?
Do your changes match any of the following descriptions?