Can't load batteries using FindLib in Ocaml TopLevel

妖精的绣舞 提交于 2019-12-09 03:35:28

Is there a reason why you're not using OPAM? (https://github.com/OCamlPro/opam)

Install OPAM, switch to your favorite version of the 4.0x compiler (for example opam switch 4.00.1), and run: opam install batteries. I recommend doing opam install utop and using utop instead of the vanilla toplevel. In either case:

Put the following in your ~/.ocamlinit

#use "topfind";;
#require "batteries";;
open Batteries;;

This is all you need to get batteries working.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!