Discussion about CustomBuild

Try:
Code:
export PATH=${PATH}:/usr/local/bin
./build automake
 
Just to say, that adding that path to PATh made all my server a much better place and resolved the Automake problem.

Thx for your help Smtalk.
 
for me is same :

[root@host custombuild]# export PATH=${PATH}:/usr/local/bin
[root@host custombuild]# ./build automake
File already exists: automake-1.10.1.tar.gz
MD5 Checksum on automake-1.10.1.tar.gz passed.
Found /usr/local/directadmin/custombuild/automake-1.10.1.tar.gz
Extracting ...
Done.
Configuring automake-1.10.1...
checking build system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for perl... /usr/bin/perl
checking for tex... no
checking whether autoconf is installed... yes
checking whether autoconf works... yes
checking whether autoconf is recent enough... no
configure: error: Autoconf 2.60 or better is required.
Done. Making automake-1.10.1...
Trying to make automake...
make: *** No targets specified and no makefile found. Stop.

*** The make has failed, do you want to try to make again? (y,n):
N

Trying to make automake...
make: *** No targets specified and no makefile found. Stop.

*** The make has failed, do you want to try to make again? (y,n):
N

Trying to make automake...
make: *** No targets specified and no makefile found. Stop.

*** The make has failed, do you want to try to make again? (y,n):
N

Trying to make automake...
make: *** No targets specified and no makefile found. Stop.

*** The make has failed, do you want to try to make again? (y,n):

[root@host custombuild]# export PATH=${PATH}:/usr/local/bin
[root@host custombuild]# ./build automake
File already exists: automake-1.10.1.tar.gz
MD5 Checksum on automake-1.10.1.tar.gz passed.
Another instance of custombild is running, please delete the .custombuild file if you want to use custombuild.
Quit at position: doAutomake
 
error in ./buil

When I have upgraded to php6, I had errors.

After watching I found that the config file for compilation was PHP5 one I change this into the ./build script.

Code:
 PHP6_CONFIGURE=configure/ap2/configure.php5

should be

Code:
 PHP6_CONFIGURE=configure/ap2/configure.php6

and then no problem for compiling.
 
.htaccess with php5 doesn't work

I have php4 with suphp setup as default. I am trying to tell apache to parse php files with my domain only as php5. If I rename a file to index.php5 it works but I want to use the .htaccess method.

adding: AddHandler x-httpd-php5 .php

http://dev4.thinkwebmedia.com

View the source to see what is happening.

Any ideas out here?

Thanks,

Justin
 
Are you sure the directive AllowOverride all is in your httpd.conf

and the Rewrite_module is activate ?
 
This was built with custombuild so whatever the defaults are. Do you need mod_rewrite for adding handlers? I don't think you do?

I checked as well, AllowOverride All is in a number of places in my httpd.conf.
 
Last edited:
When I have upgraded to php6, I had errors.

After watching I found that the config file for compilation was PHP5 one I change this into the ./build script.

Code:
 PHP6_CONFIGURE=configure/ap2/configure.php5
should be

Code:
 PHP6_CONFIGURE=configure/ap2/configure.php6
and then no problem for compiling.

It's fixed, thank you for the report :)
 
Are you sure you have PHP5 as suPHP?

I have php4 with suphp setup as default. I am trying to tell apache to parse php files with my domain only as php5. If I rename a file to index.php5 it works but I want to use the .htaccess method.

adding: AddHandler x-httpd-php5 .php

http://dev4.thinkwebmedia.com

View the source to see what is happening.

Any ideas out here?

Thanks,

Justin
 
Here is my options.conf

#PHP settings. default_php possible values - 4 or 5
default_php=4
php4_cli=no
php4_cgi=yes
php5_cli=yes
php5_cgi=no
zend=yes


php4 is default with suphp. I want to run just one domain telling say apache to parse every php file in /home/username/public_html with php5.

