HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   The PHP-MSSQL Module On CentOS 5.0 (http://www.howtoforge.com/forums/showthread.php?t=13417)

codex 14th June 2007 17:05

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

falko 15th June 2007 14:35

You can search for the file:
Code:

updatedb
locate php.spec


domeger 30th October 2007 06:32

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.

xloouch 29th July 2008 09:38

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

falko 30th July 2008 14:57

What exactly did you modify in php.spec?

xloouch 30th July 2008 15:08

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

falko 31st July 2008 18:14

Did you also do this?
Quote:

Edit the CFLAGS= line (~line 310) of the php.spec file - remove -Wno-pointer-sign.


All times are GMT +2. The time now is 20:58.

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