# Seq.base compile error or tar extract error when Opam installs Merlin

**URL:** <https://discuss.ocaml.org/t/seq-base-compile-error-or-tar-extract-error-when-opam-installs-merlin/12713>\
**Category:** Ecosystem\
**Tags:** merlin, seq, opam\
**Created:** [July 28, 2023, 11:59pm UTC](https://discuss.ocaml.org/t/seq-base-compile-error-or-tar-extract-error-when-opam-installs-merlin/12713 "2023-07-28T23:59:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LiDazhao](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@LiDazhao](https://discuss.ocaml.org/u/LiDazhao)\
**Post date:** [July 28, 2023, 11:59pm UTC](https://discuss.ocaml.org/t/seq-base-compile-error-or-tar-extract-error-when-opam-installs-merlin/12713/1 "2023-07-28T23:59:47Z")

</div>

Version: Opam 2.1.2

I’m trying to install Merlin in order to enable `ocaml-merlin` on Flycheck since I’m using Emacs. There’s an issue as it’s tries to compile `seq.base`:

```auto
$ opam install merlin
The following actions will be performed:
  ∗ install seq base [required by yojson]
  ∗ install merlin-lib 4.9-500 [required by merlin]
  ∗ install ocamlfind 1.9.6 [required by dot-merlin-reader]
  ∗ install yojson 2.1.0 [required by merlin]
  ∗ install dot-merlin-reader 4.9 [required by merlin]
  ∗ install merlin 4.9-500
===== ∗ 6 =====
Do you want to continue? [Y/n] y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved dot-merlin-reader.4.9 (cached)
⬇ retrieved merlin.4.9-500 (cached)
⬇ retrieved merlin-lib.4.9-500 (cached)
⬇ retrieved ocamlfind.1.9.6 (cached)
⬇ retrieved yojson.2.1.0 (cached)

#=== ERROR while compiling seq.base ===========================================#
Sys_error("/home/user/.opam/repo/default/packages/seq/seq.base/files/seq.install: No such file or directory")

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build seq base
└─ 
╶─ No changes have been performed

```

I’ve cleaned up the Opam cache by running `$ opam clean` and updated the repositories with `$ opam update --repositories default`, then ran the installation again and Opam printed:

```auto
$ opam install merlin
The following actions will be performed:
  ∗ install seq base [required by yojson]
  ∗ install merlin-lib 4.9-500 [required by merlin]
  ∗ install ocamlfind 1.9.6 [required by dot-merlin-reader]
  ∗ install yojson 2.1.0 [required by merlin]
  ∗ install dot-merlin-reader 4.9 [required by merlin]
  ∗ install merlin 4.9-500
===== ∗ 6 =====
Do you want to continue? [Y/n] y

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⬇ retrieved merlin.4.9-500 (https://opam.ocaml.org/cache)
⬇ retrieved dot-merlin-reader.4.9 (https://opam.ocaml.org/cache)
[ERROR] Failed to extract archive /home/user/.opam/repo/default.tar.gz: "/usr/bin/tar xfz /home/user/.opam/repo/default.tar.gz -C /tmp/opam-3125-f9ba29" exited with code 2.
        Run `opam update --repositories default` to fix the issue

#=== ERROR while compiling seq.base ===========================================#
OpamStd.OpamSys.Exit(10)

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ ⬇ fetch merlin-lib 4.9-500
│ λ build seq base
└─ 
╶─ No changes have been performed

```

I’m not sure what to do. I’ve searched for `seq.base` but found no interesting results.
