Install YAZ PHP extension- cpanel




Install YAZ PHP extension



You can cry install yaz using the following command. But you may encounter an erro while the installation.

# pecl install yaz

.
.
.
configure: error: YAZ not found (missing NONE)
ERROR: `/tmp/pear/temp/yaz/configure --with-yaz' failed.


You can install YAZ from source. You can follow the steps shown below to install it.

root@server [~]# cd /usr/local/src/
root@server [/usr/local/src]# wget http://ftp.indexdata.dk/pub/yaz/yaz-3.0.45.tar.gz
root@server [/usr/local/src]# tar xzf yaz-3.0.45.tar.gz
root@server [/usr/local/src]# cd yaz-3.0.45
root@server [/usr/local/src/yaz-3.0.45]# ./configure
root@server [/usr/local/src/yaz-3.0.45]# make
root@server [/usr/local/src/yaz-3.0.45]# make install

root@server [/usr/local/src/yaz-3.0.45]# cd ztest/
root@server [/usr/local/src/yaz-3.0.45/ztest]# ./yaz-ztest&
root@server [/usr/local/src/yaz-3.0.45/ztest]# ps aux | grep yaz
root     23922  0.0  0.0  21804  1540 pts/0    S    17:23   0:00 /usr/local/src/yaz-3.0.45/ztest/.libs/lt-yaz-ztest
root     24890  0.0  0.0   7216   816 pts/0    S+   17:27   0:00 grep yaz


You can verify whether it is working by running telnet on port 9999, from your local machine.

# telnet xx.xx.xx.xx 9999
Trying xx.xx.xx.xx...
Connected to xx.xx.xx.xx.
Escape character is '^]'

While running the above telnet command, you can find the following result in the terminal of server.

root@server [~]#
root@server [~#
root@server [~]# 17:27:49-15/06 lt-yaz-ztest(2) [session] Session - OK 2 tcp:::ffff:122.166.115.191 24977
17:28:12-15/06 lt-yaz-ztest(2) [warn] ODR error on incoming PDU: Required data element missing [element ] [near byte 0] 
17:28:12-15/06 lt-yaz-ztest(2) [warn] PDU dump:
    0: [UNIV 13] len=10       tl=1, ll=1 cons=0


That's it...

One thought on “Install YAZ PHP extension- cpanel”

Leave a Reply