Skip to Content.
Sympa Menu

freetds - Re: help: access ms sql server 7 with php3

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Sam Sam" <s4m AT mailcity.com>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: help: access ms sql server 7 with php3
  • Date: Mon, 01 May 2000 00:31:47 -0700


any links would be very
>>appreciated...
>
>Two steps.
>
>One you have to make an entry into the interfaces file in
>/usr/local/freetds. Next use the sybase functions to >connect to your server.

when I compiled the php I got this error
/usr/bin/ld:cannot open -lcs: No such file or directory
collect2: ld returned 1 exit status
make: *** [dummy] Error 1






Get your FREE Email at http://mailcity.lycos.com
Get your PERSONALIZED START PAGE at http://my.lycos.com

From ms AT suedkm.franken.de Mon May 01 04:10:38 2000
Return-Path: <ms AT suedkm.franken.de>
Received: from ilsa.franken.de ([193.175.24.42]) by franklin.oit.unc.edu with
SMTP (Lyris Server version 3.0); Mon, 01 May 2000 04:10:33 -0400
Received: by ilsa.franken.de (Smail3.2 #1)
id m12mBI7-000VJVC; Mon, 1 May 2000 10:10:55 +0200 (CEST)
Received: from suedkm.franken.de(193.175.24.182)
via SMTP by ilsa.franken.de, id smtpda29131; Mon May 1 10:10:55 2000
Received: from suedkm.franken.de (ms@localhost [127.0.0.1])
by suedkm.franken.de (8.9.3/8.9.3) with ESMTP id KAA00923
for <freetds AT franklin.oit.unc.edu>; Mon, 1 May 2000 10:07:45 GMT
Sender: ms AT suedkm.franken.de
Message-ID: <390D5771.32414BFB AT suedkm.franken.de>
Date: Mon, 01 May 2000 10:07:45 +0000
From: Michael =?iso-8859-1?Q?S=FCdkamp?= <ms AT suedkm.franken.de>
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.10 i586)
X-Accept-Language: en
MIME-Version: 1.0
To: TDS Development Group <freetds AT franklin.oit.unc.edu>
Subject: Re: freetds digest: April 27, 2000
References:
<LYR101231-52443-2000.04.28-00.00.45--ms#suedkm.franken.de AT franklin.oit.unc.edu>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi,

several users wrote me in the meantime that they found my little instruction
how
to set up FreeTDS, PHP3 and Apache useful. However, the meaning of the PWD
file
is a common question. Therefore I added some details here and repost the
instruction.

Best Regards

Michael

------------------------------------------------------------------------------
1. Build FreeTDS
$ ./configure --prefix=/path/to/freetds --with-tdsver=4.2
$ make
$ make install
$ export SYBASE=/path/to/freetds
$ export LD_LIBRARY_PATH=/path/to/freetds/lib (or expand if already
existing)

In order to run the test suite edit the PWD file which is found in the
current directory and enter the host name for your SQL Server, the database
name and your login data. This file is solely necessary for running
"make test" and not for the real operation.

$ make test

2. Build PHP3 with FreeTDS
$ cd apache_1.3.X
$ ./configure --prefix=/path/to/apache
$ cd ../php-3.0
$ ./configure --with-shared-apache=../apache_1.3.X
--with-sybase-ct=/path/to/freetds
[--with-mysql=/path/to/mysql]
$ make
$ make install

(libphp3.module is beeing copied to ../apache_1.3.x/src/modules/php3.
Remove all Sybase/Freetds related lib entries except lct)


3. Build Apache with dynamic PHP support

$ cd ../apache_1.3.X
$ ./configure --prefix=/path/to/apache \
--activate-module=src/modules/php3/libphp3.a \
--enable-shared=php3
$ make
$ make install

(activate "AddType ...php3" in httpd.conf)

(set SYBASE and LD_LIBRARY_PATH in start script apachectl
or whichever is used; see above)





Archive powered by MHonArc 2.6.24.

Top of Page