Trying to do this with the provided .htaccess line from the custombuild faq seems to just be parsing it as html or something.
 
Wait...can I compile both php5 and php4 as CGI to use suphp? All that matters is one of them has to be CLI as well right?
 
Just to hijack this thread again, I tried ./build clean, ./build update, ./build update_script then ./build all d

and it fails at:

Code:
make[2]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.23/doc'
Making all in python
make[2]: Entering directory `/usr/local/directadmin/custombuild/libxslt-1.1.23/python'
Making all in .
make[3]: Entering directory `/usr/local/directadmin/custombuild/libxslt-1.1.23/python'
cd . && /usr/bin/python generator.py
Found 236 functions in libxslt-api.xml
Found 32 functions in libxslt-python-api.xml
Generated 140 wrapper functions, 96 failed, 32 skipped

Missing type converters:
...:1  xsltTopLevelFunction:2  xsltNumberDataPtr:1  xmlXPathObjectPtr:1  xsltPointerListPtr:4  xmlNodePtr *:3  xmlChar **:2  xmlXPathCompExprPtr:4  xsltExtInitFunction:2  xsltPreComputeFunction:1  xsltCompilerCtxtPtr:2  char **:2  xsltElemPreCompPtr:2  xmlXPathFunction:4  xmlNodeSetPtr:2  xmlXPathObjectPtr *:1  xsltDecimalFormatPtr:2  xsltDebugTraceCodes:2  xsltSecurityPrefsPtr:11  xmlDictPtr:1  xsltTransformFunction:5  xsltCompMatchPtr:3  void *:13  xmlOutputBufferPtr:1  xmlHashTablePtr:1  pythonObject *:5  xsltSortFunc:2  xsltNsMapPtr:1  xsltDocumentPtr:8  xsltStackElemPtr:3  xsltTemplatePtr:4
touch gen_prog
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.2 -I/usr/local/include -I/usr/local/include/libxml2 -I../libxslt -I.. -I../libexslt    -g -O2 -Wall -MT libxslt.lo -MD -MP -MF .deps/libxslt.Tpo -c -o libxslt.lo libxslt.c
mkdir .libs
 gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.2 -I/usr/local/include -I/usr/local/include/libxml2 -I../libxslt -I.. -I../libexslt -g -O2 -Wall -MT libxslt.lo -MD -MP -MF .deps/libxslt.Tpo -c libxslt.c  -fPIC -DPIC -o .libs/libxslt.o
 gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.2 -I/usr/local/include -I/usr/local/include/libxml2 -I../libxslt -I.. -I../libexslt -g -O2 -Wall -MT libxslt.lo -MD -MP -MF .deps/libxslt.Tpo -c libxslt.c -o libxslt.o >/dev/null 2>&1
mv -f .deps/libxslt.Tpo .deps/libxslt.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.2 -I/usr/local/include -I/usr/local/include/libxml2 -I../libxslt -I.. -I../libexslt    -g -O2 -Wall -MT types.lo -MD -MP -MF .deps/types.Tpo -c -o types.lo types.c
 gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/python2.2 -I/usr/local/include -I/usr/local/include/libxml2 -I../libxslt -I.. -I../libexslt -g -O2 -Wall -MT types.lo -MD -MP -MF .deps/types.Tpo -c types.c  -fPIC -DPIC -o .libs/types.o
