Duplicacy only available in installation folder

Hi everyone !

I’m trying to install Duplicacy-cli on multiple VMs, on most of my VMs it worked perfectly. On some VMs, the duplicacy_main command (not the usual duplicacy command ??) is available only in the installation directory.

I’m completely new to go packages/environment and I’m a bit lost. I’ve tried to completely uninstall/install multiple times without success.

Here is my installation process :
GIT_SSL_NO_VERIFY=true go get -u github.com/gilbertchen/duplicacy/... cd go/src/github.com/gilbertchen/duplicacy/ go build duplicacy/duplicacy_main.go

Here is my go env :
export HISTTIMEFORMAT="%d/%m/%y %T " export GOPATH=/root/go export GOBIN=/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:: export PATH

Do you have hints on where the error is ?

Hi everyone !

I’ve solved the problem by updating the /root/.bashrc to :
export HISTTIMEFORMAT="%d/%m/%y %T " export GOPATH=/root/go export GOBIN=/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:: export PATH export GOPATH=/root/go export GOBIN=/root/go/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:::/root/go:/bin export PATH export GOPATH=/root/go export GOBIN=/root/go/bin PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:::/root/go:/bin:/root/go:/root/go/bin export PATH
It seems to work now. I didn’t really understand why because that’s what I had just after installation and it didn’t work by that time.

1 Like