I am trying to install a physical simulator called open dynamics engine, but ./configure does not pass.
The environment is macOS Mojava (10.14.6).
The following error occurs when you execute it.
checking build system type ... x86_64-apple-darwin18.7.0 checking host system type ... x86_64-apple-darwin18.7.0 checking for a BSD-compatible install .../usr/bin/install -c checking whether build environment is sane ... yes checking for a thread-safe mkdir -p ... ./install-sh -c -d checking for gawk ... no checking for mawk ... no checking for nawk ... no checking for awk ... awk checking whether make sets $(MAKE) ... yes checking whether make supports nested variables ... yes checking whether make sets $(MAKE) ... (cached) yes checking for g ++ ... g ++ 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 ... configure: error: in `/Users/me/Downloads/ode-0.16 ': configure: error: cannot run C ++ compiled programs. If i meant to cross compile, use `--host '. See `config.log 'for more details
Gcc is not usable in the first place. You will be told that there is no header file.
If i install gcc-7 installed with homebrew, it will pass.
Applicable source code
hello.c: 1: 19: fatal error: stdio.h: No such file or directory #include<stdio.h> ^ compilation terminated.
It is halfway due to the number of characters,
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ODE configure 0.16, which was generated by GNU Autoconf 2.69. Invocation command line was $./configure ## --------- ## ## Platform. ## ## --------- ## hostname = ms06ssnoMacBook-puro-3.local uname -m = x86_64 uname -r = 18.7.0 uname -s = Darwin uname -v = Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019;root: xnu-4903.271.2 ~ 2/RELEASE_X86_64 / usr/bin/uname -p = i386 / bin/uname -X = unknown / bin/arch = unknown / usr/bin/arch -k = unknown / usr/convex/getsysinfo = unknown / usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 18.7.0: Tue Aug 20 16:57:14 PDT 2019;root: xnu-4903.271.2 ~ 2/RELEASE_X86_64 Kernel configured for up to 4 processors. 2 processors are physically available.4 processors are logically available. Processor type: x86_64h (Intel x86-64h Haswell) Processors active: 0 1 2 3 Primary memory available: 16.00 gigabytes Default processor set: 423 tasks, 2301 threads, 4 processors Load average: 3.38, Mach factor: 1.16 / bin/machine = unknown / usr/bin/oslevel = unknown / bin/universe = unknown PATH: /usr/local/opt/[email protected]/bin PATH:/usr/local/opt/curl/bin PATH:/usr/local/bin PATH:/usr/bin PATH:/bin PATH:/usr/sbin PATH:/sbin PATH:/Library/TeX/texbin PATH:/usr/local/share/dotnet PATH:/opt/X11/bin PATH: ~/.dotnet/tools PATH: /Library/Frameworks/Mono.framework/Versions/Current/Commands ## ----------- ## ## Core tests. ## ----------- ## configure: 2765: checking build system type configure: 2779: result: x86_64-apple-darwin18.7.0 configure: 2799: checking host system type configure: 2812: result: x86_64-apple-darwin18.7.0 configure: 2849: checking for a BSD-compatible install configure: 2917: result:/usr/bin/install -c configure: 2928: checking whether build environment is sane configure: 2983: result: yes configure: 3134: checking for a thread-safe mkdir -p configure: 3173: result: ./install-sh -c -d configure: 3180: checking for gawk configure: 3210: result: no configure: 3180: checking for mawk configure: 3210: result: no configure: 3180: checking for nawk configure: 3210: result: no configure: 3180: checking for awk configure: 3196: found/usr/bin/awk configure: 3207: result: awk configure: 3218: checking whether make sets $(MAKE) configure: 3240: result: yes configure: 3269: checking whether make supports nested variables configure: 3286: result: yes configure: 3415: checking whether make sets $(MAKE) configure: 3437: result: yes configure: 3504: checking for g ++ configure: 3520: found/usr/local/bin/g ++ configure: 3531: result: g ++ configure: 3558: checking for C ++ compiler version configure: 3567: g ++ --version>&5 g ++ (Homebrew GCC 4.9.4_1) 4.9.4Copyright (C) 2015 Free Software Foundation, Inc. This is free software;see the source for copying conditions.There is NO warranty;not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure: 3578: $? = 0 configure: 3567: g ++ -v>&5 Using built-in specs. COLLECT_GCC = g ++ COLLECT_LTO_WRAPPER=/usr/local/Cellar/[email protected]/4.9.4_1/libexec/gcc/x86_64-apple-darwin17.3.0/4.9.4/lto-wrapper Target: x86_64-apple-darwin17.3.0 Configured with: ../configure --build = x86_64-apple-darwin17.3.0 --prefix=/usr/local/Cellar/[email protected]/4.9.4_1 --libdir=/usr/local/Cellar/[email protected] /4.9.4_1/lib/gcc/4.9 --enable-languages = c, c ++, objc, obj-c ++, fortran --program-suffix = -4.9 --with-system-zlib --enable-libstdcxx-time = yes --enable-stage1-checking --enable-checking = release --enable-lto --enable-plugin --with-build-config = bootstrap-debug --disable-werror --with-pkgversion = 'Homebrew GCC 4.9.4_1 '--with-bugurl = https: //github.com/Homebrew/homebrew-core/issues MAKEINFO = missing --disable-nls --enable-multilib Thread model: posix gcc version 4.9.4 (Homebrew GCC 4.9.4_1) configure: 3578: $? = 0 configure: 3567: g ++ -V>&5 g ++: error: unrecognized command line option '-V' g ++: fatal error: no input files compilation terminated. configure: 3578: $? = 1 configure: 3567: g ++ -qversion>&5 g ++: error: unrecognized command line option '-qversion' g ++: fatal error: no input files compilation terminated. configure: 3578: $? = 1 configure: 3598: checking whether the C ++ compiler works configure: 3620: g ++ conftest.cpp>&5 configure: 3624: $? = 0 configure: 3672: result: yes configure: 3675: checking for C ++ compiler default output file name configure: 3677: result: a.out configure: 3683: checking for suffix of executables configure: 3690: g ++ -o conftest conftest.cpp>&5 configure: 3694: $? = 0 configure: 3716: result: configure: 3738: checking whether we are cross compiling configure: 3746: g ++ -o conftest conftest.cpp>&5 conftest.cpp: 11: 19: fatal error: stdio.h: No such file or directory #include<stdio.h> ^ compilation terminated. configure: 3750: $? = 1 configure: 3757: ./conftest ./configure: line 3759: ./conftest: No such file or directory configure: 3761: $? = 127 configure: 3768: error: in `/Users/araki/Downloads/ode-0.16 ': configure: 3770: error: cannot run C ++ compiled programs. If i meant to cross compile, use `--host '. See `config.log 'for more details
I saw an article on some site that solved it by installing the Xcode Command Line tool, so it was introduced but it wasn't working.
Enter the following command referring to this site I thought that this could be solved, but in the first place, the Package does not exist in the CommandLineTools directory.
It is possible that too many things were going to be solved, and that what was done before was wrong.
Want to know how to run ./configure without problems?
By the way, after this, make → sudo make install will be executed.
Answer # 1
I think the question has the following two questions.
(1) "./configure does not pass" (When "./configure" is executed, the first error message written in the question appears.
(2) When compiling a C language program called "hello.c", an error message "No header file" appears.
In the case of (1), the message "See
config.log 'for more details" (seeconfig.log' for details) appears. Check the contents of `config.log '.
If you add the contents of config.log to a question, you may be able to read it.
(2) is the result of compiling a C language program "hello.c".
"Gcc is not usable in the first place. You will be told that there is no header file. "But
In the first error display
checking whether the C ++ compiler works ... yes
Check if there is a C ++ compiler that can be used somewhere ... yes (Yes)
Furthermore, since the second error display is output by the compiler, you should think that the compiler (gcc) is ready to use.
If you type "which gcc" command on the console, the location of gcc will be displayed.The reason why
" gives an error is that the setting of the include path (the list of locations to search for the location of the file specified by #include) is not correct.
- macos (osx) - i want to fix bash_profile error (syntax error) in terminal
- macos (osx) - cobol and mac terminal error messages
- macos (osx) - about fatal error displayed by git operation in terminal
- macos (osx) - docker error
- macos (osx) - error in homebrew update
- macos (osx) - when i drag and drop wxpython, the error "type error: ~ a'bool' is expected not'none type'" appears
- macos (osx) - i can't get up all the time with the error "visual studio code quit for an unexpected reason"
- macos (osx) - i get an error when i open the terminal
- macos (osx) - in aws amplify cli, even if i enter amplify configure in the terminal, it does not proceed with command not found
- macos (osx) - when i try to put gnuplot in homebrew, i get an error
- macos (osx) - no such file or directory is displayed in configure
- macos (osx) - error with --time-style option of zsh ls command
- macos (osx) - sort_valus method error macos
- macos (osx) - jupyter lab chromedriver error
- macos (osx) - error in rsync command in shell script
- react native - error occurs in application development using reactnative
- ruby - i want to use ngrok for debugging line bot, but an error occurs
- sql - an error occurs in the alter statement that changes the column type
- mysterious error occurs only in the project deployed with heroku
- python - i want to solve the error that occurs in learning scikit-learn