types.c: In function `libxml_xmlXPathObjectPtrConvert':
types.c:460: syntax error before "PyBool_Check"
types.c:460: warning: implicit declaration of function `PyBool_Check'
types.c:460: syntax error before '{' token
types.c: At top level:
types.c:473: warning: type defaults to `int' in declaration of `str'
types.c:473: `obj' undeclared here (not in a function)
types.c:474: `obj' undeclared here (not in a function)
types.c:474: warning: initialization makes integer from pointer without a cast
types.c:474: initializer element is not constant
types.c:474: warning: data definition has no type or storage class
types.c:475: warning: type defaults to `int' in declaration of `ret'
types.c:475: warning: passing arg 1 of `xmlXPathWrapString' makes pointer from integer without a cast
types.c:475: warning: initialization makes integer from pointer without a cast
types.c:475: initializer element is not constant
types.c:475: warning: data definition has no type or storage class
types.c:476: syntax error before '}' token
types.c:483: warning: type defaults to `int' in declaration of `set'
types.c:483: conflicting types for `set'
types.c:481: previous declaration of `set'
types.c:483: warning: data definition has no type or storage class
types.c:485: syntax error before "for"
types.c:490: warning: type defaults to `int' in declaration of `cur'
types.c:490: conflicting types for `cur'
types.c:480: previous declaration of `cur'
types.c:490: warning: data definition has no type or storage class
types.c:491: syntax error before "if"
types.c:498: `inst' undeclared here (not in a function)
types.c:500: syntax error before "if"
types.c:505: syntax error before "if"
types.c:505: syntax error before '&&' token
types.c:505: warning: type defaults to `int' in declaration of `__result'
types.c:505: warning: data definition has no type or storage class
types.c:505: syntax error before '}' token
types.c:505: conflicting declarations of `__result'
types.c:505: `__result' previously declared here
types.c:505: warning: `__result' was declared `extern' and later `static'
types.c:505: `type' undeclared here (not in a function)
types.c:505: `__s2' undeclared here (not in a function)
types.c:505: syntax error before "if"
types.c:505: warning: type defaults to `int' in declaration of `__result'
types.c:505: conflicting declarations of `__result'
types.c:505: `__result' previously defined here
types.c:505: warning: data definition has no type or storage class
types.c:505: syntax error before '}' token
types.c:505: warning: type defaults to `int' in declaration of `__result'
types.c:505: warning: data definition has no type or storage class
types.c:505: syntax error before '}' token
types.c:505: conflicting declarations of `__result'
types.c:505: `__result' previously declared here
types.c:505: warning: `__result' was declared `extern' and later `static'
types.c:505: `__s1' undeclared here (not in a function)
types.c:505: syntax error before "if"
types.c:505: warning: type defaults to `int' in declaration of `__result'
types.c:505: conflicting declarations of `__result'
types.c:505: `__result' previously defined here
types.c:505: warning: data definition has no type or storage class
types.c:505: syntax error before '}' token
types.c:522: warning: type defaults to `int' in declaration of `ret'
types.c:522: redefinition of `ret'
types.c:475: `ret' previously defined here
types.c:522: warning: passing arg 1 of `xmlXPathWrapNodeSet' makes pointer from integer without a cast
types.c:522: warning: initialization makes integer from pointer without a cast
types.c:522: initializer element is not constant
types.c:522: warning: data definition has no type or storage class
types.c:523: syntax error before '}' token
types.c:505: register name not specified for `__result'
types.c:505: register name not specified for `__result'
make[3]: *** [types.lo] Error 1
make[3]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.23/python'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.23/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/directadmin/custombuild/libxslt-1.1.23'
make: *** [all] Error 2
 
Last edited:
Ok so one problem solved, smtalk you should update your faq.

In order to get php5 working with .htaccess I had to add the following:

AddHandler application/x-httpd-php .php

And now it is showing that it is using php5, the method from the faq does not work.
 
Ok so one problem solved, smtalk you should update your faq.

In order to get php5 working with .htaccess I had to add the following:

AddHandler application/x-httpd-php .php

And now it is showing that it is using php5, the method from the faq does not work.

Yes, you're right, because you are using PHP as CLI :) For CGI the method is ok. Thank you for the addition!
 
haha so confusing...so can I run both php5 and php4 as CGI? I did that and still the other .htaccess method did not work, plus I had no CLI version which I thought I needed, can you explain?

Also have a look at that python error from custombuild above please, I can no longer do ./build all.
 
Back
Top