/usr/bin/rclone: line 2: syntax error: unexpected ")"

What is the problem you are having with rclone?

I get this error

/usr/bin/rclone: line 1: ELF: not found
/usr/bin/rclone: line 2: syntax error: unexpected ")"

What is your rclone version (output from rclone version)

rclone-v1.49.1-linux-amd64

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Synology DS210J

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

None

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

None

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

None

Install

Using Linux installation from precompiled binary (I cannot run mandb)

You hav the wrong binary unfortunately as it's not a AMD64 system.

I think it's the ARM one. You can check by running a uname -a

Linux Synology 2.6.32.12 #5967 Fri Nov 3 17:20:31 CST 2017 armv5tel GNU/Linux synology_88f6281_210j, which one should I get @Animosity022?

Are you able to just run the scripted install?

https://rclone.org/install/#script-installation

From there?

I would think it's the arm 64 or the arm 32 download if you want to do it manually.

Hi @Animosity022,

If I do this wget https://rclone.org/install.sh (I cannot the curl command) .
Chmod 777 install.sh
./install.sh

I get
env: bash: No such file or directory

This link looks to be more step by step:

https://bitbucket.org/fusebit/plex-and-google-drive/wiki/Install%20rclone%20on%20Synology%20NAS

Not sure if that works either though as I can't test.

It seems that I cannot use the bash at all, so I cannot use the installer

Download this file https://downloads.rclone.org/rclone-current-linux-arm.rpm unpack the zip, then you should be able to run the rclone binary directly. It doesn't need installing.

That says it is ARMv5. The default go compiler compiles for ARMv6 so it is possible rclone will need a recompile with GOARM=5. Try it and see and post the error if any.

How can I do this?

Install rclone from source on your computer: https://rclone.org/install/#install-from-source

Then make a build like this

GOOS=linux GOARCH=arm GOARM=5 build

This will make an rclone binary for for arm 5