[GH-ISSUE #462] frp编译报错 go 1.9 centos #351

Closed
opened 2026-05-05 12:09:41 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @zdj0925 on GitHub (Sep 12, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/462

zhaodj@localhost frp-master]$ make frpc
go build -o bin/frpc ./cmd/frpc

_/home/zhaodj/frp-master/cmd/frpc

cmd/frpc/main.go:77:59: cannot use conf (type "github.com/vaughan0/go-ini".File) as type "github.com/fatedier/frp/vendor/github.com/vaughan0/go-ini".File in argument to config.LoadClientCommonConf
cmd/frpc/main.go:159:81: cannot use conf (type "github.com/vaughan0/go-ini".File) as type "github.com/fatedier/frp/vendor/github.com/vaughan0/go-ini".File in argument to config.LoadProxyConfFromFile
make: *** [frpc] 错误 2
[zhaodj@localhost frp-master]$ go version
go version go1.9 linux/amd64
[zhaodj@localhost frp-master]$

Originally created by @zdj0925 on GitHub (Sep 12, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/462 zhaodj@localhost frp-master]$ make frpc go build -o bin/frpc ./cmd/frpc # _/home/zhaodj/frp-master/cmd/frpc cmd/frpc/main.go:77:59: cannot use conf (type "github.com/vaughan0/go-ini".File) as type "github.com/fatedier/frp/vendor/github.com/vaughan0/go-ini".File in argument to config.LoadClientCommonConf cmd/frpc/main.go:159:81: cannot use conf (type "github.com/vaughan0/go-ini".File) as type "github.com/fatedier/frp/vendor/github.com/vaughan0/go-ini".File in argument to config.LoadProxyConfFromFile make: *** [frpc] 错误 2 [zhaodj@localhost frp-master]$ go version go version go1.9 linux/amd64 [zhaodj@localhost frp-master]$
Author
Owner

@fatedier commented on GitHub (Sep 13, 2017):

确认项目被放到了正确的目录下。

<!-- gh-comment-id:329045758 --> @fatedier commented on GitHub (Sep 13, 2017): 确认项目被放到了正确的目录下。
Author
Owner

@zdj0925 commented on GitHub (Sep 13, 2017):

自己回答一下,遇到这个问题。
打开文件Dockerfile
[zhaodj@localhost frp]$ cat Dockerfile
FROM golang:1.8

COPY . /go/src/github.com/fatedier/frp #frp存放路径

RUN cd /go/src/github.com/fatedier/frp
&& make
&& mv bin/frpc /frpc
&& mv bin/frps /frps
&& mv conf/frpc.ini /frpc.ini
&& mv conf/frps.ini /frps.ini
&& make clean

WORKDIR /

EXPOSE 80 443 6000 7000 7500

ENTRYPOINT ["/frps"]

<!-- gh-comment-id:329103478 --> @zdj0925 commented on GitHub (Sep 13, 2017): 自己回答一下,遇到这个问题。 打开文件Dockerfile [zhaodj@localhost frp]$ cat Dockerfile FROM golang:1.8 COPY . /go/src/github.com/fatedier/frp #frp存放路径 RUN cd /go/src/github.com/fatedier/frp \ && make \ && mv bin/frpc /frpc \ && mv bin/frps /frps \ && mv conf/frpc.ini /frpc.ini \ && mv conf/frps.ini /frps.ini \ && make clean WORKDIR / EXPOSE 80 443 6000 7000 7500 ENTRYPOINT ["/frps"]
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#351
No description provided.