jrm Posted February 4, 2008 Share Posted February 4, 2008 I am lost. I am trying to convert all my asp to php and I am having trouble installing php on my server. I run Redhat 9. I have MySQL 5.0.51, Apache 2.2.8 and I am installing PHP 5.2.5. I got the MySQL and Apache installed and configured. But every time that I try to install php I get errors. Right now I get: ./configure --with-apsx2=/usr/local/apache2/bin/apxs --with-mysql ... ... ... Configuring extensions checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path... /usr/bin/xml2-config configure: error: libxml2 version 2.6.11 or greater required. so I get libxml2-2.6.27 root> ./configure ... ... root>make ... ... ... In file included from /usr/include/python2.2/Python.h:73, from libxml_wrap.h:1, from types.c:9: /usr/include/python2.2/longobject.h:48: warning: ISO C89 does not support `long long' /usr/include/python2.2/longobject.h:49: warning: ISO C89 does not support `long long' /usr/include/python2.2/longobject.h:50: warning: ISO C89 does not support `long long' /usr/include/python2.2/longobject.h:51: warning: ISO C89 does not support `long long' In file included from /usr/include/python2.2/Python.h:109, from libxml_wrap.h:1, from types.c:9: /usr/include/python2.2/abstract.h:286: warning: redundant redeclaration of `PyCallable_Check' in same scope /usr/include/python2.2/object.h:347: warning: previous declaration of `PyCallable_Check' types.c: In function `libxml_xmlXPathObjectPtrConvert': types.c:528: parse error before "PyBool_Check" types.c:528: warning: implicit declaration of function `PyBool_Check' types.c:528: parse error before '{' token types.c: At top level: types.c:541: warning: type defaults to `int' in declaration of `str' types.c:541: `obj' undeclared here (not in a function) types.c:542: `obj' undeclared here (not in a function) types.c:542: warning: initialization makes integer from pointer without a cast types.c:542: initializer element is not constant types.c:542: ISO C forbids data definition with no type or storage class types.c:543: warning: type defaults to `int' in declaration of `ret' types.c:543: warning: passing arg 1 of `xmlXPathWrapString' makes pointer from integer without a cast types.c:543: warning: initialization makes integer from pointer without a cast types.c:543: initializer element is not constant types.c:543: ISO C forbids data definition with no type or storage class types.c:544: parse error before '}' token types.c:551: warning: type defaults to `int' in declaration of `set' types.c:551: conflicting types for `set' types.c:549: previous declaration of `set' types.c:551: warning: redundant redeclaration of `set' in same scope types.c:549: warning: previous declaration of `set' types.c:551: ISO C forbids data definition with no type or storage class types.c:553: parse error before "for" types.c:558: warning: type defaults to `int' in declaration of `cur' types.c:558: conflicting types for `cur' types.c:548: previous declaration of `cur' types.c:558: warning: redundant redeclaration of `cur' in same scope types.c:548: warning: previous declaration of `cur' types.c:558: ISO C forbids data definition with no type or storage class types.c:559: parse error before "if" types.c:566: `inst' undeclared here (not in a function) types.c:568: parse error before "if" types.c:573: parse error before "if" types.c:573: parse error before '&&' token types.c:573: warning: type defaults to `int' in declaration of `__result' types.c:573: ISO C forbids data definition with no type or storage class types.c:573: parse error before '}' token types.c:573: conflicting declarations of `__result' types.c:573: `__result' previously declared here types.c:573: warning: `__result' was declared `extern' and later `static' types.c:573: `type' undeclared here (not in a function) types.c:573: `__s2' undeclared here (not in a function) types.c:573: parse error before "if" types.c:573: warning: type defaults to `int' in declaration of `__result' types.c:573: conflicting declarations of `__result' types.c:573: `__result' previously defined here types.c:573: ISO C forbids data definition with no type or storage class types.c:573: parse error before '}' token types.c:573: warning: type defaults to `int' in declaration of `__result' types.c:573: warning: redundant redeclaration of `__result' in same scope types.c:573: warning: previous declaration of `__result' types.c:573: ISO C forbids data definition with no type or storage class types.c:573: parse error before '}' token types.c:573: conflicting declarations of `__result' types.c:573: `__result' previously declared here types.c:573: warning: `__result' was declared `extern' and later `static' types.c:573: `__s1' undeclared here (not in a function) types.c:573: parse error before "if" types.c:573: warning: type defaults to `int' in declaration of `__result' types.c:573: conflicting declarations of `__result' types.c:573: `__result' previously defined here types.c:573: ISO C forbids data definition with no type or storage class types.c:573: parse error before '}' token types.c:590: warning: type defaults to `int' in declaration of `ret' types.c:590: redefinition of `ret' types.c:543: `ret' previously defined here types.c:590: warning: passing arg 1 of `xmlXPathWrapNodeSet' makes pointer from integer without a cast types.c:590: warning: initialization makes integer from pointer without a cast types.c:590: initializer element is not constant types.c:590: ISO C forbids data definition with no type or storage class types.c:591: parse error before '}' token types.c: In function `libxml_xmlValidCtxtPtrWrap': types.c:603: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlCatalogPtrWrap': types.c:623: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlOutputBufferPtrWrap': types.c:641: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlParserInputBufferPtrWrap': types.c:659: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlRegexpPtrWrap': types.c:678: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlTextReaderPtrWrap': types.c:697: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlTextReaderLocatorPtrWrap': types.c:715: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlRelaxNGPtrWrap': types.c:734: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlRelaxNGParserCtxtPtrWrap': types.c:752: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlRelaxNGValidCtxtPtrWrap': types.c:769: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlSchemaPtrWrap': types.c:787: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlSchemaParserCtxtPtrWrap': types.c:805: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlSchemaValidCtxtPtrWrap': types.c:824: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here types.c: In function `libxml_xmlErrorPtrWrap': types.c:845: warning: declaration of `ret' shadows a global declaration types.c:590: warning: shadowed declaration is here /usr/include/wchar.h: At top level: types.c:573: register name not specified for `__result' types.c:573: register name not specified for `__result' make[3]: *** [types.lo] Error 1 make[3]: Leaving directory `/libxml2-2.6.27/python' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/libxml2-2.6.27/python' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/libxml2-2.6.27' make: *** [all] Error 2 What did I not do? I know that I skipped something somewhere. Quote Link to comment https://forums.phpfreaks.com/topic/89440-lost/ Share on other sites More sharing options...
trq Posted February 5, 2008 Share Posted February 5, 2008 Any particular reason why your installing from source instead of using the packages provided by yum (or whatever package manager Redhat uses these days)? Quote Link to comment https://forums.phpfreaks.com/topic/89440-lost/#findComment-458123 Share on other sites More sharing options...
jrm Posted February 5, 2008 Author Share Posted February 5, 2008 Any particular reason why your installing from source instead of using the packages provided by yum (or whatever package manager Redhat uses these days)? Well unfortunatly, Red Hat has started with requesting money to be part of their program. As I have RH9, before RHEL was put out, I needed to upgrade all of the programs to the new ones. And I have tried to use yum, but the command was not found on my box. But, I think that I will just download the Fedora core and install that. seems much easier, but I would still like to know what I am doing wrong to learn. Quote Link to comment https://forums.phpfreaks.com/topic/89440-lost/#findComment-458226 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.