Visit Our UNIX and Linux User Community


PHP 5.3 compile on Solaris 10 : make distclean :: fatal error


 
Thread Tools Search this Thread
Operating Systems Solaris PHP 5.3 compile on Solaris 10 : make distclean :: fatal error
# 8  
Old 10-20-2009
Did the configure step finish? If not, there will be no Makefile, and no rules that make could execute.
# 9  
Old 10-20-2009
PHP 5.3 compile on Solaris 10 : make distclean :: fatal error Reply to Thread

Hi ,frank_rizzo
The same error.
aaa@ekh09:src/php>make distclean
make: Fatal error: Don't know how to make target `distclean'
Don't know which "make"?


Hi, jlliagre

Error:

aaa@ekh09:src/php>grep distclean Makefile
grep: can't open Makefile
# 10  
Old 10-20-2009
If there is no Makefile yet, there is no much point running make. As pludi stated, have configure completed first.
# 11  
Old 10-20-2009
PHP 5.3 compile on Solaris 10 : make distclean :: fatal error

Code:
./configure --with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-apxs2=/usr/apache2/bin/apxs --enable-snapshot-build \
--with-zlib-dir=/usr/local --with-config-file-path=/usr/local/lib/php \
--with-freetype-dir=/usr/local --with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local --with-xpm-dir=/usr/local --with-ttf=/usr/local

So I configure with the above syntax and got an error message of:
Code:
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log
for more information.

so I go and check config.log for last 100 lines as it is too long.
The file contents are:
Code:
*******************************************
aaa@ekh09:src/php>tail config.log -n100
#line 59816 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char mysql_set_server_option();

int main() {
mysql_set_server_option()
; return 0; }
*********************************************

I'm using etc/apache2
Please help and advice me.
Thank you so much.

Last edited by pludi; 10-20-2009 at 07:27 AM.. Reason: code tags!!
# 12  
Old 10-20-2009
A custom mysql is a prerequisite according to the command line you run.
Did you build or install one in /usr/local/mysql ?
# 13  
Old 10-20-2009
PHP 5.3 compile on Solaris 10 : make distclean :: fatal error Reply to Thread

Yes. I build mysql under
/usr/local
# 14  
Old 10-20-2009
Then check why configure is complaining about it: "wrong mysql library version or lib not found". Instead of picking the last few lines of config.log, look for messages related to mysql in it.

Previous Thread | Next Thread
Test Your Knowledge in Computers #931
Difficulty: Medium
64-bit computer system storage allocation for timekeeping will allow them to represent dates more than 300 billion years into the future.
True or False?

9 More Discussions You Might Find Interesting

1. What is on Your Mind?

PHP Fatal Errors During SSL Cert Management - PHP Fatal error: xc_fcntl_mutex failed

Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup. However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies

2. Solaris

Compile PHP as an Apache module on Solaris

Hi, I need to install php 5.5.30 as an apache (2.4.17) module on Solaris 10. Please any help is wellcome. Some aditional info: /usr/sfw/bin/gcc -v Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs bash-3.2# g++ -v Reading specs from... (0 Replies)
Discussion started by: lbslbs
0 Replies

3. Shell Programming and Scripting

automake distclean does work, but distcheck gives error

When I run autogen.sh(the auto hell stuffs+configure) and type "make distclean", I get a proper result(which can be built). However, when running autogen.sh and then "make distcheck", I get an error: ... rm -f Makefile ERROR: files left in build directory after distclean: ./src/MediaPlayer.c... (2 Replies)
Discussion started by: Tal500
2 Replies

4. UNIX for Dummies Questions & Answers

Compiling gcc to compile make to compile yaboot

I have just installed OpenBSD on a 333MHz PPC iMac G3. It has a 6GB HDD that has been partitioned as 1GB MacOS 8.5.1, 3GB MacOS X 10.3.9, 2GB OpenBSD 4.8. I now need to install a bootloader so that my computer can recognize the OpenBSD partition at startup. I have been trying to install... (0 Replies)
Discussion started by: t04st3r
0 Replies

5. Solaris

Compile php with curl on solaris 10 question

I have curl compiled into /usr/local. I needed to install another version into /usr/local/curl-7.19.5 and compile php using that directory. I believe I had done that but an ldd run against php shows it is using /usr/local/lib. I have my configure script below showing how it was built and php -i... (1 Reply)
Discussion started by: csgonan
1 Replies

6. Shell Programming and Scripting

make Fatal error: Command failed for target 'exp_inter.o'

I am trying to install Expect 5.43 on my Solaris 10 x86 PC. When I run the make file I get - Command failed for target 'exp_inter.o'. I tried to find the file (find / -name exp_inter.o -print 2>/dev/null) but could not. Where can I get this file from? (2 Replies)
Discussion started by: pazzy
2 Replies

7. Solaris

Gani Network Driver Won't Install - make: Fatal error: Don't know how to make targ...

I attached a README file that I will refer to. I successfully completed everything in the README file until step 4. # pwd /gani/gani-2.4.4 # ls COPYING Makefile.macros gem.c Makefile Makefile.sparc_gcc gem.h Makefile.amd64_gcc ... (1 Reply)
Discussion started by: Bradj47
1 Replies

8. Solaris

Errors trying to compile PHP for use with MySQL on Solaris 10

have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build: ./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies

9. UNIX for Dummies Questions & Answers

Solaris 9: make: Fatal error:Command failed for target

Hi everyone first of all you should know that I've been working with solaris for a few days only. :) I need to install some programs and I have had the following troubles: 1. When I used /.configure it showed the following message: "no acceptable C compiler found in $PATH" I included... (2 Replies)
Discussion started by: eldiego
2 Replies

Featured Tech Videos