LinuxQuestions.org
Review your favorite Linux distribution.
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 02-19-2003, 04:34 PM   #1
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Rep: Reputation: 30
Question PHP compile/install question...


Hello everyone.
I have a question on PHP compile/install. At this time, I currently have PHP 4.3.0 installed. However, I would like to do a bit of reconfiguring with my PHP so I can add a few features to it.

First, I am very new to PHP, so I am learning. Please be patient.

Secondly, I want to know how I can recompile PHP with more options? At this time, I have PHP compiled with support for Apache and MySQL. What I would like to do is compile PHP so I can add support for ODBC.

I was wondering if someone can point me in the right direction on how I would go about recompiling PHP to add extra features?

I do appreciate it. I look forward to your response.
THank you.

Tarballed
 
Old 02-19-2003, 04:49 PM   #2
faolán
LQ Newbie
 
Registered: Nov 2002
Distribution: Mandrake 9.0
Posts: 5

Rep: Reputation: 0
you should just be able to download the source code for php, and then:

./configure <insert options you want to include>
make
make install

for a complete list of the configuration options you can throw at php check out http://www.php.net/manual/en/install.configure.php.
 
Old 02-19-2003, 05:16 PM   #3
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
Thanks for the input. I was doing some recompiling (adding IBM's DB2 database actually.

Everything was going well. I specified my options, then typed make. So far so good.

Then, when I typed make install, I received this error:

Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
Installing PEAR environment: /usr/local/lib/php/
/home/downloads/php-4.3.1/sapi/cli/php: error while loading shared libraries: libdb2.so.1: cannot open shared object file: No such file or directory
make[1]: *** [install-pear-installer] Error 127
make: *** [install-pear] Error 2

Any ideas on what is going on how to fix it?

I appreciate any help.

Tarballed
 
Old 02-19-2003, 05:40 PM   #4
tarballed
Member
 
Registered: Jun 2002
Distribution: RH, FC, FreeBSD,OpenBSD
Posts: 326

Original Poster
Rep: Reputation: 30
The file in question: libdb2.so.1

I have found in a different directory. it was in the directory where IBM DB2 was installed:

/opt/IBM/db2/V8.1/lib

I am so close to getting this installed. Anyone have any suggestions on what I can do to fix this?

Thanks.


Tarballed
 
  


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
Install PHP - Error During Compile Sitaga Linux - Software 3 01-13-2005 01:04 PM
mysql.so and php install question Jake_B Linux - Software 0 10-19-2004 09:01 PM
PHP mysql_connect Guru - Install Question/Issue whohasit Programming 4 07-16-2004 07:28 PM
php & xml install question benjam Linux - Newbie 2 07-08-2004 01:41 PM
PHP compile question... bige Linux - Software 4 05-05-2003 10:52 AM


All times are GMT -5. The time now is 03:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration