mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #462] frp编译报错 go 1.9 centos #351
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#351
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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]$
@fatedier commented on GitHub (Sep 13, 2017):
确认项目被放到了正确的目录下。
@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"]