Sybase

Sybase

am 16.06.2007 18:12:26 von El Bekko

Hello,

I've installed Sybase ASE-15 Express on a CentOS-5 machine. All went
well there, configuration is done and all.

Now I'd like to connect, from my Windows XP localhost (WAMP5), to this
Sybase server.
So I install the Sybase PC Client, made a connection, ... works fine.
But when I try enabling php_sybase_ct.dll, I get the following error:

[16-Jun-2007 17:25:12] PHP Warning: PHP Startup: Unable to load dynamic
library 'c:/wamp/php/ext/php_sybase_ct.dll' - The specified module could
not be found.
in Unknown on line 0

Does anyone know how to make this work correctly?

Thanks,
Ben.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 08:18:12 von php

Ben,

first of all, check if the file php_sybase_ct.dll actually exist in the
directory c:\wamp\php\ext\

If it does, I've had some luck with just moving dll-files that don't get
included correctly to other paths. Like the PHP main path (c:\wamp\php\)
Try that too.

Mike



Ben skrev:
> Hello,
>
> I've installed Sybase ASE-15 Express on a CentOS-5 machine. All went
> well there, configuration is done and all.
>
> Now I'd like to connect, from my Windows XP localhost (WAMP5), to this
> Sybase server.
> So I install the Sybase PC Client, made a connection, ... works fine.
> But when I try enabling php_sybase_ct.dll, I get the following error:
>
> [16-Jun-2007 17:25:12] PHP Warning: PHP Startup: Unable to load
> dynamic library 'c:/wamp/php/ext/php_sybase_ct.dll' - The specified
> module could not be found.
> in Unknown on line 0
>
> Does anyone know how to make this work correctly?
>
> Thanks,
> Ben.
>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 11:27:07 von El Bekko

Mikael,

The file actually exists. I've tried copying it to various places (php
root, wamp root, system32 and the WINDOWS folder), but still no luck.

Ben

Mikael Grön wrote:
> Ben,
>
> first of all, check if the file php_sybase_ct.dll actually exist in the
> directory c:\wamp\php\ext\
>
> If it does, I've had some luck with just moving dll-files that don't get
> included correctly to other paths. Like the PHP main path (c:\wamp\php\)
> Try that too.
>
> Mike
>
>
>
> Ben skrev:
>> Hello,
>>
>> I've installed Sybase ASE-15 Express on a CentOS-5 machine. All went
>> well there, configuration is done and all.
>>
>> Now I'd like to connect, from my Windows XP localhost (WAMP5), to this
>> Sybase server.
>> So I install the Sybase PC Client, made a connection, ... works fine.
>> But when I try enabling php_sybase_ct.dll, I get the following error:
>>
>> [16-Jun-2007 17:25:12] PHP Warning: PHP Startup: Unable to load
>> dynamic library 'c:/wamp/php/ext/php_sybase_ct.dll' - The specified
>> module could not be found.
>> in Unknown on line 0
>>
>> Does anyone know how to make this work correctly?
>>
>> Thanks,
>> Ben.
>>

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 14:25:20 von Niel Archer

Hi

Look in php.ini or use phpinfo() to check your configuration. Make sure
that 'c:\wamp\php\ext\' is the extension_dir path, assuming that is the
name of your directory.

Also make sure you have the Sybase client libraries that this extension
requires. I have no idea where to get them, but the requirement is
listed in the Windows install instructions

Niel

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 14:27:58 von El Bekko

Niel Archer wrote:
> Hi
>
> Look in php.ini or use phpinfo() to check your configuration. Make sure
> that 'c:\wamp\php\ext\' is the extension_dir path, assuming that is the
> name of your directory.

Loading extensions works fine, I'm able to load cURL and mysql just fine.

> Also make sure you have the Sybase client libraries that this extension
> requires. I have no idea where to get them, but the requirement is
> listed in the Windows install instructions
>
> Niel

I have the Sybase Open Client installed (with Sybase Central etc).

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 14:33:24 von Niel Archer

Hi

> I have the Sybase Open Client installed (with Sybase Central etc).

Are the libraries in a location that PHP has access to. For example,
the MySQL client libraries pretty much have to be in the php directory
or it doesn't work.

Niel

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 14:48:05 von El Bekko

Niel Archer wrote:
> Hi
>
>> I have the Sybase Open Client installed (with Sybase Central etc).
>
> Are the libraries in a location that PHP has access to. For example,
> the MySQL client libraries pretty much have to be in the php directory
> or it doesn't work.
>
> Niel

There shouldn't be a problem with that, it all runs under the same user
on Windows XP, so access issues shouldn't be occuring. The Open Client
is located in C:\sybase and PHP is located in C:\wamp\php.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 14:55:12 von Niel Archer

Hi

> There shouldn't be a problem with that, it all runs under the same user
> on Windows XP, so access issues shouldn't be occuring. The Open Client
> is located in C:\sybase and PHP is located in C:\wamp\php.

It's not a user/permission issue, but where PHP will look. Years ago I
tried "tidying" up the MySQL libraries so that I only had one set to
keep up to date. PHP wouldn't run without a copy in its directory, even
though they were in the PATH and the user had permission to use them.

Niel

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 15:10:19 von El Bekko

Niel Archer wrote:
> Hi
>
>> There shouldn't be a problem with that, it all runs under the same user
>> on Windows XP, so access issues shouldn't be occuring. The Open Client
>> is located in C:\sybase and PHP is located in C:\wamp\php.
>
> It's not a user/permission issue, but where PHP will look. Years ago I
> tried "tidying" up the MySQL libraries so that I only had one set to
> keep up to date. PHP wouldn't run without a copy in its directory, even
> though they were in the PATH and the user had permission to use them.
>
> Niel

I see. Which files do you suggest I copy then?
When doing a quick search through the Sybase folder I didn't see
anything relating to PHP, just connectors for ADO.NET, ODBC, ...

Ben

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 15:30:32 von Niel Archer

Hi

> I see. Which files do you suggest I copy then?

I have no idea. I've never used Sybase so wouldn't know what files are
there.

> When doing a quick search through the Sybase folder I didn't see
> anything relating to PHP, just connectors for ADO.NET, ODBC, ...

It wouldn't be relating to PHP. It's the Sybase client library that the
PHP extension is compiled/linked against. It *might* be called
something like libsybase.dll, or it may not even exist in that
installation.

Their web-site lists the following components in the developers SDK:

Open Client
Embedded SQL/C
Embedded SQL/COBOL
jConnect for JDBC
ODBC Driver for Adaptive Server Enterprise
OLE DB Provider for Adaptive Server Enterprise
ADO.NET for Adaptive Server Enterprise

three of which you've already identified.


Niel

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 15:58:57 von Niel Archer

Hi

I did some googling. The file is probably called "libct.dll"

Niel

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Sybase

am 18.06.2007 21:29:47 von El Bekko

Niel Archer wrote:
> Hi
>
> I did some googling. The file is probably called "libct.dll"
>
> Niel

Thanks.
After some more googling myself I found that the files had been renamed
in the new Open Client. So I renamed them, copied them to the PHP folder
(both PHP root and ext), and checked with a dependency scanner. It said
all DLLs were loaded, but when restarting Apache I'm still getting the
same error.
I even tried copying the needed files to system32 and the windows
folder, still no luck.

Ben

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php