List Info

Thread: Help on php4-yaz with Ubuntu




Help on php4-yaz with Ubuntu
user name
2006-11-10 03:46:23
Hi,
Please I need help with PHP4-YAZ, Ive installed it
succesfully, but when i 
try to run a script with YAZ functions i receive:

Fatal error: Call to undefined function: yaz_connect()

during the installation i got this...................
......
Setting up php4-yaz (1.0.7-2) ...
You are installing YAZ support for php4, but it's not
enabled in your 
etc/php4/apache/php.ini
To enable it you need to add this line:
extension=yaz.so
Do you want me to add it now [Y/n] ?y
................

i received the same message with the path:
/etc/php4/cgi/php.ini

when i run a phpinfo(); sript, i cant find YAZ anywhere, so
it may not be 
enabled

My apache server is in another path:
	/etc/php4/apache2/php.ini
and i have uncommented the line: extension=yaz.so
but still not working

Is it that my server is apache2 instead of apache???

(btw im using Ubuntu 5.10)
Thanks...

____________________________________________________________
_____
Visita MSN Latino Noticias: Todo lo que pasa en el mundo y
en tu paín, ¡en 
tu idioma! http://latino.msn.com
/noticias/


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
Help on php4-yaz with Ubuntu
user name
2006-11-10 09:39:09
Luis Palacios wrote:
> Hi,
> Please I need help with PHP4-YAZ, Ive installed it
succesfully, but when 
> i try to run a script with YAZ functions i receive:
> 
> Fatal error: Call to undefined function: yaz_connect()
> 
> during the installation i got this...................
> ......
> Setting up php4-yaz (1.0.7-2) ...
> You are installing YAZ support for php4, but it's not
enabled in your 
> etc/php4/apache/php.ini
> To enable it you need to add this line:
> extension=yaz.so
> Do you want me to add it now [Y/n] ?y
> ................
> 
> i received the same message with the path:
/etc/php4/cgi/php.ini
> 
> when i run a phpinfo(); sript, i cant find YAZ
anywhere, so it may not 
> be enabled
> 
> My apache server is in another path:    
/etc/php4/apache2/php.ini
> and i have uncommented the line: extension=yaz.so
> but still not working
> 
> Is it that my server is apache2 instead of apache???
Yes. Add
extension=yaz.so
to /etc/php4/apache2/php.ini
and restart apache2.

We'll try to improve the php4-yaz package so it enabled this
for Apache 
2 as well.

/ Adam

> 
> (btw im using Ubuntu 5.10)
> Thanks...
> 
>
____________________________________________________________
_____
> Visita MSN Latino Noticias: Todo lo que pasa en el
mundo y en tu paín, 
> ¡en tu idioma! http://latino.msn.com
/noticias/
> 
> 
> _______________________________________________
> Yazlist mailing list
> Yazlistlists.indexdata.dk
> http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
> 
> 


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
Help on php4-yaz with Ubuntu
user name
2006-11-11 04:30:58
>Yes. Add
>extension=yaz.so
>to /etc/php4/apache2/php.ini
>and restart apache2.
>
>We'll try to improve the php4-yaz package so it enabled
this for Apache 2 
>as well.
>
>/ Adam
>Yazlist mailing list
>Yazlistlists.indexdata.dk
>http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list

..................
Hi!.. thanks for the advice... but still not working..
Ive included the line:
extension=yaz.so  to the /etc/php4/apache2/php.ini file and
restarted 
apache2 server as well

sudo /etc/init.d/apache2 restart
* Forcing reload of web server  (Apache2)...                
                
         [ ok ]

but still cant use any YAZ functions.... Ive also
"dicovered something" , 
ive included some code i found in another email to my
phpinfo page:

if(!extension_loaded('yaz') && !dl('yaz.so')) 
trigger_error('Arrrr.............

and i get this error message:

Warning: dl(): Unable to load dynamic library 
'/usr/lib/php4/20050606/yaz.so' -
/usr/lib/php4/20050606/yaz.so: cannot open 
shared object file: No such file or directory in
/var/www/info.php on line 2

and i found that in the directory /usr/lib/php4/20050606/
there is only the 
file: mysql.so
and the file: yaz.so is in another directory:
/usr/lib/php4/20010901

any clue?

thanks...

____________________________________________________________
_____
Visita MSN Latino Noticias: Todo lo que pasa en el mundo y
en tu paín, ¡en 
tu idioma! http://latino.msn.com
/noticias/


_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
Help on php4-yaz with Ubuntu
user name
2006-11-11 20:54:48
Hi,

first a little caveat: I've never used {K,X,}Ubuntu.

On Sat, 11 Nov 2006 04:30:58 +0000
"Luis Palacios" <luchex2002hotmail.com> wrote:

> but still cant use any YAZ functions.... Ive also
"dicovered something" , 
> ive included some code i found in another email to my
phpinfo page:
> 
> if(!extension_loaded('yaz') && !dl('yaz.so')) 
> trigger_error('Arrrr.............
> 
> and i get this error message:
> 
> Warning: dl(): Unable to load dynamic library 
> '/usr/lib/php4/20050606/yaz.so' -
/usr/lib/php4/20050606/yaz.so: cannot open 
> shared object file: No such file or directory in
/var/www/info.php on line 2
> 
> and i found that in the directory
/usr/lib/php4/20050606/ there is only the 
> file: mysql.so
> and the file: yaz.so is in another directory:
/usr/lib/php4/20010901

Probably it breaks horribly, but try to create a copy or
symlink so
that the module is in the current search path. But the
different paths
indicate a different extension ABI, that's why I think it'll
break. If
there's no precompiled extension for a more recent PHP, you
only can
resort to compile your own. You need to install some
development tools
and some header files in order to do this.

-hwh

_______________________________________________
Yazlist mailing list
Yazlistlists.indexdata.dk
http://lists.indexdata.dk/cgi-bin/mailman/listinfo/yaz
list
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )