diff --git a/README.md b/README.md index 8fc9e54..b7bc3ee 100644 --- a/README.md +++ b/README.md @@ -120,10 +120,15 @@ Please note, there are exceptions to this synchronization. If a version of NTrac After installing Go >= 1.20 yourself, you can use the following command to install ```shell - go install github.com/nxtrace/Ntrace-V1@latest + go install github.com/nxtrace/NTrace-core@latest ``` + *because of the version constraints conflict, you can not install `NTrace-V1` by this* After installation, the executable is in the `$GOPATH/bin` directory. If you have not set `GOPATH`, it is in the `$HOME/go/bin` directory. - + The binary file name is consistent with the project name. You need to replace the `nexttrace` command below with `NTrace-core`. + If you want to be consistent with the commands below, you can rename the binary after executing the `go install` command + ```shell + mv $GOPATH/bin/NTrace-core $GOPATH/bin/nexttrace + ``` ### Get Started diff --git a/README_zh_CN.md b/README_zh_CN.md index 45a176a..f03fae3 100644 --- a/README_zh_CN.md +++ b/README_zh_CN.md @@ -131,9 +131,16 @@ Document Language: [English](README.md) | 简体中文 您可在自行安装Go >= 1.20后,使用以下命令安装 ```shell - go install github.com/nxtrace/Ntrace-V1@latest + go install github.com/nxtrace/NTrace-core@latest ``` - 安装后可执行文件在`$GOPATH/bin`目录下,如果您没有设置`GOPATH`,则在`$HOME/go/bin`目录下。 + *由于go.mod文件声明和文件目录冲突的问题,你不能用go install命令安装 `NTrace-V1` 版本* + 安装后可执行文件在`$GOPATH/bin`目录下,如果您没有设置`GOPATH`,则在`$HOME/go/bin`目录下。 + 安装后二进制文件名称与项目名称保持一致,你需要将下文中的 `nexttrace` 命令替换为 `NTrace-core` 使用 + 如果你希望与下文命令保持一致,可以在执行 `go install` 命令后重命名二进制文件 + + ```shell + mv $GOPATH/bin/NTrace-core $GOPATH/bin/nexttrace + ``` ### Get Started