visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
315 experts, 1193 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: PHP :: php compilation


By: carchitect India  Date: 01/04/2003 00:00:00  English  Points: 50 Status: Answered
Quality : Excellent
I have FreeBS and php4.0.6 need to compile php 4.1.2 o higher please tell me necessary steps
i have downloaded source from php.net 4.2.3 all teps i need to know
By: VGR Date: 01/04/2003 18:54:00 English  Type : Comment
-install Apache as explained in the INSTALL file
-get PHP source
- ./configure --with-mysql [with or without other options]
- make clean
- make
- make install
By: carchitect Date: 02/04/2003 07:44:00 English  Type : Comment
well thx VGR i will come back to you
i got it from manuals but currently don't have rights to work in my directory
so it will take some time...
then i will try
and these points are for you only
By: VGR Date: 02/04/2003 07:50:00 English  Type : Comment
I even think you've to be ROOT (super-user)
By: VGR Date: 02/04/2003 07:50:00 English  Type : Comment
why don't you download binaries ? there's no one compatible with freeBSD ?
By: carchitect Date: 02/04/2003 20:49:00 English  Type : Comment
yes VGR i am here now
now i have got privilage as root
and can create directories
i downloaded php 4.2.3 source from php.net
now i want to compppile and build
what i have done is
i copied my php-4.2.3.tar.gz file in /usr/local
then used tar command to it
it created a folder for me named php-4.2.3
now i tried configure command under this folder
and it gave me error
of imap , i removed imap option from configure command....
and it worked
imap error came when i was making it
now when i make install then again it gives me error
so could you pls tell me the correct way to installphp

i have apache 1.3.24 in /usr/local/www
ok
could you pls tell me where to look for already installed php files....

regardds
By: VGR Date: 02/04/2003 21:08:00 English  Type : Comment
apparently, PHP 4.0.5 is delivered with FreeBSD version of 2002-10-10

I guess you can find more recent PHP binaries

this may be of further help to you :
<A HREF="http://www.hooday.com/manual/install.openbsd.php">http://www.hooday.com/manual/install.openbsd.php</a>

à part from this, I suggest you follow the README file instructions that are coming with the source gzipped-tarball

By: carchitect Date: 02/04/2003 22:42:00 English  Type : Comment
thats good VGR but now i am stuck up at one place....
i have installed php 4.2.3 but somehow it is unable to generate one file called phplib4.so which is required by apache ..
if i give old file (php 4.0.6) my apache works but if i rename it and install php, that file is not generated...
so do you know anything about that...
if i get it working my problem will be solved

By: VGR Date: 02/04/2003 22:49:00 English  Type : Comment
<A HREF="http://www.phpbuilder.com/board/showthread.php?threadid=10222899">http://www.phpbuilder.com/board/showthread.php?threadid=10222899</a>
By: VGR Date: 02/04/2003 22:52:00 English  Type : Comment
more interesting (read the last chapter !!!)

on bugs.php.net : <A HREF="http://bugs.php.net/?id=14265">http://bugs.php.net/?id=14265</a>


Bug #14265 Make does not create php4lib.so. Apxs fails to copy it to apache dir
Submitted: 28 Nov 2001 7:05am Modified: 10 Aug 2002 9:56am
From: fmal@fmal.com
Status: Bogus Category: Apache related
Version: 4.0.6 OS: AIX 5.1
View/Vote Add Comment Developer Edit Submission

[28 Nov 2001 7:05am] fmal@fmal.com
I'm tring to build php 4.0.6 from SRPM whit apache 1.3.22
under AIX 5.1 whit Toolbox GNU utilities.
(Apache is correctly running with dso support :)

httpd -l
http_core.c
mod_so.c

I cannot create a DSO module with this configuration in
my SPEC file :

./configure \
--prefix=%{prefix} \
--disable-debug \
--enable-track-vars \
--enable-magic-quotes \
--with-apxs=/httpd/sbin/apxs \
--with-mysql=/opt/freeware \
--with-config-file-path=/etc/opt/freeware/apache \
--with-zlib \
--enable-bcmath \
--with-gd=/opt/freeware \
--with-ttf=/opt/freeware \
--with-jpeg-dir=/opt/freeware \
--with-imap=/usr1/src/imap \
--with-xml \
--with-ftp \
%if %{SSL} == 1
--with-ssl
%endif

