# installing from source on mac osx 10.7.3

- Thread: https://externals.io/message/61240
- Original archive: https://news-web.php.net/php.internals/61240
- Started by Yader Hernandez on 2012-07-15T03:45:12+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #61240 — Yader Hernandez — 2012-07-15T03:45:12+00:00

URL: https://externals.io/message/61240#61240

I can't seem to get a vanilla php binary from a simple

$ ./configure
make
make install

The last few lines indicate that everything went well:

Installing PHP SAPI module:       cgi
Installing PHP CGI binary: /usr/local/bin/
*Installing PHP CLI binary:        /usr/local/bin/*
Installing PHP CLI man page:      /usr/local/man/man1/
Installing build environment:     /usr/local/lib/php/build/
Installing header files:          /usr/local/include/php/
Installing helper programs:       /usr/local/bin/
  program: phpize
  program: php-config
Installing man pages:             /usr/local/man/man1/
  page: phpize.1
  page: php-config.1
Installing PEAR environment:      /usr/local/lib/php/
[PEAR] Archive_Tar    - installed: 1.3.7
[PEAR] Console_Getopt - installed: 1.3.0
[PEAR] Structures_Graph- installed: 1.0.4
[PEAR] XML_Util       - installed: 1.2.1
[PEAR] PEAR           - installed: 1.9.4
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path

when I look into /usr/local/bin the php cli binary is not there. Doing a
locate does not find any php binary (even after an updatedb).

There is one output that can be interpreted as an error but I don't think
it has anything to do with not compiling php:

Generating phar.php
Generating phar.phar
PEAR package PHP_Archive not installed: generated phar will require PHP's
phar extension be enabled.

I'm running on mac osx 10.7.3. I have no problems on Ubuntu 11.04.

Has anyone ran into this issue? Is there some output I should be paying
attention to?

---

## #61249 — Reeze — 2012-07-15T16:50:03+00:00

URL: https://externals.io/message/61240#61249 · In reply to: #61240

Hi,  
    I guess /usr/local/bin is writable. then:
which version of php and autoconf?  it may set the EXEEXT=.dSYM
if so /usr/local/bin/php may becomes /usr/local/bin/php.dSYM

will you take a look at the generated Makefile  is there any value of this variable "EXEEXT =" ?  

--  
reeze | reeze.cn


在 2012年7月15日星期日，上午11:45，Yader Hernandez 写道：

> I can't seem to get a vanilla php binary from a simple
>  
> $ ./configure
> make
> make install
>  
> The last few lines indicate that everything went well:
>  
> Installing PHP SAPI module: cgi
> Installing PHP CGI binary: /usr/local/bin/
> *Installing PHP CLI binary: /usr/local/bin/*
> Installing PHP CLI man page: /usr/local/man/man1/
> Installing build environment: /usr/local/lib/php/build/
> Installing header files: /usr/local/include/php/
> Installing helper programs: /usr/local/bin/
> program: phpize
> program: php-config
> Installing man pages: /usr/local/man/man1/
> page: phpize.1
> page: php-config.1
> Installing PEAR environment: /usr/local/lib/php/
> [PEAR] Archive_Tar - installed: 1.3.7
> [PEAR] Console_Getopt - installed: 1.3.0
> [PEAR] Structures_Graph- installed: 1.0.4
> [PEAR] XML_Util - installed: 1.2.1
> [PEAR] PEAR - installed: 1.9.4
> Wrote PEAR system config file at: /usr/local/etc/pear.conf
> You may want to add: /usr/local/lib/php to your php.ini include_path
>  
> when I look into /usr/local/bin the php cli binary is not there. Doing a
> locate does not find any php binary (even after an updatedb).
>  
> There is one output that can be interpreted as an error but I don't think
> it has anything to do with not compiling php:
>  
> Generating phar.php
> Generating phar.phar
> PEAR package PHP_Archive not installed: generated phar will require PHP's
> phar extension be enabled.
>  
> I'm running on mac osx 10.7.3. I have no problems on Ubuntu 11.04.
>  
> Has anyone ran into this issue? Is there some output I should be paying
> attention to?

---

## #61261 — Yader Hernandez — 2012-07-15T23:47:36+00:00

URL: https://externals.io/message/61240#61261 · In reply to: #61249

> Hi,
>     I guess /usr/local/bin is writable. then:
> which version of php and autoconf?  it may set the EXEEXT=.dSYM
> if so /usr/local/bin/php may becomes /usr/local/bin/php.dSYM
>
> will you take a look at the generated Makefile  is there any value of this
> variable "EXEEXT =" ?
>

Yes you are right, it seems that a php.dSYM was created instead. I renamed
it to php and it works as expected.

thank you


> --
> reeze | reeze.cn
>
> 在 2012年7月15日星期日，上午11:45，Yader Hernandez 写道：
>
> I can't seem to get a vanilla php binary from a simple
>
> $ ./configure
> make
> make install
>
> The last few lines indicate that everything went well:
>
> Installing PHP SAPI module: cgi
> Installing PHP CGI binary: /usr/local/bin/
> *Installing PHP CLI binary: /usr/local/bin/*
> Installing PHP CLI man page: /usr/local/man/man1/
> Installing build environment: /usr/local/lib/php/build/
> Installing header files: /usr/local/include/php/
> Installing helper programs: /usr/local/bin/
> program: phpize
> program: php-config
> Installing man pages: /usr/local/man/man1/
> page: phpize.1
> page: php-config.1
> Installing PEAR environment: /usr/local/lib/php/
> [PEAR] Archive_Tar - installed: 1.3.7
> [PEAR] Console_Getopt - installed: 1.3.0
> [PEAR] Structures_Graph- installed: 1.0.4
> [PEAR] XML_Util - installed: 1.2.1
> [PEAR] PEAR - installed: 1.9.4
> Wrote PEAR system config file at: /usr/local/etc/pear.conf
> You may want to add: /usr/local/lib/php to your php.ini include_path
>
> when I look into /usr/local/bin the php cli binary is not there. Doing a
> locate does not find any php binary (even after an updatedb).
>
> There is one output that can be interpreted as an error but I don't think
> it has anything to do with not compiling php:
>
> Generating phar.php
> Generating phar.phar
> PEAR package PHP_Archive not installed: generated phar will require PHP's
> phar extension be enabled.
>
> I'm running on mac osx 10.7.3. I have no problems on Ubuntu 11.04.
>
> Has anyone ran into this issue? Is there some output I should be paying
> attention to?
