Make: *** [install] Error 64

What is the problem you are having with rclone?

Failed to build

go build -v --ldflags "-s -X"  
mkdir -p `go env GOPATH`/bin/
cp -av rclone`go env GOEXE` `go env GOPATH`/bin/rclone`go env GOEXE`.new
rclone -> /Users/naufalazharalmizan/go/bin/
mv -v `go env GOPATH`/bin/rclone`go env GOEXE`.new `go env GOPATH`/bin/rclone`go env GOEXE`
/Users/naufalazharalmizan/go/bin/ -> /Users/naufalazharalmizan/go/bin/rclone
install -d /usr/bin
install: chmod 755 /usr/bin: Operation not permitted
install -t /usr/bin /bin/rclone
install: illegal option -- t
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64

Run the command 'rclone version' and share the full output of the command.

Which cloud storage system are you using? (eg Google Drive)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

sudo make install

The rclone config contents with secrets removed.

Paste config here

A log from the command with the -vv flag

Paste  log here

Platform: MacOS 10.15

Assuming you are having a permissions issue as you are running as a regular user trying to install something to /usr/bin.

But I running the command with sudo, should i install to different dirrectory or change the /usr/bin permission?

Oh sorry - The issue is the option that doesn't work on a Mac I guess.

Yes you are right @Animosity022 that command doesn't work on macOS or any BSD derivative. I don't really want to spend the time fixing it as I don't think we ever use make install anyway!

I suggest you just do sudo cp -a rclone /usr/bin/ @Rafi_Al_Farisi and that should work. You can copy the binary anywhere on the path and it is just the one binary that needs to be installed.

Thank you for your response. Well atleast we only need a binary, then who need make install anyway. Tysm for the suggestion.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.