During the make install phase i get this error :
+cd -
/opt/freeware/src/packages/BUILD/php-4.0.6
+ cp -p acconfig.h php_version.h
/var/opt/freeware/tmp/php-root/opt/freeware/include/php
+ mkdir -p /var/opt/freeware/tmp/php-root/opt/freeware/apache/libexec
+ cp .libs/libphp4.so.0
/var/opt/freeware/tmp/php-root/opt/freeware/apache/libexec/libphp4.so
cp: .libs/libphp4.so.0: No such file or directory
Bad exit status from /var/opt/freeware/tmp/rpm-tmp.30732 (%install)

In effects I don't have the library ....

I noted that in the php directory there is a file called ltconfig that
contains :

ltconfig I found :

# See if GNU ld supports shared libraries.
case "$host_os" in
aix3* | aix4*)
# On AIX, the GNU linker is very broken
ld_shlibs=no
cat <<EOF 1>&2
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
*** to be unable to reliably create shared libraries on AIX.
*** Therefore, libtool is disabling shared libraries support. If you
*** really care for shared libraries, you may want to modify your PATH
*** so that a non-GNU linker is found, and then restart.

EOF
;;

Is this assertion true ? I use gcc 2.9-aix43-010216
from Aix Toolbox

Thanks in advance


[10 Aug 2002 9:56am] kalowsky@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP --
the problem might already be fixed. Please download a new
PHP version from <A HREF="http://www.php.net/downloads.php">http://www.php.net/downloads.php</a>

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


[22 Oct 2002 7:55am] michael.viorney@laposte.net
Hi,
I'm using AIX 5.1 ML2 with gcc 3.2.
I have the same problem with PHP4.3.0pre1 and php-4.2.3.
the 'make' command runs OK but do not produce the .so file.
Apache version is 1.3.27.
[22 Oct 2002 8:31am] michael.viorney@laposte.net
The make command has generated a file called libphp4.so.0 in the
'/php_x-x-x/.libs' directory.
I tried to rename it to '/php_x-x-x/libs/libphp4.so' and then to run
'make install'.
The apache module seems to install and work fine, but i'm not sure this
is a correct to way to compil php.

By: carchitect Date: 02/04/2003 23:16:00 English  Type : Comment
thx for the support i am checking this man
thx
By: carchitect Date: 02/04/2003 23:19:00 English  Type : Comment
no man sorry the last phrase i tried to sue but its still not generating the file....
By: VGR Date: 02/04/2003 23:48:00 English  Type : Comment
"The make command has generated a file called libphp4.so.0 in the '/php_x-x-x/.libs' directory."

no file for you ?
By: carchitect Date: 03/04/2003 00:26:00 English  Type : Comment
yes i didn't get any file for phplib4.so in libs directory
By: VGR Date: 03/04/2003 01:21:00 English  Type : Comment
have tou done a find / -name php*
?
By: carchitect Date: 03/04/2003 01:30:00 English  Type : Comment
o yes i did

By: VGR Date: 03/04/2003 01:38:00 English  Type : Answer
sorry, I can't help, it always worked more or less as planned with my RHats
By: carchitect Date: 03/04/2003 01:54:00 English  Type : Comment
ok one more thing
i got one source to change apache version and compile php again with --enable-rule=SHARED_...
SOMETHING
BUT facing one more problem now
i am installing apache


like this
./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max

make

but now it is not producing the desired output
mean is should create one directory named bin
in which apachectl will reside
but its not doing that too


By: VGR Date: 03/04/2003 02:51:00 English  Type : Comment
???
sorry
By: sumotimor Date: 03/04/2003 03:07:00 English  Type : Comment
DSO ?

--enable-so ?



By: carchitect Date: 03/04/2003 03:35:00 English  Type : Comment
thx sumotimor
let me try that too
By: VGR Date: 25/04/2003 19:11:00 English  Type : Comment
the story of "apachectl nor produced by a build" reminds me of something. I definitely think you should google a bit around ;-)
By: carchitect Date: 25/04/2003 19:50:00 English  Type : Comment
yes you are right
By: carchitect Date: 25/04/2003 19:52:00 English  Type : Comment
do you know anything about osCommerce for VGR
By: VGR Date: 25/04/2003 20:14:00 English  Type : Comment
no

e-Commerce and some virtual TPE, yes, but "osCommerce", no :D
By: carchitect Date: 25/04/2003 20:20:00 English  Type : Comment

ok there is a site osCommerce which gives script to implement a shopping cart visit oscommerce.com


Do register to be able to answer

EContact
browser fav
page generated in 395.340920 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page