Re: PHP+Debian+FreeTDS

From: David Quinn (dquinn_removethis_at_presco.co.uk)
Date: 02/19/04


Date: Thu, 19 Feb 2004 16:07:13 +0000

David Quinn wrote:

> I'm switching our intranet server from Redhat 7.3 to Debian Woody. We
> connect to a Microsoft SQL6.5 server and I was using FreeTDS for this
> purpose. I'm new to debian and am getting to grips with apt-get.
>
> I have installed FreeTDS from source on the debian box (because the
> freetds0 package appears to be broken?) but it appears that the default
> php4 installed using 'apt-get install php4' does not support freetds. No
> problem, I thought, I'll compile from source. Using the 'apt-get source
> php4' method shown in the APT HOWTO,I get the source and have modified
> the debian/rules file to include 'with-mssql=/usr/local/freetds' option
> as described in the PHP docs.
>
> When I try to do 'apt-get build-dep php4' I get a message saying that
> 'the package caudium-dev cannot be found'. I'm using apache and caudium
> appears to be an alternative web server. How do I either compile
> without caudium support or find the caudium-dev package?
>
> I've been googling for hours and seem to be going in circles. Every
> method I try to get a working apache/PHP/freetds installation on debian
> seems to hit a brick wall. Has anyone successfully done this and can
> point me in the right direction with a howto link or some tips?
>
> Thanks in Advance
>
> David Quinn
>
>

I managed to fix this problem. If anyone else has the problem and comes
across this thread, the reason was quite simple.

When I installed Debian, I scanned the first two discs for packages and
added the security.debian.org server to the package sources list. What
I didn't do and should have done was add a debian mirror to the list
(/etc/apt/sources.list) as well, in my case :

deb http://ftp.uk.debian.org/debian stable main contrib

Once I'd rebuilt the package list with 'apt-get update', I was able to
build the php source without a problem.

David Quinn



Relevant Pages

  • Re: Which Distro?
    ... [snip list of Slack package tools] ... that's also true of rpm in it's basic guise - and the way we got ... server, and after auditing, transfer it to a local file server in an ... >There was a reason I started deploying the Debian servers. ...
    (comp.os.linux)
  • Re: Apache2: httpd.conf or apache2.conf?
    ... If you compile your own server, ... >I am not sure about the version of the apache2 server in the Debian ... >package, but I think the version used is not the newest. ... Also I think apache likes to refer to their software as httpd, ...
    (Debian-User)
  • PHP+Debian+FreeTDS
    ... I'm switching our intranet server from Redhat 7.3 to Debian Woody. ... I have installed FreeTDS from source on the debian box (because the ... 'the package caudium-dev cannot be found'. ...
    (alt.php)
  • Re: changing roots on: dpkg -i
    ... > build my own package? ... IMHO the easiest way to get an XFree86 4.3 X server ... plus the ~official Debian ... "Theoretical politics is interesting. ...
    (Debian-User)
  • Re: building from source advice
    ... >> handling any source builds on my server. ... >> aware of if I choose to build some software from source on a stable Debian ... provide the dependencies when you install programs using other means ... Another option is to learn how to package the program yourself.What I ...
    (Debian-User)