infer icon indicating copy to clipboard operation
infer copied to clipboard

make error

Open veryitman opened this issue 10 years ago • 6 comments

Hi i run: make -C infer and happen error: make: *** No targets specified and no makefile found. Stop.

My pc is mac os 10.11.1 and xcode7.

veryitman avatar Dec 10 '15 15:12 veryitman

please help me.

veryitman avatar Dec 10 '15 15:12 veryitman

The way to build infer has changed; now you need to run

./autogen.sh
./configure
make

jvillard avatar Dec 10 '15 15:12 jvillard

@jvillard why not update doc? i download from https://github.com/facebook/infer/releases/tag/v0.4.0, and build successfully!

veryitman avatar Dec 11 '15 14:12 veryitman

hi, make -C infer make: *** No targets specified and no makefile found. Stop.

then run: ./autogen.sh git repository detected, updating submodule... done generating acinclude.m4... done generating ./configure script... done

you may now run the following commands to build Infer:

./configure make

run ./configure --help for more options

then run: ./configure ...... checking for ocamldoc... ocamldoc checking for ocamlbuild... ocamlbuild checking if OCaml version is >= 4.02.1... configure: error: found version 4.01.0.

Please upgrade to OCaml >= 4.02.1. If you are using opam, you can run

opam switch 4.02.1
eval $(opam config env)

last run: make -C infer make: *** No targets specified and no makefile found. Stop.

so the error again...

My pc is mac os 10.10.5 and xcode7.2

Hellengo avatar Apr 07 '16 09:04 Hellengo

@Hellengo you can use brew install infer to install infer on mac os.

If you want to compile infer yourself, you need to upgrade your version of ocaml. Assuming you use opam:

opam switch 4.02.3
eval $(opam config env)
opam pin add --yes --no-action infer .
opam install --deps-only infer
./build-infer.sh

jvillard avatar Apr 07 '16 11:04 jvillard

@jvillard thx,use brew install infer solve my problem, cool

Hellengo avatar Apr 09 '16 16:04 Hellengo