nbucciarelli
nbucciarelli

Reputation: 460

PHP Installation fails in sapi/cli/php

  ...
  ...
  "_xmlTextReaderNodeType", referenced from:
      _zm_startup_xmlreader in php_xmlreader.o
  "_xmlParseURIReference", referenced from:
      __dom_get_valid_file_path in document.o
      __xmlreader_get_valid_file_path in php_xmlreader.o
      _zif_xmlwriter_open_uri in php_xmlwriter.o
  "_valuePop", referenced from:
      _dom_xpath_ext_function_php in xpath.o
      _dom_xpath_ext_function_php in xpath.o
      _dom_xpath_ext_function_php in xpath.o
      _xsl_ext_function_php in xsltprocessor.o
      _xsl_ext_function_php in xsltprocessor.o
      _xsl_ext_function_php in xsltprocessor.o
  "_xmlTextReaderConstXmlLang", referenced from:
      _zm_startup_xmlreader in php_xmlreader.o
  "_xmlGetNodePath", referenced from:
      _zim_domnode_getNodePath in node.o
  "_xmlTextReaderReadInnerXml", referenced from:
      _zim_xmlreader_readInnerXml in php_xmlreader.o  "_xmlTextWriterEndElement", referenced from:
      _zif_xmlwriter_end_element in php_xmlwriter.o
      _zif_xmlwriter_write_element_ns in php_xmlwriter.o
      _zif_xmlwriter_write_element in php_xmlwriter.o
  "_xmlRelaxNGFreeValidCtxt", referenced from:
      __dom_document_relaxNG_validate in document.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

Whenever running make, I'm receiving this error. Tried "brew install php", tried compiling and installing from source. Any suggestions?

Upvotes: 6

Views: 14060

Answers (4)

donaldgavis
donaldgavis

Reputation: 565

on AIX , touch sapi/cli/php and rerun make command.

Upvotes: 0

Mansur Ul Hasan
Mansur Ul Hasan

Reputation: 3606

I had the same problem make clean did the trick

Upvotes: 0

YorickH
YorickH

Reputation: 391

Had a similar issue, using make clean before make solved this error.

Upvotes: 15

Grexis
Grexis

Reputation: 1512

If you used the homebrew-php repo's PHP formula, it's a known issue. The configure seems to ignore the libxml2 configure we pass to it (which uses the homebrew libxml2 formula) and persists in using the system libxml2 instead.

Make sure to check the Issues in the repo above, and post them there as well so we can provide support.

For this issue, see: homebrew-php#33

Upvotes: 1

Related Questions