google-drive-ocamlfuse icon indicating copy to clipboard operation
google-drive-ocamlfuse copied to clipboard

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

Open jorgekoronis opened this issue 3 years ago • 1 comments

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.

  • you won't be able to use mercurial repositories unless you install the hg command on your system.
  • you won't be able to use darcs repositories unless you install the darcs command on your system.

<><> 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

  • /bin/sudo "yum" "install" "fuse-devel" "gmp-devel" "libcurl-devel" "openssl-devel" "sqlite-devel" [sudo] password for $USER:
  • Last metadata expiration check: 0:10:56 ago on Mon 15 Nov 2021 02:12:51 PM CET.
  • Dependencies resolved.
  • ================================================================================
  • Package Arch Version Repository Size
  • ================================================================================
  • Installing:
  • fuse-devel x86_64 2.9.7-12.el8 baseos 43 k
  • gmp-devel x86_64 1:6.1.2-10.el8 baseos 187 k
  • libcurl-devel x86_64 7.61.1-18.el8_4.2 baseos 833 k
  • openssl-devel x86_64 1:1.1.1g-15.el8_3 baseos 2.3 M
  • sqlite-devel x86_64 3.26.0-13.el8 baseos 165 k
  • Installing dependencies:
  • gmp-c++ x86_64 1:6.1.2-10.el8 baseos 33 k
  • keyutils-libs-devel x86_64 1.5.10-6.el8 baseos 48 k
  • krb5-devel x86_64 1.18.2-8.3.el8_4 baseos 559 k
  • libcom_err-devel x86_64 1.45.6-1.el8 baseos 38 k
  • libkadm5 x86_64 1.18.2-8.3.el8_4 baseos 186 k
  • libselinux-devel x86_64 2.9-5.el8 baseos 200 k
  • libsepol-devel x86_64 2.9-2.el8 baseos 86 k
  • libverto-devel x86_64 0.3.0-5.el8 baseos 18 k
  • pcre2-devel x86_64 10.32-2.el8 baseos 605 k
  • pcre2-utf32 x86_64 10.32-2.el8 baseos 220 k
  • Transaction Summary
  • ================================================================================
  • Install 15 Packages
  • Total download size: 5.5 M
  • Installed size: 9.8 M
  • Is this ok [y/N]: y
  • Downloading Packages:
  • (1/15): gmp-c++-6.1.2-10.el8.x86_64.rpm 454 kB/s | 33 kB 00:00
  • (2/15): fuse-devel-2.9.7-12.el8.x86_64.rpm 545 kB/s | 43 kB 00:00
  • (3/15): gmp-devel-6.1.2-10.el8.x86_64.rpm 1.7 MB/s | 187 kB 00:00
  • (4/15): keyutils-libs-devel-1.5.10-6.el8.x86_64 1.4 MB/s | 48 kB 00:00
  • (5/15): libcom_err-devel-1.45.6-1.el8.x86_64.rp 1.8 MB/s | 38 kB 00:00
  • (6/15): krb5-devel-1.18.2-8.3.el8_4.x86_64.rpm 9.4 MB/s | 559 kB 00:00
  • (7/15): libkadm5-1.18.2-8.3.el8_4.x86_64.rpm 6.7 MB/s | 186 kB 00:00
  • (8/15): libselinux-devel-2.9-5.el8.x86_64.rpm 11 MB/s | 200 kB 00:00
  • (9/15): libsepol-devel-2.9-2.el8.x86_64.rpm 6.5 MB/s | 86 kB 00:00
  • (10/15): libverto-devel-0.3.0-5.el8.x86_64.rpm 1.4 MB/s | 18 kB 00:00
  • (11/15): libcurl-devel-7.61.1-18.el8_4.2.x86_64 12 MB/s | 833 kB 00:00
  • (12/15): pcre2-utf32-10.32-2.el8.x86_64.rpm 14 MB/s | 220 kB 00:00
  • (13/15): pcre2-devel-10.32-2.el8.x86_64.rpm 21 MB/s | 605 kB 00:00
  • (14/15): openssl-devel-1.1.1g-15.el8_3.x86_64.r 46 MB/s | 2.3 MB 00:00
  • (15/15): sqlite-devel-3.26.0-13.el8.x86_64.rpm 4.2 MB/s | 165 kB 00:00

  • Total 15 MB/s | 5.5 MB 00:00
  • Running transaction check
  • Transaction check succeeded.
  • Running transaction test
  • Transaction test succeeded.
  • Running transaction
  • Preparing : 1/1
  • Installing : pcre2-utf32-10.32-2.el8.x86_64 1/15
  • Installing : pcre2-devel-10.32-2.el8.x86_64 2/15
  • Installing : libverto-devel-0.3.0-5.el8.x86_64 3/15
  • Installing : libsepol-devel-2.9-2.el8.x86_64 4/15
  • Installing : libselinux-devel-2.9-5.el8.x86_64 5/15
  • Installing : libkadm5-1.18.2-8.3.el8_4.x86_64 6/15
  • Installing : libcom_err-devel-1.45.6-1.el8.x86_64 7/15
  • Installing : keyutils-libs-devel-1.5.10-6.el8.x86_64 8/15
  • Installing : krb5-devel-1.18.2-8.3.el8_4.x86_64 9/15
  • Installing : gmp-c++-1:6.1.2-10.el8.x86_64 10/15
  • Running scriptlet: gmp-c++-1:6.1.2-10.el8.x86_64 10/15
  • Installing : gmp-devel-1:6.1.2-10.el8.x86_64 11/15
  • Running scriptlet: gmp-devel-1:6.1.2-10.el8.x86_64 11/15
  • Installing : openssl-devel-1:1.1.1g-15.el8_3.x86_64 12/15
  • Installing : sqlite-devel-3.26.0-13.el8.x86_64 13/15
  • Installing : libcurl-devel-7.61.1-18.el8_4.2.x86_64 14/15
  • Installing : fuse-devel-2.9.7-12.el8.x86_64 15/15
  • Running scriptlet: fuse-devel-2.9.7-12.el8.x86_64 15/15
  • Verifying : fuse-devel-2.9.7-12.el8.x86_64 1/15
  • Verifying : gmp-c++-1:6.1.2-10.el8.x86_64 2/15
  • Verifying : gmp-devel-1:6.1.2-10.el8.x86_64 3/15
  • Verifying : keyutils-libs-devel-1.5.10-6.el8.x86_64 4/15
  • Verifying : krb5-devel-1.18.2-8.3.el8_4.x86_64 5/15
  • Verifying : libcom_err-devel-1.45.6-1.el8.x86_64 6/15
  • Verifying : libcurl-devel-7.61.1-18.el8_4.2.x86_64 7/15
  • Verifying : libkadm5-1.18.2-8.3.el8_4.x86_64 8/15
  • Verifying : libselinux-devel-2.9-5.el8.x86_64 9/15
  • Verifying : libsepol-devel-2.9-2.el8.x86_64 10/15
  • Verifying : libverto-devel-0.3.0-5.el8.x86_64 11/15
  • Verifying : openssl-devel-1:1.1.1g-15.el8_3.x86_64 12/15
  • Verifying : pcre2-devel-10.32-2.el8.x86_64 13/15
  • Verifying : pcre2-utf32-10.32-2.el8.x86_64 14/15
  • Verifying : sqlite-devel-3.26.0-13.el8.x86_64 15/15
  • Installed products updated.
  • Installed:
  • fuse-devel-2.9.7-12.el8.x86_64
  • gmp-c++-1:6.1.2-10.el8.x86_64
  • gmp-devel-1:6.1.2-10.el8.x86_64
  • keyutils-libs-devel-1.5.10-6.el8.x86_64
  • krb5-devel-1.18.2-8.3.el8_4.x86_64
  • libcom_err-devel-1.45.6-1.el8.x86_64
  • libcurl-devel-7.61.1-18.el8_4.2.x86_64
  • libkadm5-1.18.2-8.3.el8_4.x86_64
  • libselinux-devel-2.9-5.el8.x86_64
  • libsepol-devel-2.9-2.el8.x86_64
  • libverto-devel-0.3.0-5.el8.x86_64
  • openssl-devel-1:1.1.1g-15.el8_3.x86_64
  • pcre2-devel-10.32-2.el8.x86_64
  • pcre2-utf32-10.32-2.el8.x86_64
  • sqlite-devel-3.26.0-13.el8.x86_64
  • Complete!
  • /bin/sudo "rpm" "-q" "--whatprovides" "fuse-devel" "gmp-devel" "libcurl-devel" "openssl-devel" "sqlite-devel"
  • fuse-devel-2.9.7-12.el8.x86_64
  • gmp-devel-6.1.2-10.el8.x86_64
  • libcurl-devel-7.61.1-18.el8_4.2.x86_64
  • openssl-devel-1.1.1g-15.el8_3.x86_64
  • sqlite-devel-3.26.0-13.el8.x86_64

<><> 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...

jorgekoronis avatar Nov 15 '21 16:11 jorgekoronis

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

ehnwebmaster avatar Nov 26 '21 15:11 ehnwebmaster