DB2 Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDB2 Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 19th, 2003, 07:07 PM
binarydude binarydude is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 17 binarydude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow Compiling PHP with IBM DB2 support...

Hello everyone. I'm new here. I am having a problem when trying to compile PHP 4.3.1 with IBM DB2 8.1.

I read over the documentation for both PHP and IBM for compiling and installing. I have the database up and running correctly. I wanted to compile PHP so I could connect to the database through PHP.

Everything was going well. I downloaded the tarball, set my options and I was off. Here are the options I specified:

--with-mysql
--with-apxs=/usr/local/apache/bin/apxs
--with-ibm-db2=/home/db2insta/sqllib

That went well.
'Make' went well.

It is when I ran 'Make Install' did I run into a problem. Here is the output when I ran 'Make Install':

/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 could be the problem? This is really kicking my butt. I could use help to get this resolved asap.

Thanks everyone. I appreciate your help.

binarydude

Reply With Quote
  #2  
Old February 20th, 2003, 11:23 AM
binarydude binarydude is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Posts: 17 binarydude User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Anyone have any idea on what the problem may be?

Possible that PHP 4.3.1 and IBM DB2 v8.1 will not work together at this point?

This is making me pull my hair out.

Any help would be great.

Thank you.

BD

Reply With Quote
  #3  
Old December 30th, 2003, 04:06 AM
james@freecpd james@freecpd is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Reading, UK
Posts: 3 james@freecpd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, I'm getting the same error as this. I think it something to do with a library dependency error, see

# ldd /usr/src/apache/php-4.3.4/sapi/cli/php

libcrypt.so.1 => /lib/libcrypt.so.1 (0x40028000)
libmysqlclient.so.10 => /usr//lib/libmysqlclient.so.10 (0x40055000)
libresolv.so.2 => /lib/libresolv.so.2 (0x40086000)
libm.so.6 => /lib/tls/libm.so.6 (0x40098000)
libdl.so.2 => /lib/libdl.so.2 (0x400ba000)
libnsl.so.1 => /lib/libnsl.so.1 (0x400be000)
libc.so.6 => /lib/tls/libc.so.6 (0x42000000)
libz.so.1 => /usr//lib/libz.so.1 (0x400d4000)
libnss_files.so.2 => /lib/libnss_files.so.2 (0x400e2000)
libnss_dns.so.2 => /lib/libnss_dns.so.2 (0x400ee000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

Did you ever find a fix? I think my problem was either caused by an upgrade from RH 8 - RH 9, or the fact that I had another installation of perl (built from binaries, rather than source). Apparently this can happen if php tries to load an old copy of php.ini at compile (it shouldn't load any copy of php.ini apparently).

Still if you ever found the problem I'd be very grateful, as short of a reinstall of RH without apache I can't see a resolution here

Regards,

James

Last edited by james@freecpd : December 30th, 2003 at 04:08 AM.

Reply With Quote
  #4  
Old April 17th, 2004, 10:15 PM
GregH GregH is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2004
Posts: 1 GregH User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I suspect you have already fixed your problem but i figured i would post in case someone else had the same problem. The solution turned out to be pretty simple. The file 'libdb2.so.1' is located in the '/opt/IBM/db2/V8.1/lib/' directory (it may be slightly different if you installed in a different location). All i did was copy the 'libdb2.so.1' file into the '/usr/lib/' directory and the 'make install' command worked fine...

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDB2 Development > Compiling PHP with IBM DB2 support...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway