savonet / ocaml-vorbis

OCaml bindings to lbvorbis.
http://liquidsoap.info/
GNU General Public License v2.0
3 stars 0 forks source link

install failed #1

Open svandragt opened 6 years ago

svandragt commented 6 years ago

Install requirements are met:

Sanders-iMac:Users/svandragt svandragt$ eval $(opam config env) && opam depext vorbis.0.7.0
# Detecting depexts using flags: x86_64 osx homebrew
# The following system packages are needed:
#  - libogg
#  - libvorbis
# All required OS packages found.

Install fails:

Sanders-iMac:Users/svandragt svandragt$ opam install vorbis
The following actions will be performed:
  βˆ—  install vorbis 0.7.0

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 
[vorbis] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 
[ERROR] The compilation of vorbis failed at "make".
Processing  1/1: [vorbis: ocamlfind remove]
#=== ERROR while installing vorbis.0.7.0 ======================================#
# opam-version 1.2.2
# os           darwin
# command      make
# path         /Users/svandragt/.opam/system/build/vorbis.0.7.0
# compiler     system (4.06.1)
# exit-code    2
# env-file     /Users/svandragt/.opam/system/build/vorbis.0.7.0/vorbis-81470-e7966f.env
# stdout-file  /Users/svandragt/.opam/system/build/vorbis.0.7.0/vorbis-81470-e7966f.out
# stderr-file  /Users/svandragt/.opam/system/build/vorbis.0.7.0/vorbis-81470-e7966f.err
### stdout ###
# [...]
# making ._bcdi/ogg_demuxer_vorbis_decoder.di from ogg_demuxer_vorbis_decoder.mli
# making ._bcdi/vorbis.di from vorbis.mli
# making ._d/ogg_demuxer_vorbis_decoder.d from ogg_demuxer_vorbis_decoder.ml
# making ._d/vorbis.d from vorbis.ml
# ocamlc.opt -c -cc "gcc" -ccopt "-fPIC -Wall  -I/Users/svandragt/.opam/system/include -I/usr/local/Cellar/libvorbis/1.3.5_1/include -I/usr/local/Cellar/libogg/1.3.3/include -I/usr/local/Cellar/libvorbis/1.3.5_1/include -I/usr/local/Cellar/libogg/1.3.3/include -I/usr/local/Cellar/libvorbis/1.3.5_1/include -I/usr/local/Cellar/libogg/1.3.3/include \
#               -DPIC -fno-common -I/Users/svandragt/.opam/system/include -I/usr/local/Cellar/libvorbis/1.3.5_1/include -I/usr/local/Cellar/libogg/1.3.3/include -I/usr/local/Cellar/libvorbis/1.3.5_1/include -I/usr/local/Cellar/libogg/1.3.3/include -I/usr/local/Cellar/libvorbis/1.3.5_1/include -I/usr/local/Cellar/libogg/1.3.3/include  \
#                 -I/Users/svandragt/.opam/system/lib/bytes -I/Users/svandragt/.opam/system/lib/ogg  -o vorbis_stubs.o " vorbis_stubs.c 
# ar rcs libvorbis_stubs.a  vorbis_stubs.o
# ocamlc.opt -c -g -w +A-4@5-7@8-9@11@12@20-35-44-45-50 -I /Users/svandragt/.opam/system/lib/bytes -I /Users/svandragt/.opam/system/lib/ogg vorbis.mli
# ocamlc.opt -c -g -w +A-4@5-7@8-9@11@12@20-35-44-45-50 -I /Users/svandragt/.opam/system/lib/bytes -I /Users/svandragt/.opam/system/lib/ogg vorbis.ml
### stderr ###
# Use String.uppercase_ascii instead.
# [...]
#   Definition
#   File "vorbis.ml", line 54, characters 2-34:
#   Expected signature
# File "vorbis.ml", line 222, characters 12-15:
# Error: This expression has type bytes but an expression was expected of type
#          string
# make[2]: *** [vorbis.cmo] Error 2
# make[1]: *** [byte-code-library] Error 2
# make: *** [all] Error 2

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 
The following actions failed
  βˆ—  install vorbis 0.7.0
No changes have been performed

=-=- vorbis.0.7.0 troobleshooting -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫 
=> This package relies on external (system) dependencies that may be missing.
   `opam depext vorbis.0.7.0' may help you find the correct installation for
   your system.

macOS 10.13.3. Is there anything I can try?

Sveeeeeen commented 6 years ago

I have a similar problem on ubuntu 17.10:

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of vorbis failed at "/usr/bin/make".

#=== ERROR while compiling vorbis.0.7.0 =======================================#
# context      2.0.0~rc | linux/x86_64 | ocaml-base-compiler.4.06.1 | https://opam.ocaml.org/2.0#d40549a7
# path         ~/.opam/default/.opam-switch/build/vorbis.0.7.0
# command      /usr/bin/make
# exit-code    2
# env-file     ~/.opam/log/vorbis-1341-d2d111.env
# output-file  ~/.opam/log/vorbis-1341-d2d111.out
### output ###
# Use String.uppercase_ascii instead.
# [...]
# File "vorbis.ml", line 222, characters 12-15:
# Error: This expression has type bytes but an expression was expected of type
#          string
# OCamlMakefile:952: recipe for target 'vorbis.cmo' failed
# make[2]: *** [vorbis.cmo] Error 2
# make[2]: Leaving directory '/home/sven/.opam/default/.opam-switch/build/vorbis.0.7.0/src'
# OCamlMakefile:717: recipe for target 'byte-code-library' failed
# make[1]: *** [byte-code-library] Error 2
# make[1]: Leaving directory '/home/sven/.opam/default/.opam-switch/build/vorbis.0.7.0/src'
# Makefile:18: recipe for target 'all' failed
# make: *** [all] Error 2