Problems installing WSO/PHP with Ubuntu 8.10

jimezam's picture
I am trying to install WSO/PHP on my desktop, an Ubuntu 8.10 no success due a weird problem with libxml2. I am following this steps: =================================================== sudo apt-get install libxml2 sudo apt-get install libxml2-dev sudo apt-get install openssl sudo apt-get install libssl-dev sudo apt-get install php5-dev http://wso2.org/projects/wsf/php tar zxvf wso2-wsf-php-src-2.0.0.tar.gz cd wso2-wsf-php-src-2.0.0/ ./configure --prefix=/home/jimezam/wso2/wsf-php-2.0.0 --enable-libxml2 --with-xml2=/usr/lib make =================================================== The 'configure' goes fine but the 'make' ends abnormally with this messages ... /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderLocalName' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderMoveToAttributeNo' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderName' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlReaderWalker' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderSetErrorHandler' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlBufferFree' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderAttributeCount' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlInitParser' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderMoveToElement' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterFlush' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlReaderForMemory' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderIsEmptyElement' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterStartDTD' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterWriteString' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlFreeTextWriter' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterWritePI' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterWriteCDATA' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterWriteComment' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderValue' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterStartPI' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterStartElement' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlReaderForFile' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderRead' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlFreeTextReader' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderNodeType' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterStartElementNS' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderLookupNamespace' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderPrefix' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlNewTextWriterMemory' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterWriteAttribute' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderConstEncoding' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderNamespaceUri' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextReaderClose' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterWriteRaw' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlReaderForIO' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlNewTextWriterFilename' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterEndDocument' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlNewTextWriterDoc' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlBufferCreate' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterEndElement' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterStartDocument' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlCleanupParser' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlFree' /home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/axiom/src/parser/libxml2/.libs/libaxis2_parser.so: undefined reference to `xmlTextWriterWriteAttributeNS' collect2: ld returned 1 exit status make[8]: *** [test] Error 1 make[8]: Leaving directory `/home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/neethi/test' make[7]: *** [all-recursive] Error 1 make[7]: Leaving directory `/home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/neethi' make[6]: *** [all] Error 2 make[6]: Leaving directory `/home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c/neethi' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c' make[4]: *** [all] Error 2 make[4]: Leaving directory `/home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c/axis2c' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c' make[2]: *** [all] Error 2 make[2]: Leaving directory `/home/jimezam/Desktop/wso2-wsf-php-src-2.0.0/wsf_c' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jimezam/Desktop/wso2-wsf-php-src-2.0.0' make: *** [all] Error 2 It looks like Axis2/c is not finding the libxml2 files when linking but I cannot find what to do, I am running out ideas. Could somebody help me with this problem ? Thank you very much, jimezam.
nandika's picture

Re:Problems installing WSO/PHP with Ubuntu 8.10

You do not need to pass configure options. Just try ./configure ./make ./make install That should install wsf/php to right location. Regards Nandika
jimezam's picture

Hello @nandika, thank you

Hello @nandika, thank you for answering. That's weird. Today I ran 'make' again and it worked! I ran ldconfig, updated LD_LIBRARY_PATH, I made everything I could imagine and failed finding the library, but all worked fine. ./configure --prefix=/home/jimezam/wso2/wsf-php-2.0.0 --enable-libxml2 --with-xml2=/usr/lib I put --prefix to installed in my home directory because I would plan to use it on a shared hosting. The other variables was attempts to circunvent the previous problem. One last problem building the package. Running 'make install' as an unprivileged user, I am getting this error at the end: Installing shared extensions: /usr/lib/php5/20060613+lfs/ cp: cannot create regular file `/usr/lib/php5/20060613+lfs/#INST@4283#': Permission denied I would like to install everything in my own home dir. Would be this a problem ? Thank you very much for your help. jimezam.
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)