Package Details: ocaml-yojson 1.3.3-1

Git Clone URL: (read-only)
Package Base: ocaml-yojson
Description: An optimized parsing and printing library for JSON
Upstream URL:
Licenses: BSD
Submitter: juster
Maintainer: leonardder
Last Packager: leonardder
Votes: 38
Popularity: 1.803028
First Submitted: 2011-01-05 03:27
Last Updated: 2016-11-04 19:58

Latest Comments

berbigou commented on 2016-03-31 03:52

hello, I did:
yaourt caml | grep installed
yaourt -Rs ocaml ocaml-findlib camlidl cppo gapi-ocaml \
google-drive-ocamlfuse ocaml-biniou ocaml-cryptokit \
ocaml-curl ocaml-easy-format ocaml-extlib ocaml-pcre \
ocaml-sqlite3 ocaml-xmlm ocaml-yojson ocamlfuse ocamlnet camlp4
yaourt google-drive-ocamlfuse
(quite long to compile)

maybe it was enough to recompile only ocaml-biniou and ocaml-easy-format.
Hope it will help someone.

leonardder commented on 2016-03-29 10:10

Make sure you update dependencies as well.

berbigou commented on 2016-03-29 10:09

while updating (yaourt -Syua), I got:
File "read.mll", line 368, characters 11-23:
Warning 3: deprecated: String.set
Use Bytes.set instead.
ocamlfind ocamlopt -c -bin-annot -dtypes -g -package easy-format,biniou
ocamlfind ocamlopt -shared -linkall -I . -o yojson.cmxs yojson.cmx
ocamlfind ocamlopt -shared -linkall -I . -o yojson_biniou.cmxs \
ocamlfind ocamlopt -o ydump -bin-annot -dtypes -g -package easy-format,biniou -linkpkg \
yojson.cmx yojson_biniou.cmx
File "", line 1:
Error: Files /usr/lib/ocaml/biniou/biniou.cmxa
and /usr/lib/ocaml/easy-format/easy_format.cmx
make inconsistent assumptions over interface Easy_format
Makefile:90 : la recette pour la cible « ydump » a échouée
make: *** [ydump] Erreur 2

J5lx commented on 2015-10-10 21:31

ocaml-biniou should be in depends instead of makedepends. Without ocaml-biniou installed I get strange errors when trying to link against Yojson (e.g. "Error: Unbound module Yojson").

leonardder commented on 2015-01-08 15:22

Still experiencing this issue? try to rebuild ocaml-easy-format, cppo and ocaml-biniou before building this package.

JP-Ellis commented on 2014-12-26 03:41

I don't know if this an issue with your package or another package, but I am now getting the following error:

==> Starting build()...
sed -e 's:@@VERSION@@:1.1.8:' > META
cppo -n yojson.mli.cppo -o yojson.mli
ocamlfind ocamlc -c -dtypes -g -package easy-format,biniou yojson.mli
File "yojson.mli", line 1:
Error: The files /usr/lib/ocaml/pervasives.cmi
and /usr/lib/ocaml/biniou/bi_outbuf.cmi make inconsistent assumptions
over interface Pervasives
Makefile:70: recipe for target 'yojson.cmi' failed
make: *** [yojson.cmi] Error 2

This is after having an issue with another package and uninstalling ocaml before re-installing all packages.

leonardder commented on 2014-10-15 07:57

If you don't want to recompile packages manually, i'm afraid Arch isn't the right distribution for you. As the problem isn't especially related to this package, I'm not responsible for contacting the ocaml-pcre maintainers. Just reinstall ocaml-pcre yourself. The only thing I could do is adding ocaml-pcre as a dependency which I will do later this week.

valentin.brasov commented on 2014-10-15 05:54

As a normal user I DO NOT WANT to recompile myself manually any package. Instead I just want to just run yaourt-gui and choose "update packages" and get automatically updates for everything that needs updated for all my installed packages from official repositories and AUR.

So could you please contact whoever maintains the ocaml-pcre package and ask him to push into AUR a recompiled package if that is what needs to be done, so that no user should need to manually recompile packages.

leonardder commented on 2014-10-13 06:16

Try to recompile ocaml-pcre. Didn't know that ocaml-pcre actually seems to be a dependency for this.

valentin.brasov commented on 2014-10-12 14:58

I can't compile the package:

File "netstring_pcre.mli", line 1:
Error: /usr/lib/ocaml/pcre/pcre.cmi
is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.
../../Makefile.rules:120: recipe for target 'netstring_pcre.cmi' failed
make[1]: *** [netstring_pcre.cmi] Error 2
make[1]: Leaving directory '/tmp/yaourt-tmp-vali/aur-ocamlnet/src/ocamlnet-3.7.6/src/netstring-pcre'
Makefile:19: recipe for target 'all' failed
make: *** [all] Error 2
==> FEHLER: Ein Fehler geschah in build().
Breche ab ...
==> FEHLER:Makepkg konnte ocamlnet nicht erstellen.

All comments