-
Notifications
You must be signed in to change notification settings - Fork 356
Installation
Here you can find instructions on how to install google-drive-ocamlfuse
. You can choose one of the following methods.
I've set up a PPA repository where I've uploaded .deb packages for Ubuntu. To install the software using this method, run the following commands:
sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse
As of 2 November 2020, the PPAs seem to be offline, returning a 404 Not Found error. As a workaround, get the .DEB file for your system, and install via apt install ./deb-file.deb
at:
-
https://launchpad.net/~alessandro-strada/+archive/ubuntu/ppa/+packages for the release versions.
-
https://launchpad.net/~alessandro-strada/+archive/ubuntu/google-drive-ocamlfuse-beta/+packages for the beta versions.
(If apt
throws errors related to libc6
, try changing the version of google-drive-ocamlfuse
downloaded.)
This PPA repository hosts versions from beta branch. These are experimental versions, to test new functionalities. If you want to install them, run the following commands:
sudo add-apt-repository ppa:alessandro-strada/google-drive-ocamlfuse-beta
sudo apt-get update
sudo apt-get install google-drive-ocamlfuse
There is Docker image maintained by maltokyo.
google-drive-ocamlfuse
is available in the AUR (thanks to mlq for uploading the package). To install it, run:
yaourt -S google-drive-ocamlfuse
-
Run
sudo apt install software-properties-common dirmngr
-
As root, create the file
/etc/apt/sources.list.d/alessandro-strada-ubuntu-ppa-jammy.list
and write the following lines:deb http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu jammy main
deb-src http://ppa.launchpad.net/alessandro-strada/ppa/ubuntu jammy main
-
Then you need to add the key otherwise the command apt update will not take the new sourcelist into account.
Go to Ubuntu's OpenPGP keyserver: https://keyserver.ubuntu.com/
Search for this public key: AD5F235DF639B041
Click on the link to download the ASC file.
As root, copy the ASC file into /etc/apt/trusted.gpg.d/
sudo cp ~/Downloads/9ea4d6fca5d37a5d1ca9c09aad5f235df639b041.asc /etc/apt/trusted.gpg.d/
-
Run
sudo apt update
-
Run
sudo apt install google-drive-ocamlfuse
If you are using a different distribution or you want to build the package from source, you may want to use OPAM (an OCaml package manager). If you are on a Debian Jessie, check out these instructions (contributed by Martin Gallant): How to install from source on Debian Jessie.
-
Install
OPAM
(http://opam.ocaml.org/doc/Install.html) -
Start OPAM
opam init
-
Update OPAM
opam update
-
Install
google-drive-ocamlfuse
opam install google-drive-ocamlfuse
Contributed by ngr.
# Connect CentOS repository. It will work for Amazon-Linux.
sudo wget http://download.opensuse.org/repositories/home:ocaml/CentOS_7/home:ocaml.repo -P /etc/yum.repos.d/
# Install Ocaml and required dependencies.
sudo yum install opam ocaml gcc gcc-c++ m4 make ocamldoc ocaml-camlp4-devel ncurses-devel
opam init
opam update
opam install depext
opam depext google-drive-ocamlfuse
opam install google-drive-ocamlfuse
If you have problem installing on macOS, with an error like this:
[ERROR] The compilation of conf-gmp-powm-sec failed at "sh -exc cc -c $CFLAGS -I/usr/local/include test.c".
You should install gmp this way (before retrying installing google-drive-ocamlfuse):
env CFLAGS="-I/opt/local/include/" opam install conf-gmp-powm-sec.1
See issue #357.
Installing OPAM on Debian/Raspbian can be a little difficult, because the default settings are to use the legacy resolver aspcud
that doesn't work well with OPAM 2.0. The workaround is to use the mccs
solver (disinstalling aspcud
), like this:
sudo apt install opam mccs
sudo apt remove aspcud
opam init --solver=mccs
opam switch create 4.09.0
eval $(opam env)
opam depext google-drive-ocamlfuse
opam install google-drive-ocamlfuse
Installing with OPAM on Gentoo can be achieved, but there are issues. Give this a try:
emerge sys-fs/fuse:0 #Currently no support for fuse version 3
emerge dev-db/sqlite:3 #Needs sqlite version 3
echo -e 'dev-ml/* ~amd64\t\t\t#Needed to install google-drive-ocamlfuse\n' >> /etc/portage/package.accept_keywords
emerge dev-ml/opam
emerge --unmerge ocamlbuild #Prevent installation error
export OPAM_USER_PATH_RO=/rw/usrlocal:/root #Allow install as root
opam init
opam install google-drive-ocamlfuse
opam install google-drive-ocamlfuse --destdir /usr/local/
opam uninstall google-drive-ocamlfuse/
Tested on version 38, KDE edition. This may also work in Fedora Workstation.
-
As root, install OPAM and google-drive-ocamlfuse dependencies:
sudo dnf install opam fuse-devel gmp-devel libcurl-devel sqlite-devel
-
Initialise OPAM on your own user profile:
opam init
You may be asked questions during initialisation, and will have to interact to continue.
-
Install google-drive-ocamlfuse through opam
opam install google-drive-ocamlfuse
-
Evaluate your environment to add your new install to your
$PATH
eval $(opam env)
You will now be able to run google-drive-ocamlfuse
.
This repository provides a Flake that builds from source using opam-nix
- Modify your configuration.nix to enable Flakes
{
...
nix.settings.experimental-features = [
"nix-command"
"flakes"
];
environment.systemPackages = with pkgs; [
...
git
];
}
- Rebuild (
nixos-rebuild switch
) - Add this flake to your system packages
{
environment.systemPackages = with pkgs; [
...
(builtins.getFlake "github:astrada/google-drive-ocamlfuse").packages.x86_64-linux.default
];
}
- Rebuild again