Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMakefile.config:15: Makefile.autoconf: No such file or directory #1210
Comments
|
the same |
In your first command a download failed, perhaps check your internet connexion and retry
In your second attempt you are missing OCaml dependencies. Without opam you will have to install a lot of OCaml dependencies yourself, I would not recommend that. |
macOS Mojave 10.14.6
https://github.com/facebook/infer/blob/master/INSTALL.md
I refer to the above link to install the infer, but the installation fails in both ways. Please help me.
Install Infer from source
`➜ infer git:(release-infer-annotations-0.17.1) ./build-infer.sh clang
initializing opam...
<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><>🐫
[ERROR] The sources of the following couldn't be obtained, aborting:
- ocaml-variants.4.08.1+flambda: Download command failed
Switch initialisation failed: clean up? ('n' will leave the switch partially
installed) [Y/n] y
➜ infer git:(release-infer-annotations-0.17.1)
➜ infer git:(release-infer-annotations-0.17.1) sudo make install
Password:
Makefile.config:15: Makefile.autoconf: No such file or directory
make: *** No rule to make target
Makefile.autoconf'. Stop.Install Infer from source without opam
`➜ infer git:(release-infer-annotations-0.17.1) ./autogen.sh
git repository detected, updating submodule... done
generating m4/__GENERATED__ac_check_infer_man_last_modified.m4... done
generating acinclude.m4... done
generating ./configure script... done
you may now run the following commands to build Infer:
./configure
make
run
./configure --helpfor more options➜ infer git:(release-infer-annotations-0.17.1) ./configure
checking for .release... no
checking for .facebook... no
checking for build platform... Darwin
checking for Windows build... no
checking whether to use the compilers in /Users/hrt01/github/infer/facebook-clang-plugins/clang/install/bin... no
checking for shasum... shasum
checking for cmake... cmake
checking for python2.7... python2.7
checking for xcode-select... xcode-select
checking for xcrun... xcrun
checking for clang... clang
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether clang accepts -g... yes
checking for clang option to accept ISO C89... none needed
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking for a BSD-compatible install... /usr/local/bin/ginstall -c
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p
checking how to run the C preprocessor... clang -E
checking for clang++... clang++
checking whether we are using the GNU C++ compiler... yes
checking whether clang++ accepts -g... yes
checking if the C/C++ compiler is recent enough... yes
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/mount.h usability... yes
checking sys/mount.h presence... yes
checking for sys/mount.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statfs.h usability... no
checking sys/statfs.h presence... no
checking for sys/statfs.h... no
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking for ocamlc... /usr/local/bin/ocamlc
OCaml version is 4.08.1
OCaml library path is /usr/local/lib/ocaml
checking for ocamlopt... /usr/local/bin/ocamlopt
checking for ocamlc.opt... /usr/local/bin/ocamlc.opt
checking for ocamlopt.opt... /usr/local/bin/ocamlopt.opt
checking for dynlink.cmxa... yes
checking for ocaml... /usr/local/bin/ocaml
checking for ocamldep... /usr/local/bin/ocamldep
checking for ocamlmktop... /usr/local/bin/ocamlmktop
checking for ocamlmklib... /usr/local/bin/ocamlmklib
checking for ocamldoc... /usr/local/bin/ocamldoc
checking for ocamlbuild... /usr/local/bin/ocamlbuild
checking if OCaml version is >= 4.06.1... yes
checking for ocamlbuild... /usr/local/bin/ocamlbuild
checking for ocamlfind... no
checking for ocamllex... /usr/local/bin/ocamllex
checking for ocamllex.opt... /usr/local/bin/ocamllex.opt
checking for menhir... menhir
checking for OCaml findlib package atdgen... not found
configure: error: missing OCaml dependency: ocamlfind
If you are using opam, please run
opam update
opam install --deps-only infer .
➜ infer git:(release-infer-annotations-0.17.1) make install
Makefile.config:15: Makefile.autoconf: No such file or directory
make: *** No rule to make target
Makefile.autoconf'. Stop.