I am trying to use rclone to mount Google Drive, and it has failed:
:; rclone listremotes
Predrags GD:
:; rclone ls "Predrags GD:"
1560010 Getting started
:; rclone mount 'Predrags GD:' ~/gdrive
Error: unknown command "mount" for "rclone"
Run 'rclone --help' for usage.
You could use 'rclone selfupdate' to get latest features.
2022/01/05 12:39:44 Fatal error: unknown command "mount" for "rclone"
Run the command 'rclone version' and share the full output of the command.
:; rclone -vv mount 'Predrags GD:' ~/gdrive
Error: unknown command "mount" for "rclone"
Run 'rclone --help' for usage.
You could use 'rclone selfupdate' to get latest features.
2022/01/05 13:00:52 Fatal error: unknown command "mount" for "rclone"
OS and other relevant info
I have built rclone directly from git clone (go build) - that is it
OpenIndiana OS is 64 bit, go as well, fuse supports also 64bit libraries (seems that build did not found), gvfs is also present (if that is relevant)
:; uname -rsov
SunOS 5.11 illumos-3d6d4f792e illumos
:; file /pz/SFW/bin/rclone
/pz/SFW/bin/rclone: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /usr/lib/amd64/ld.so.1, Go BuildID=z27_tMCGiL7XQFqGUimi/Wdx-pcdDm_9VZqyEUM1O/-sEqrHwIy1Tl3ohDHtdA/wfet9pk55Xvv-wVuWRHz, not stripped
:; pkg list '*fuse*'
NAME (PUBLISHER) VERSION IFO
driver/fuse 1.4-2020.0.1.2 i--
library/libfuse 2.7.6-2021.0.0.7 i--
:; pkg list '*gvfs*'
NAME (PUBLISHER) VERSION IFO
library/gnome/gvfs 1.26.0-2020.0.1.4 i--
With best regards.
P.S: I think that this is great tool (using it for home NAS backup)
I think this os is not covered by the following build tag:
And therefore the build is skipping mount.
Would probably need to extend it with build tag illumos (introduced in go 1.13), but I suspect it is more to it than just that.. If you want to, you could try and see what happens, would be interesting to know!
Aha, there is an official Solaris build. At some point (version 1.13) golang did split illumos out from solaris. But if solaris build is without mount it is probably for a reason, and probability to get illumos build with mount not so high. But I have no idea.
I don't think I want to do that, its a bit too far away from my own build experience. I was more thinking you could just do it in your local clone, as an experiment, if you are motivated. Just do a git clone, edit the referenced build tag line, and then do a go build.
The last variant, cmount, is a bit special. It requires gcc compiler, and fuse library (package name "fuse2" on arch, "libfuse-dev" on Debian), and must be activated in rclone build with tag: go build -tags cmount. Wasn't expecting you to try this out, so did not mention it...
:; head -8 cmd/cmount/mount.go
// Package cmount implements a FUSE mounting system for rclone remotes.
//
// This uses the cgo based cgofuse library
//go:build cmount && cgo && (linux || darwin || freebsd || windows || illumos)
// +build cmount
// +build cgo
// +build linux darwin freebsd windows illumos
and:
:; go build -tags cmount
# github.com/billziss-gh/cgofuse/fuse
/export/home/predrag_zecevic/go/pkg/mod/github.com/billziss-gh/cgofuse@v1.5.0/fuse/fsop_cgo.go:19:2: error: #error platform not supported
#error platform not supported
^~~~~