LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-19-2002, 02:07 PM   #1
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,538

Rep: Reputation: 134Reputation: 134
Question recompiling php question


i just recompiled php and again i have to think about 2 questions:

1. if i configure --with-mysql=path/2/mysql i should know the correct path but whatever i try - it's the wrong one (mysql installed as rpm). where are the header files? compiler always complains about that

2. in the php INSTALL i read that if i want to recompile php i have to delete config.cache. wtf is that? i cant find it.

all in all everything working fine, i guess, but i'd really like to know that.
thnx a lot!
jens
 
Old 07-19-2002, 02:34 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
1) I don't remember if it needs path to binary or to main directory. It's /usr or /usr/bin
2) If it's first compilation from the source you have, it's not there. Config.cache is a file when configuration from last run of configure is kept. It's a good idea to remove it (and run all checks) when you've modified your configuration. It should be in php source main directory.
 
Old 07-19-2002, 02:35 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
1) I don't remember if it needs path to binary or to main directory. It's /usr or /usr/bin . You may also need to install mysql-devel (headers).
2) If it's first compilation from the source you have, it's not there. Config.cache is a file when configuration from last run of configure is kept. It's a good idea to remove it (and run all checks) when you've modified your configuration. It should be in php source main directory.
 
Old 07-20-2002, 07:49 AM   #4
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,538

Original Poster
Rep: Reputation: 134Reputation: 134
Hi Mara, thanks for your reply + congrats you've become guru!
unfortunately you were wrong this time. it's neither /usr nor /usr/bin. i tried it and /usr/lib, too.

but i guess it's not too important.( tommorrow i'll go on holiday for a couple dayz.)
cheers, jens
 
Old 07-20-2002, 08:02 AM   #5
rverlander
Member
 
Registered: May 2002
Distribution: A few
Posts: 488

Rep: Reputation: 30
For MySQL RPM --with-mysql=/usr or --with-mysql=/usr/include or --with-mysql=/usr/include/mysql usally works

and config.cache dun need to be deleted unless u have compiled the exact same ver b4
 
Old 07-20-2002, 04:10 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,569

Rep: Reputation: 171Reputation: 171
I think that:
whereis mysql
should return the correct dir (just remove bin).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Recompiling php with gdbm option DGath Linux - Software 1 11-30-2005 04:02 AM
recompiling php arichardson Fedora 2 11-21-2005 07:17 AM
PHP recompiling ( without source ) TheSpy Slackware 2 02-21-2005 01:43 PM
recompiling php kris-nz Linux - Software 1 11-30-2004 10:52 PM
Questions about recompiling Apache and PHP (static) Maarten_Holland Linux - Newbie 0 05-09-2004 05:52 AM


All times are GMT -5. The time now is 11:40 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration