Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st August 2007, 00:34
wildgoosed wildgoosed is offline
Member
 
Join Date: Jul 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problems building php5

hey everyone.

i'm currently trying to re-install php5 from source on a fedora core 4 box (yes i know old). reason i am doing this from source is that i need mssql support which isn't included in the rpm i had used before.

i read that i needed to install freetds, so i downloaded the src and did the following commands...

./configure
make
make install

everything went fine with that install.

i didn't want to break any other packages that need php5 and that were currently using my rpm build of php5, so i used the configuation commands from the phpsysinfo output + the --with-mssql=/usr/src/freetds on my source install.

when i attempt to ./configure the php5 source, i get the following error...

Code:
checking for MSSQL support via FreeTDS... yes
configure: error: Could not find /usr/src/freetds/lib/libtds.a|so
[root@localhost php-5.2.3]# find / -name freetds
/usr/src/freetds

any ideas? thanks.
Reply With Quote
Sponsored Links
  #2  
Old 21st August 2007, 17:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I think --with-mssql=/usr/src/freetds is wrong (that the source directory, but you have already compiled and installed freetds). You must find out where freetds is installed (maybe /usr/lib or just /usr or something like that).
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 21st August 2007, 21:13
wildgoosed wildgoosed is offline
Member
 
Join Date: Jul 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I used the --prefix and was able to install freetds where i wanted to, but now i'm getting a new error when trying to compile php5...

My freetds dir is /usr/local/freetds
My php5 source is /usr/local/src/php5

Code:
configure: error: ODBC header file '/usr/include/sqlext.h' not found
Reply With Quote
  #4  
Old 21st August 2007, 23:32
wildgoosed wildgoosed is offline
Member
 
Join Date: Jul 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well I broke apache this afternoon and it took me about an hour to get it back up and running :/

What I'm wanting is php to have support for mssql and mysql. Can't I download modules for this? Why do I have to re-compile php5 ?

Last edited by wildgoosed; 21st August 2007 at 23:35.
Reply With Quote
  #5  
Old 22nd August 2007, 18:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by wildgoosed
Code:
configure: error: ODBC header file '/usr/include/sqlext.h' not found
Is ODBC installed? I think you need to install the dev version of ODBC as well. Do you see something like that in the output of
Code:
yum search odbc
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 23rd August 2007, 18:26
wildgoosed wildgoosed is offline
Member
 
Join Date: Jul 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I get a tone of results for that search. Any idea what ODBC rpm I need installed? php-odbc ?
Reply With Quote
  #7  
Old 23rd August 2007, 18:38
wildgoosed wildgoosed is offline
Member
 
Join Date: Jul 2007
Posts: 46
Thanks: 0
Thanked 0 Times in 0 Posts
Default

If this helps, heres all the modules I have installed...

Code:
[root@localhost src]# rpm -qa | grep php-
php-devel-5.0.4-10.5
php-mysql-5.0.4-10.5
php-odbc-5.0.4-10.5
php-imap-5.0.4-10.5
php-5.0.4-10.5
php-ldap-5.0.4-10.5
php-gd-5.0.4-10.5
php-xml-5.0.4-10.5
php-xmlrpc-5.0.4-10.5
php-pear-5.0.4-10.5
So it looks like I should be able to connect to mysql databases as I have the module installed, but isn't there a php-mssql module?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vtiger and php5 problems riccge Installation/Configuration 1 15th December 2006 00:44
eaccelerator installation - can't find php5-config tom Programming/Scripts 9 15th May 2006 15:36
Empty Recycle Bin jon335 General 40 6th May 2006 11:56
Installation Problems right after php building nagual Installation/Configuration 3 31st October 2005 10:28
Installation Problems right after php building nagual Installation/Configuration 1 31st October 2005 08:30


All times are GMT +2. The time now is 23:00.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.