Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocamlfind: Package `bap' not found #21

Open
Oliver-zrz opened this issue Oct 29, 2021 · 2 comments
Open

ocamlfind: Package `bap' not found #21

Oliver-zrz opened this issue Oct 29, 2021 · 2 comments

Comments

@Oliver-zrz
Copy link

I have this error when installing, can someone help me ?

$ make -j
/usr/bin/ocamlfind opt -c -o _build/bap/lib/bindings.cmx -I _build/bap/generated -I _build/bap/lib -package bap,bap-plugins,ctypes.stubs,ctypes.foreign,findlib.dynload,bap-main bap/lib/bindings.ml
/usr/bin/ocamlfind opt -c -o _build/bap/stub_generator/generate.cmx -I _build/bap/generated -I _build/bap/lib -package bap,bap-plugins,ctypes.stubs,ctypes.foreign,findlib.dynload,bap-main bap/stub_generator/generate.ml
/usr/bin/ocamlfind opt -c -o _build/bap/lib/apply_bindings.cmx -I _build/bap/generated -I _build/bap/lib -package bap,bap-plugins,ctypes.stubs,ctypes.foreign,findlib.dynload,bap-main bap/lib/apply_bindings.ml
ocamlfind: Package `bap' not found
Makefile:75: recipe for target '_build/bap/lib/bindings.cmx' failed
make: *** [_build/bap/lib/bindings.cmx] Error 2
make: *** Waiting for unfinished jobs....
ocamlfind: Package `bap' not found
Makefile:75: recipe for target '_build/bap/lib/apply_bindings.cmx' failed
make: *** [_build/bap/lib/apply_bindings.cmx] Error 2
ocamlfind: Package `bap' not found
Makefile:75: recipe for target '_build/bap/stub_generator/generate.cmx' failed
make: *** [_build/bap/stub_generator/generate.cmx] Error 2
@ivg
Copy link
Member

ivg commented Oct 29, 2021

You need to install bap and other dependencies, e.g.,

opam install bap ctypes ctypes-foreign --yes

Also, these bindings are built every week, so unless you need some specific operating system (i.e., the pre-built binaries do not work for you) you can just grab them from the release page. Look for the libbap and libbap-dev packages.

P.S. and do not forget to activate the opam switch, with eval $(opam env)

@Oliver-zrz
Copy link
Author

You need to install bap and other dependencies, e.g.,

opam install bap ctypes ctypes-foreign --yes

Also, these bindings are built every week, so unless you need some specific operating system (i.e., the pre-built binaries do not work for you) you can just grab them from the release page. Look for the libbap and libbap-dev packages.

P.S. and do not forget to activate the opam switch, with eval $(opam env)

Thank you very much. I'll give it a try !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants