Code Monkey home page Code Monkey logo

Comments (6)

nemessiss81 avatar nemessiss81 commented on August 14, 2024

Try this:

git clone https://github.com/mongodb/mongo-php-driver.git
cd mongo-php-driver; git submodule sync && git submodule update --init

Run phpize:

phpize --clean
phpize

Remove the aclocal.m4 file:

rm aclocal.m4

Run aclocal and autoconf:

aclocal
autoconf

Now configure, make and install the package:

./configure with-mongodb-sasl=no
make
make install

from mongo-php-driver.

jmikola avatar jmikola commented on August 14, 2024

libbson lists the following build deps for FreeBSD (not sure how close that is to OpenBSD requirements):

pkg install git automake autoconf libtool gcc pkgconf

Offhand, are you able to check out and build libbson on its own?

from mongo-php-driver.

haxpor avatar haxpor commented on August 14, 2024

I solved the problem by executing xcode-select install first before executing phpize.

from mongo-php-driver.

derickr avatar derickr commented on August 14, 2024

@haxpor This issue was about FreeBSD, whereas xcode-select seems to be a MacOSX thing. I don't think your comment is related to this issue.

from mongo-php-driver.

jmikola avatar jmikola commented on August 14, 2024

Closing this due to inactivity. Please re-open if you'd like to follow up.

from mongo-php-driver.

unix-world avatar unix-world commented on August 14, 2024

Cannot compile php-mongodb on OpenBSD 5.8 / 5.9 / 6.0.
phpize gives error:
config.m4:481: error: undefine: undefined macro: AC_TYPE_NAME
src/libbson/build/autotools/m4/ac_compile_check_sizeof.m4:25: AC_COMPILE_CHECK_SIZEOF is expanded from...
Please fix this ...
Looks like when the libbson is not available in the system, the pecl mongodb is trying to compile it but it throws this error.

from mongo-php-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.