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

Cannot run ./configure cmd - error: cannot find input file: 'config.h.in' #1618

Open
thiagobarros19 opened this issue Aug 2, 2024 · 1 comment

Comments

@thiagobarros19
Copy link

thiagobarros19 commented Aug 2, 2024

I'm trying install mongodb ext, but can't conclude. When run the ./configure cmd I'm getting the following error:

...
creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++ -std=gnu++11... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ -std=gnu++11 linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ -std=gnu++11 option to produce PIC... -fno-common
checking if g++ -std=gnu++11 PIC flag -fno-common works... yes
checking if g++ -std=gnu++11 static flag -static works... no
checking if g++ -std=gnu++11 supports -c -o file.o... yes
checking whether the g++ -std=gnu++11 linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin23.5.0 dyld
(cached) (cached) checking how to hardcode library paths into programs... immediate
configure: patching config.h.in
./configure: line 31751: ./config.h.in: No such file or directory
configure: creating ./config.status

mongodb was configured with the following options:

Build configuration:
  CC                                               : cc
  CFLAGS                                           : -g -O2
  CPPFLAGS                                         :  -DHAVE_CONFIG_H
  Extra flags                                      : 
  Developer flags (slow)                           : 
  Code Coverage flags (extra slow)                 : 
  libmongoc                                        : Bundled (1.28.0-20240715+git03e993d856)
  libbson                                          : Bundled (1.28.0-20240715+git03e993d856)
  libmongocrypt                                    : Bundled (1.10.1)
  LDFLAGS                                          : 
  EXTRA_LDFLAGS                                    : 
  MONGODB_SHARED_LIBADD                            : -framework Security -framework CoreFoundation -lsasl2 -lresolv  -lpthread -pthread -lpthread -pthread

Please submit bugreports at:
  https://jira.mongodb.org/browse/PHPC


config.status: creating /Users/thiagobarros/mongo-php-driver/src/libmongoc/src/common/common-config.h
config.status: creating /Users/thiagobarros/mongo-php-driver/src/libmongoc/src/libbson/src/bson/bson-config.h
config.status: creating /Users/thiagobarros/mongo-php-driver/src/libmongoc/src/libbson/src/bson/bson-version.h
config.status: creating /Users/thiagobarros/mongo-php-driver/src/libmongoc/src/libmongoc/src/mongoc/mongoc-config.h
config.status: creating /Users/thiagobarros/mongo-php-driver/src/libmongoc/src/libmongoc/src/mongoc/mongoc-version.h
config.status: creating /Users/thiagobarros/mongo-php-driver/src/libmongoc/src/zlib-1.3.1/zconf.h
config.status: creating /Users/thiagobarros/mongo-php-driver/src/libmongocrypt/src/mongocrypt-config.h
config.status: error: cannot find input file: 'config.h.in'

Someone could help me?

@alcaeus
Copy link
Member

alcaeus commented Aug 26, 2024

Sorry for the delay in getting back to you. I've previously seen this error sporadically, but was not able to reproduce it in a fresh clone of the extension. Can you please confirm that you've run git submodule update --init and that both libmongoc and libmongocrypt sources are available?

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