Giter Site home page Giter Site logo

Comments (5)

nikic avatar nikic commented on August 19, 2024 1

Try ./configure --with-php-config=~/Programs/php7/bin/php-config (or whatever the path to php-config is).

from php-ast.

mnpenner avatar mnpenner commented on August 19, 2024

It's still saying "Cannot find php-config" even though I've specified the full path...?

$ ./configure --with-php-config=/home/mpenner/Programs/php7/scripts/php-config
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
configure: error: Cannot find php-config. Please use --with-php-config=PATH

$ stat /home/mpenner/Programs/php7/scripts/php-config   
  File: โ€˜/home/mpenner/Programs/php7/scripts/php-configโ€™
  Size: 2873        Blocks: 24         IO Block: 4096   regular file

from php-ast.

mnpenner avatar mnpenner commented on August 19, 2024

I think the error comes down to this line:

prefix=`$PHP_CONFIG --prefix 2>/dev/null`

Which I ran separately in my terminal...

$ ~/Programs/php7/scripts/php-config --prefix 2>/dev/null
/usr/local/php5

Not sure why that outputs /usr/local/php5 but I'm pretty sure that's not right.

from php-ast.

nikic avatar nikic commented on August 19, 2024

Did you manage to solve this problem?

from php-ast.

mnpenner avatar mnpenner commented on August 19, 2024

Just now I did. I think I gave up before, but I just re-ran the exact same command I did last time and it successfully built this time. I don't know what's changed. I just have to figure out how to load it now. I think my php7 setup is all wonky.

Update: I just talked to one of my coworkers. I compiled PHP7 totally wrong. My bad.

If anyone else encounters this problem, you need to run make install when compiling PHP ๐Ÿ˜„ I thought it was like other programs where you could actually run it without installing it to a different directory, but the paths get all messed up if you try it this way, even though the php bin exists.

from php-ast.

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.