In both cases, the SQL Anywhere/ASA libraries need to be found by the
system loader at runtime. So, you need to have a copy of the SA/ASA
client libraries installed on the machine and have your LD_LIBRARY_PATH
set appropriately. So you need to set up Apache's environment to find
the client libraries. You can still connect to the server on the remote
machine, but you need a local copy of the client libraries to make it
happen.
Cheers,
Phil
Ok, thanks. But i have another problem with installing ASA10 and 11 as
well on web server.
When i try to load setup i get this:
takedown@web:~/ga1001$ ./setup
Checking System Requirements...
./setup: line 5079: /home/takedown/ga1001/./bin/dbinstall: No such
file or directory
ERROR: The /home/takedown/ga1001/./files.tic seems to be corrupted.
Please report this problem to Sybase Technical Support.
I try sqlanywhere 10, 11 and 11 web edition always same error. Server
is minimal(netinst) debian, maybe i dont have some library or
something?
Maybe there are another way to get client library?
Thanks.
apt-get install ia32-libs
Ray
thanks, that works.
If you only need the client libraries, you *could* simply copy them from
your other machine. Minimally you will need libdbcapi (only if you're
using the new PHP driver), libdbtasks, and libdblib. There may be
others, but those are the basics.
Cheers,
Phil
Damn, i install sqlanywhere 10, put this in envvars: /opt/
sqlanywhere10/bin64/sa_config.sh
but got same error.
Which version of the PHP driver are you using? If you are trying to use
the new one, you will need 10.0.1 build 3772 or higher. If you are
using the old one then you should be fine.
Another thing to consider is whether selinux is in your way. Being as
it's debian, I'm going to guess that's not the case, but it is something
that occasionally bites us.
Running phpinfo() is useful to determine what is in your environment.
Specifically look for LD_LIBRARY_PATH. It should contain the libXX
directory of your SQLAnywhere installation, where XX is the pointer size
of the PHP driver you are trying to use (which should match the pointer
size of your php executable (or mod_php, which should be the same as
that of Apache)).
Let me know what you find.
Finally, it works.
Fix your documentation please, they say i should add to apache
envvars /opt/
> > sqlanywhere10/bin64/sa_config.sh without source before that, this is error. When i add source to that everything fine.
Thanks.
After some testing we have another problem, it's a long story - just
database fields doesnt return values and our site just return variable
names instead of data. We try sql anywhere 11 with precompiled module
and also freetds php_sybase_ct, all the same. Now i just want setup
similar configuration just like our production machine. I download ASA
9.0.2 and cant find where i can get php module for that? Compiling
from source doesnt work as well as precompiled module(i think all new
modules linked to new sql anywhere libraries). We have 32-bit old
precompiled module php5-sqlanywhere9.so on our production machine, but
it ofcourse doesnt work, so i need a 64-bit module for asa9. Thanks.
Cheers,
Phil
yeah, we try do same query from windows tools(powerdesigner or
somethink i think) and it works.
Also, what is your query, how are you calling it (in PHP), and what
exact results are you getting?
Thanks,
Phil