LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2001, 09:31 AM   #1
suprabeener
LQ Newbie
 
Registered: Aug 2001
Location: vancouver. canada
Distribution: rh6.2
Posts: 6

Rep: Reputation: 0
problems compiling ming for php


hello,

i'm trying to install ming into an existing php/apache install.

despite the ludicrously simple install instrustions i am having problems. specifically, i run:

make static

from the /usr/src/ming.../ (i want to run it as a module), after which the instructions say to run make from usr/src/ming.../ext_php. but this yields:

make: ***No rule to make target `ming.c', needed by `ming.o'. Stop.

i decided to try compiling it right into php. everything goes as expected until the php compile reaches the ming part, and then:

make[3]: *** No rule to make target `ming.lo', needed by `libming.la'. Stop.

looking suspiciously familiar.

what am i doing wrong? what else can i try? what do these error messages mean?

thank you kindly.
 
Old 10-22-2001, 02:38 AM   #2
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Re: problems compiling ming for php

Quote:
Originally posted by suprabeener
hello,

i'm trying to install ming into an existing php/apache install.

despite the ludicrously simple install instrustions i am having problems. specifically, i run:

make static

Not that this is going to help, but here is some info on make:

http://www2.linuxjournal.com/lj-issues/issue6/2839.html


This guy does a very nice job of explaining make:

http://www.seul.org/archives/linuxga.../msg00102.html

Follow the message, there's more good stuff later on


And did you do ./configure first?


OHHH! (Slapping myself on the head)

Is there a static target in the makefile? I'll bet that's what's missing.


John
 
Old 10-22-2001, 12:38 PM   #3
suprabeener
LQ Newbie
 
Registered: Aug 2001
Location: vancouver. canada
Distribution: rh6.2
Posts: 6

Original Poster
Rep: Reputation: 0
the general info on make is much appreciated.

i did do a ./configure on php (--with-ming) but not on ming. there is something i was wondering ... on some examples there was a path specified here (but only as $PATH or something, not explicitly). i felt that i was meant to put an explicit path there, but i wasn't sure whether it meant a path to the ming src, or to ming once it was installed. as some examples had no path here, and i was unsure, i tried it without.

after doing a little reading i took a look at the ming makefile. the majority of it i'm still not understanding but i was able to ascertain that there is a target for static.

that is, there is a target if lines like:
Code:
static:
	cd src && make static
constitute a target. the make file in src (which i assume that is referencing) has lines:
Code:
static: ${OFILES}
        cd blocks && make
        cd actioncompiler && make
        ar r libming.a blocks/*.o ${OFILES} ${COMPILEROFILES}
        ranlib libming.a  # bsd requires this?
        cp libming.a ..
i'm not seeing any mention of the php_ext directory from which my second make was failing.

here's the makefile from php_ext:
Code:
CC = gcc -Wall -g

prefix=`php-config --prefix`

DEFINES = -DHAVE_MING -DCOMPILE_DL_MING -DZEND_NEW_ERROR_HANDLING

CFILES = ming.c

php_ming.so: ming.o ../libming.a
        ${CC} -shared -fpic ming.o ../libming.a -o php_ming.so -lm

ming.o: ${CFILES}
        ${CC} ${DEFINES} -c ming.c -I. -I.. `php-config --includes`

../libming.a:
        cd ..; make static

clean:
        rm -f php_ming.so

install:
        cp php_ming.so `php-config --extension-dir`
        echo "Don't forget to add 'extension=php_ming.so' to php.ini!"
the line ming.o: ${CFILES} is the one that is stopping the program?

indeed there is no ming.c in the php_ext directory.

hmmm. there's a ming-4.0.6.c and a ming-4.0.7.c.

Last edited by suprabeener; 10-22-2001 at 12:41 PM.
 
Old 10-22-2001, 12:44 PM   #4
suprabeener
LQ Newbie
 
Registered: Aug 2001
Location: vancouver. canada
Distribution: rh6.2
Posts: 6

Original Poster
Rep: Reputation: 0
ok,

i made ming.c a symbolic link to ming-4.0.6.c and everything went swimmingly. now i'll see if i can actually get ming to work!!

thanks plenty, i've learned lots more than i expected in this little escapade, and i've always wondered about makefiles.

cheers.
 
Old 10-31-2001, 04:23 PM   #5
rootboy
Member
 
Registered: Oct 2001
Distribution: Mint 15
Posts: 770

Rep: Reputation: 51
Quote:
Originally posted by suprabeener
ok,

i made ming.c a symbolic link to ming-4.0.6.c and everything went swimmingly. now i'll see if i can actually get ming to work!!

thanks plenty, i've learned lots more than i expected in this little escapade, and i've always wondered about makefiles.

cheers.
Excellent!


John
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing ming with python support on suse 9.0 xenithi Programming 0 01-17-2005 10:34 PM
Trying to install ming for use with PHP kingfisher Linux - Newbie 1 01-06-2005 05:01 AM
Problems compiling php with xml enabled bullshit Linux - Newbie 2 05-07-2004 06:39 PM
Problems compiling php with imap, ssl... support tveiga Linux - Software 1 01-16-2004 09:06 PM
compiling PHP 4.3.4 bmw5002 Linux - Software 2 12-27-2003 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration