astrada / google-drive-ocamlfuse

FUSE filesystem over Google Drive
https://astrada.github.io/google-drive-ocamlfuse/
MIT License
5.57k stars 353 forks source link

I tried to install google-drive-ocamlfuse in Cent OS 8 but it refuses to work. Do you know how to fix this? #739

Open jorgekoronis opened 2 years ago

jorgekoronis commented 2 years ago

According to https://github.com/astrada/google-drive-ocamlfuse/wiki/Installation and https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh

I run the following commands in Cent OS 8 but in the end google-drive-ocamlfuse does not work yet. It still outputs bash: google-drive-ocamlfuse: command not found...

Do you know how to fix this?

Find below what I did:

[$USER@server Downloads]$ sudo bash install.sh [sudo] password for $USER:

Downloading opam 2.1.1 for linux on x86_64...

Downloaded.

Where should it be installed ? [/usr/local/bin] /usr/local/bin/opam

/usr/local/bin/opam does not exist. Create ? [Y/n] y

opam 2.1.1 installed to /usr/local/bin/opam

Remember to add /usr/local/bin/opam to your PATH

Run this script again with '--restore ' to revert.

[$USER@server Downloads]$ cd /usr/local/bin/opam [$USER@server opam]$ ls opam [$USER@server opam]$ ./opam init No configuration file found, using built-in defaults. Checking for available remotes: rsync and local, git.

<><> Fetching repository information ><><><><><><><><><><><><><><><><><><><><><> [default] Initialised

<><> Required setup - please read <><><><><><><><><><><><><><><><><><><><><><><>

In normal operation, opam only alters files within ~/.opam.

However, to best integrate with your system, some environment variables should be set. If you allow it to, this initialisation step will update your bash configuration by adding the following line to ~/.bash_profile:

test -r /home/$USER/.opam/opam-init/init.sh && . /home/$USER/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true

Otherwise, every time you want to access your opam installation, you will need to run:

eval $(opam env)

You can always re-run this setup with 'opam init' later.

Do you want opam to modify ~/.bash_profile? [N/y/f] (default is 'no', use 'f' to choose a different file) y

User configuration: Updating ~/.bash_profile. [NOTE] Make sure that ~/.bash_profile is well sourced in your ~/.bashrc.

