drfill / homebrew-liquidsoap

Liquidsoap on Homebrew
http://liquidsoap.fm/
16 stars 7 forks source link

Error: Could not find the .cmi file for interface tools/rqueue.mli. #23

Open wlcx opened 9 years ago

wlcx commented 9 years ago

brew install liquidsoap on OSX 10.10 results in:

sam@sodium:~ => brew install liquidsoap
==> Reinstalling drfill/liquidsoap/liquidsoap
==> Downloading http://sourceforge.net/projects/savonet/files/liquidsoap/1.1.1/liquidsoap-1.1
Already downloaded: /Library/Caches/Homebrew/liquidsoap-1.1.1.tar.bz2
==> Patching
patching file src/decoder/aac_decoder.ml
patching file src/decoder/decoder.ml
patching file src/decoder/external_decoder.ml
patching file src/decoder/image/ppm_decoder.ml
patching file src/encoder/external_encoder.ml
patching file src/encoder/gstreamer_encoder.ml
patching file src/encoder/wav_encoder.ml
patching file src/io/alsa_io.ml
patching file src/io/gstreamer_io.ml
patching file src/io/oss_io.ml
patching file src/io/udp_io.ml
patching file src/outputs/alsa_out.ml
patching file src/protocols/mpd.ml
patching file src/sources/alsa_in.ml
patching file src/sources/external_input.ml
patching file src/sources/http_source.ml
patching file src/stream/aFrame.ml
patching file src/synth/keyboard.ml
patching file src/tools/http.ml
patching file src/tools/tutils.ml
patching file src/tools/utils.ml
patching file src/tools/wav.ml
==> ./configure --prefix=/usr/local/Cellar/liquidsoap/1.1.1 --with-user=sam --with-group=st
==> make
File "tools/rqueue.ml", line 1:
Error: Could not find the .cmi file for interface tools/rqueue.mli.
make[2]: *** [tools/rqueue.cmx] Error 2
make[1]: *** [all-auto-ocaml-prog] Error 2
make: *** [all-subdirs] Error 2
seifsallam commented 9 years ago

Same command on OSX 10.10 results in

==> Installing liquidsoap from drfill/homebrew-liquidsoap
==> Downloading http://sourceforge.net/projects/savonet/files/liquidsoap/1.1.1/liquidsoap-1.1.1.tar.bz2
Already downloaded: /Library/Caches/Homebrew/liquidsoap-1.1.1.tar.bz2
==> Patching
patching file src/decoder/aac_decoder.ml
patching file src/decoder/decoder.ml
patching file src/decoder/external_decoder.ml
patching file src/decoder/image/ppm_decoder.ml
patching file src/encoder/external_encoder.ml
patching file src/encoder/gstreamer_encoder.ml
patching file src/encoder/wav_encoder.ml
patching file src/io/alsa_io.ml
patching file src/io/gstreamer_io.ml
patching file src/io/oss_io.ml
patching file src/io/udp_io.ml
patching file src/outputs/alsa_out.ml
patching file src/protocols/mpd.ml
patching file src/sources/alsa_in.ml
patching file src/sources/external_input.ml
patching file src/sources/http_source.ml
patching file src/stream/aFrame.ml
patching file src/synth/keyboard.ml
patching file src/tools/http.ml
patching file src/tools/tutils.ml
patching file src/tools/utils.ml
patching file src/tools/wav.ml
==> ./configure --prefix=/usr/local/Cellar/liquidsoap/1.1.1 --with-user=seif --with-group=staff --with-default-font=/Library/Fonts/Verdana.ttf --disable-ldconf --disable-graphics
==> make
       and /usr/local/lib/ocaml/site-lib/biniou/biniou.cmxa
       make inconsistent assumptions over interface Bi_io
make[2]: *** [liquidsoap] Error 2
make[1]: *** [all-auto-ocaml-prog] Error 2
make: *** [all-subdirs] Error 2
ghost commented 8 years ago

I had the same issue in 10.10.5, but have got round it.

first edit your

~/.bash_profile or ~/.bashrc, 

to contain all the possible pkgconfig paths:

export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/X11/lib/pkgconfig/
for i in `ls /usr/local/opt/`;
do
    if [ -d "/usr/local/opt/$i/lib/pkgconfig" ];
    then export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:"/usr/local/opt/$i/lib/pkgconfig";
    fi;
done

start a new session and run

echo $PKG_CONFIG_PATH

make sure the output is what you expect, a very long list of paths.

Now pass those paths into brew install using a tip I got from toots here :)

brew install --env=std liquidsoap

That got me past this. It happened to me when I tried to install ffmpeg using brew --with-* various libraries) if only I had found toot's tip before it would have saved me a few hours. thnx