Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th June 2007, 17:05
codex codex is offline
Junior Member
 
Join Date: Nov 2006
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default The PHP-MSSQL Module On CentOS 5.0

The PHP-MSSQL Module On CentOS 5.0

i have server configured as The Perfect Setup - CentOS 5.0 (32-bit)

i will install MSSQL modules on that server

installation of freetds freetds-devel --enablerepo=rpmforge are succes

php-devel is installed

problem is that i cannot find php.spec file

there is nothing /usr/src/redhat/SPECS/ directory

what can i do for finish this installation

sorry for my EN
Reply With Quote
Sponsored Links
  #2  
Old 15th June 2007, 14:35
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

You can search for the file:
Code:
updatedb
locate php.spec
__________________
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 30th October 2007, 06:32
domeger domeger is offline
Junior Member
 
Join Date: Oct 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Does this even work in centos x64 ?, i know in the past i have never gotten it to work, since freedts was only built for x32.
Reply With Quote
  #4  
Old 29th July 2008, 09:38
xloouch xloouch is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi All

I did the HOWTO from
*http://www.howtoforge.com/installing...sql_centos5.0*

Now I i got some problems by compiling the php.spec....

here is the error:

Code:
+ CFLAGS='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -fno-strict-aliasing'
+ CPPFLAGS=-DLDAP_DEPRECATED=1
+ export CFLAGS CPPFLAGS
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.24067
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd php-5.1.6
+ LANG=C
+ export LANG
+ unset DISPLAY
+ '[' /var/tmp/php-root '!=' / ']'
+ rm -rf /var/tmp/php-root
+ pushd build-cgi
/usr/src/redhat/BUILD/php-5.1.6/build-cgi /usr/src/redhat/BUILD/php-5.1.6
+ make install INSTALL_ROOT=/var/tmp/php-root
make: *** No rule to make target `install'.  Stop.
error: Bad exit status from /var/tmp/rpm-tmp.24067 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.24067 (%install)
I changed also something in the php.spec, before i could start compiling. I had to ad %package mssql like this:
Code:
%package mssql
Group: Development/Languages
Requires: php = %{version}-%{release}, php-pdo
Summary: A module for PHP applications that use the MSSQL database.
provides: php_database
BuildRequires: freetds-devel

%description mssql
#The MSSQL package contains a dynamic shared object that will add support for accessing MSSQL databases to php.
If I would not add the package it will produce an other error..

Can someone please help me? i need the PHP-MSSQL connection..

Thx for your Help.

Greetings

Xloouch
Reply With Quote
  #5  
Old 30th July 2008, 14:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What exactly did you modify in php.spec?
__________________
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 30th July 2008, 15:08
xloouch xloouch is offline
Junior Member
 
Join Date: Jul 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I changed this from the script:

Code:
Group: Development/Languages
Requires: php = %{version}-%{release}, php-pdo
Summary: A module for PHP applications that use the MSSQL database.
provides: php_database
BuildRequires: freetds-devel

%description mssql
#The MSSQL package contains a dynamic shared object that will add support for accessing MSSQL databases to php.
to this:
Code:
%package mssql
Group: Development/Languages
Requires: php = %{version}-%{release}, php-pdo
Summary: A module for PHP applications that use the MSSQL database.
provides: php_database
BuildRequires: freetds-devel

%description mssql
#The MSSQL package contains a dynamic shared object that will add support for accessing MSSQL databases to php.
Because of an earlier compilation error
Reply With Quote
  #7  
Old 31st July 2008, 18:14
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Did you also do this?
Quote:
Edit the CFLAGS= line (~line 310) of the php.spec file - remove -Wno-pointer-sign.
__________________
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
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
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 09:29
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 13th March 2006 23:58
Webmin docs missing namit Server Operation 11 5th January 2006 09:51


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


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