<><> Creating initial switch 'default' (invariant ["ocaml" {>= "4.05.0"}] - initially with ocaml-base-compiler)

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><> Switch invariant: ["ocaml" {>= "4.05.0"}]

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> ∗ installed base-bigarray.base ∗ installed base-threads.base ∗ installed base-unix.base ∗ installed ocaml-options-vanilla.1 ⬇ retrieved ocaml-base-compiler.4.13.1 (https://opam.ocaml.org/cache) ∗ installed ocaml-base-compiler.4.13.1 ∗ installed ocaml-config.2 ∗ installed ocaml.4.13.1 Done.

Run eval $(opam env --switch=default) to update the current shell environment

[$USER@server opam]$ ./opam update

<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><><><> [default] no changes from https://opam.ocaml.org [$USER@server opam]$ ./opam install depext [ERROR] depext unmet availability conditions, e.g. 'opam-version >= "2.0.0~beta5" & opam-version < "2.1"' [$USER@server opam]$ ./opam depext google-drive-ocamlfuse Opam plugin "depext" is not installed. Install it on the current switch? [Y/n] y

The following actions will be performed: ∗ install opam-depext 1.2.0

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> ⬇ retrieved opam-depext.1.2.0 (https://opam.ocaml.org/cache) ∗ installed opam-depext.1.2.0 Done.

<><> opam-depext.1.2.0 installed successfully <><><><><><><><><><><><><><><><><> => opam-depext is unnecessary when used with opam >= 2.1. Please use opam install directly instead

Run eval $(opam env) to update the current shell environment

<><> Carrying on to "./opam depext google-drive-ocamlfuse" ><><><><><><><><><><>

/bin/sh: opam: command not found Fatal error: exception Depext.Fatal_error("Command not found: opam --version", 1) [$USER@server opam]$ ./opam install google-drive-ocamlfuse The following actions will be performed: ∗ install conf-pkg-config 2 [required by conf-libfuse, conf-zlib, conf-sqlite3] ∗ install ocamlfind 1.9.1 [required by extlib] ∗ install conf-gmp 3 [required by conf-gmp-powm-sec, zarith] ∗ install camlidl 1.09 [required by google-drive-ocamlfuse] ∗ install dune 2.9.1 [required by google-drive-ocamlfuse] ∗ install ocamlbuild 0.14.0 [required by ocamlnet] ∗ install conf-zlib 1 [required by cryptokit] ∗ install conf-sqlite3 1 [required by sqlite3] ∗ install conf-libfuse 1 [required by ocamlfuse] ∗ install conf-libcurl 1 [required by ocurl] ∗ install base-bytes base [required by extlib] ∗ install zarith 1.12 [required by cryptokit] ∗ install conf-gmp-powm-sec 3 [required by cryptokit] ∗ install result 1.5 [required by dune-configurator] ∗ install easy-format 1.3.2 [required by yojson] ∗ install csexp 1.5.1 [required by dune-configurator] ∗ install cppo 1.6.8 [required by extlib] ∗ install ocurl 0.9.1 [required by gapi-ocaml] ∗ install ocamlnet 4.1.9-1 [required by gapi-ocaml] ∗ install biniou 1.2.1 [required by yojson] ∗ install dune-configurator 2.9.1 [required by ocamlfuse, cryptokit, sqlite3] ∗ install extlib 1.7.8 [required by google-drive-ocamlfuse] ∗ install yojson 1.7.0 [required by gapi-ocaml] ∗ install sqlite3 5.1.0 [required by google-drive-ocamlfuse] ∗ install ocamlfuse 2.7.1-cvs7 [required by google-drive-ocamlfuse] ∗ install cryptokit 1.16.1 [required by google-drive-ocamlfuse] ∗ install gapi-ocaml 0.4.2 [required by google-drive-ocamlfuse] ∗ install google-drive-ocamlfuse 0.7.27 ===== ∗ 28 ===== Do you want to continue? [Y/n] y

The following system packages will first need to be installed: fuse-devel gmp-devel libcurl-devel openssl-devel sqlite-devel

<><> Handling external dependencies <><><><><><><><><><><><><><><><><><><><><><> Let opam run your package manager to install the required system packages? (answer 'n' for other options) [Y/n] y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> ⬇ retrieved biniou.1.2.1 (https://opam.ocaml.org/cache) ⬇ retrieved camlidl.1.09 (https://opam.ocaml.org/cache) ⬇ retrieved cppo.1.6.8 (https://opam.ocaml.org/cache) ∗ installed conf-gmp.3 ∗ installed conf-pkg-config.2 ∗ installed conf-gmp-powm-sec.3 ∗ installed conf-libfuse.1 ∗ installed conf-libcurl.1 ∗ installed conf-sqlite3.1 ∗ installed conf-zlib.1 ⬇ retrieved csexp.1.5.1 (https://opam.ocaml.org/cache) ⬇ retrieved cryptokit.1.16.1 (https://opam.ocaml.org/cache) ∗ installed camlidl.1.09 ⬇ retrieved dune.2.9.1 (https://opam.ocaml.org/cache) ⬇ retrieved easy-format.1.3.2 (https://opam.ocaml.org/cache) ⬇ retrieved extlib.1.7.8 (https://opam.ocaml.org/cache) ⬇ retrieved gapi-ocaml.0.4.2 (https://opam.ocaml.org/cache) ⬇ retrieved google-drive-ocamlfuse.0.7.27 (https://opam.ocaml.org/cache) ⬇ retrieved dune-configurator.2.9.1 (https://opam.ocaml.org/cache) ⬇ retrieved ocamlbuild.0.14.0 (https://opam.ocaml.org/cache) ⬇ retrieved ocamlfind.1.9.1 (https://opam.ocaml.org/cache) ⬇ retrieved ocamlfuse.2.7.1-cvs7 (https://opam.ocaml.org/cache) ⬇ retrieved result.1.5 (https://opam.ocaml.org/cache) ⬇ retrieved ocurl.0.9.1 (https://opam.ocaml.org/cache) ⬇ retrieved sqlite3.5.1.0 (https://opam.ocaml.org/cache) ⬇ retrieved yojson.1.7.0 (https://opam.ocaml.org/cache) ⬇ retrieved ocamlnet.4.1.9-1 (https://opam.ocaml.org/cache) ⬇ retrieved zarith.1.12 (https://opam.ocaml.org/cache) ∗ installed ocamlfind.1.9.1 ∗ installed base-bytes.base ∗ installed ocamlbuild.0.14.0 ∗ installed zarith.1.12 ∗ installed dune.2.9.1 ∗ installed csexp.1.5.1 ∗ installed result.1.5 ∗ installed easy-format.1.3.2 ∗ installed cppo.1.6.8 ∗ installed biniou.1.2.1 ∗ installed dune-configurator.2.9.1 ∗ installed ocamlfuse.2.7.1-cvs7 ∗ installed yojson.1.7.0 ∗ installed sqlite3.5.1.0 ∗ installed cryptokit.1.16.1 ∗ installed extlib.1.7.8 ∗ installed ocurl.0.9.1 ∗ installed ocamlnet.4.1.9-1 ∗ installed gapi-ocaml.0.4.2 ∗ installed google-drive-ocamlfuse.0.7.27 Done.

Run eval $(opam env) to update the current shell environment

[$USER@server opam]$ google-drive-ocamlfuse bash: google-drive-ocamlfuse: command not found...

ehnwebmaster commented 2 years ago

Probably /usr/local/bin isn't in your path