package hdfs

  1. Overview
  2. Docs
On This Page
  1. Error log

hdfs 0.1

Error log

The package failed to build. The error log from opam follows.

[NOTE] Package ocamlfind is already installed (current version is 1.9.6).
The following actions will be performed:
=== install 4 packages
  - install base-bytes base
  - install camlidl    1.12
  - install hdfs       0.1
  - install ocamlbuild 0.15.0

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
-> installed base-bytes.base
-> retrieved camlidl.1.12  (cached)
-> retrieved ocamlbuild.0.15.0  (cached)
-> retrieved hdfs.0.1  (https://ygrek.org/p/release/ocaml-hdfs/ocaml-hdfs-0.1.tar.gz)
-> installed camlidl.1.12
-> installed ocamlbuild.0.15.0
[ERROR] The compilation of hdfs.0.1 failed at "ocaml setup.ml -build".

#=== ERROR while compiling hdfs.0.1 ===========================================#
# context              2.3.0 | linux/x86_64 | ocaml-base-compiler.4.09.1 | file:///src
# path                 ~/.opam/4.09/.opam-switch/build/hdfs.0.1
# command              ~/.opam/4.09/bin/ocaml setup.ml -build
# exit-code            1
# env-file             ~/.opam/log/hdfs-113-3a5e1e.env
# output-file          ~/.opam/log/hdfs-113-3a5e1e.out
### output ###
# File "./setup.ml", line 1775, characters 22-40:
# 1775 |         let compare = Pervasives.compare
#                              ^^^^^^^^^^^^^^^^^^
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# File "setup.ml", line 3467, characters 16-34:
# Alert deprecated: module Stdlib.Pervasives
# Use Stdlib instead.
# 
# If you need to stay compatible with OCaml < 4.07, you can use the 
# stdlib-shims library: https://github.com/ocaml/stdlib-shims
# + ocamlfind ocamlopt unix.cmxa -I /home/opam/.opam/4.09/lib/ocamlbuild /home/opam/.opam/4.09/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /home/opam/.opam/4.09/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
# + /home/opam/.opam/4.09/bin/ocamlfind ocamlc -g -package camlidl -package unix -c src/hdfs_stubs.c
# + /home/opam/.opam/4.09/bin/ocamlfind ocamlc -g -package camlidl -package unix -c src/hdfs_stubs.c
# src/hdfs_stubs.c:18:10: fatal error: hdfs.h: No such file or directory
#    18 | #include <hdfs.h>
#       |          ^~~~~~~~
# compilation terminated.
# Command exited with code 2.
# E: Failure("Command ''/home/opam/.opam/4.09/bin/ocamlbuild' src/libhdfs_stubs.a src/dllhdfs_stubs.so src/hdfs.cma src/hdfs.cmxa src/hdfs.a src/hdfs.cmxs src/example.native -use-ocamlfind -tag debug' terminated with error code 10")



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build hdfs 0.1
+- 
+- The following changes have been performed
| - install base-bytes base
| - install camlidl    1.12
| - install ocamlbuild 0.15.0
+- 

<><> hdfs.0.1 troubleshooting <><><><><><><><><><><><><><><><><><><><><><><><><>
=> This package depends on C compiler being able to find libhdfs header and library files.
     Given that hadoop is often installed outside of default system paths it may require additional
     manual configuration for the build to succeed.
     See https://github.com/ygrek/ocaml-hdfs/blob/master/README.md
# To update the current shell environment, run: eval $(opam env)

The former state can be restored with:
    /usr/bin/opam switch import "/home/opam/.opam/4.09/.opam-switch/backup/state-20250204170757.export"
OCaml

Innovation. Community. Security.