note 65511 added to faq.build
| From: | timothy at imail dot ru | Date: | Tue, 02 May 2006 14:24:10 +0000 |
| Subject: | note 65511 added to faq.build | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-110368@lists.php.net to get a copy of this message | ||
Note on PHP5 setup under RedHat 7
Sometimes php5 fails to build with the following message:
[root@www bin]# ./php5
./php5: error while loading shared libraries: unexpected reloc type 0x80
Below is the configure script used:
# PHP5 CLI build, CGI/SAPI disabled
# Created by configure
'./configure' \
'--enable-libxml' \
'--with-mysql=/path_to_mysql' \
'--with-libxml=/path_to_my_libxml' \
'--program-suffix=5' \
'--disable-cgi' \
"$@"
I used the following trick to get round this:
0. If it is not a clean installation, run 'make clean' to get rid of improperly compiled
files
1. run ./configure with required options
2. edit makefile:
2.1 find any LDFLAGS or PROGRAM_LDFLAGS definition
2.2 append -lstdc++ to the end of it
3. Run 'make'
4. Run 'make install'
5. Enjoy!!!
----
Server IP: 193.27.201.10 (proxied: 193.27.201.10 1.0 www1.shellkonto.se:3128 (squid/2.5.STABLE4))
Probable Submitter: 192.71.68.101 (proxied: 1.1 ITSEELM-NT6101)
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/faq.build.php
Edit -- http://master.php.net/note/edit/65511
Del: integrated -- http://master.php.net/note/delete/65511/integrated
Del: useless -- http://master.php.net/note/delete/65511/useless
Del: bad code -- http://master.php.net/note/delete/65511/bad+code
Del: spam -- http://master.php.net/note/delete/65511/spam
Del: non-english -- http://master.php.net/note/delete/65511/non-english
Del: in docs -- http://master.php.net/note/delete/65511/in+docs
Del: other reasons-- http://master.php.net/note/delete/65511
Reject -- http://master.php.net/note/reject/65511
Search -- http://master.php.net/manage/user-notes.php