<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Renate,</p>
<p><br>
</p>
<p>installing yaz in e.g. PHP7.4 is - as usual with yaz, since it is not a default package with PHP - a bit tricky, and there are several ways to do so, most of them not working out-of-the-box, also typically
<span>😉 E.g. using </span></p>
<p>sudo pecl install yaz</p>
<p>as can be found in instructions online didn't work for me due to all kinds of missing files or errors.</p>
<p><br>
</p>
<p>Here is what I did : </p>
<p></p>
<div>1. Add the following lines in your sources.d list (or create a file e.g. yaz.list in that directory) :</div>
<div> deb https://ftp.indexdata.com/ubuntu focal main</div>
<div> deb-src https://ftp.indexdata.com/ubuntu focal main</div>
<div>[this will add the repo of the maintainer of php-yaz indexdata to your installation, in principle also guaranteeing following up for future releases]</div>
<div>A one-time-only effort also is to add a key for that repo from your home-directory : </div>
<div>
<div><span style="font-size: 12pt;"> wget https://ftp.indexdata.com/debian/indexdata.asc</span><br>
</div>
<div> sudo apt-key add indexdata.asc</div>
<br>
</div>
<div>2. run the command </div>
<div> sudo apt-get install php7.4-yaz</div>
<div>and this command should install all necessary files.</div>
<div><br>
</div>
<div>3. add in php.ini of your PHP7.x installation (in /etc/php) :</div>
<div> extension=yaz</div>
<br>
<p></p>
<p>4. restart apache with </p>
<p> sudo service apache2 restart </p>
<p><br>
</p>
<p>In my case it added the yaz-module into my PHP7.4 info.php : </p>
<p><img size="146515" contenttype="image/png" id="img305564" style="max-width: 99.9%; user-select: none;" contextid="img675589" tabindex="0" src="cid:26e4536c-3fbd-4cb5-b4e5-8d1cb6534bc5"><br>
</p>
<p><img size="33142" contenttype="image/png" id="img836494" style="max-width: 99.9%; user-select: none;" contextid="img469633" tabindex="0" src="cid:e88df78c-02c9-42d8-a638-aaa84c5c2fe1"><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText"><br>
</div>
<div class="PlainText">I tested this successfully on the current GitHub repo-version of ABCD2.2 .</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">Hope it helps !</div>
<div class="PlainText">We will add such instructions in the final distribution.</div>
<div class="PlainText"><br>
</div>
<div class="PlainText">Egbert de Smet<br>
Universiteit Antwerpen</div>
</span></font></div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Renate Morgenstern <rmorgenstern@iway.na><br>
<b>Sent:</b> Wednesday, September 1, 2021 5:42 PM<br>
<b>To:</b> Egbert De Smet<br>
<b>Subject:</b> Re: [Isis-users] Z3950 not working on ABCD2.2 - Linux and Windows 10</font>
<div> </div>
</div>
<div>
<p></p>
<div style="background-color:#FFEB9C; width:100%; border-style:solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:'Calibri'; color:Black; text-align:left">
<span style="color:#9C6500; font-weight:bold">CAUTION:</span> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</div>
<br>
<p></p>
<div>
<div>Egbert,</div>
<div>I copied the missing files - there were more.</div>
<div>I am sending you the output of info.php as a docx file. Hope it will reach you.</div>
<div>Yaz is not listed. So, the problem is with yaz, as you are saying.</div>
<div>I tested on the https:/abcd.namscience.com site, and it is also not working. The same problem.</div>
<div><br>
</div>
<div>Thanks for your help,</div>
<div>About the new OPAC on the above server - I sent a message to Guilda 2x. The first response from Guilda said it could be the css file, and she would look into it.</div>
<div>I do not understand that it is working on my own laptop. </div>
<div><br>
</div>
<div>The sending of email from the IAH OPAC does not work. Sendmail is installed and I can send from the command line. I do not know what mail server it needs?</div>
<div>Regards</div>
<div>Renate</div>
<div><br>
</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid; padding-left:1ex">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p>Hi,</p>
<p><br>
</p>
<p>the file <span style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px">inc_div-helper.php, which is reported missing, is present in my copy of ABCD2.2 in the common-subdirectory
of htdocs/central - which is a copy of the GitHub-repo online, please check for it yourself.</span></p>
<p><span style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px">The (only) other real problem is that your error-messages indicate that the necessary yaz-scripts, providing the
function 'yaz_connect()' cannot be found, indicating that the php-yaz libraries are not installed properly. Do you see it in the info.php script result-page ?</span></p>
<p><span style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px">Make sure it is installed in the PHP-version you are currently running, when using several versions (e.g. PHP7.2
and 7.4) it should be separately installed in both. </span></p>
<p><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="PlainText">Egbert de Smet<br>
Universiteit Antwerpen</div>
</span></font></div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> isis-users <isis-users-bounces+egbert.desmet=ua.ac.be@iccisis.org> on behalf of Renate Morgenstern <rmorgenstern@iway.na><br>
<b>Sent:</b> Wednesday, September 1, 2021 3:22 PM<br>
<b>To:</b> isis-users@iccisis.org<br>
<b>Subject:</b> [Isis-users] Z3950 not working on ABCD2.2 - Linux and Windows 10</font>
<div> </div>
</div>
<div>
<p></p>
<div style="background-color:#FFEB9C; width:100%; border-style:solid; border-color:#9C6500; border-width:1pt; padding:2pt; font-size:10pt; line-height:12pt; font-family:'Calibri'; color:Black; text-align:left">
<span style="color:#9C6500; font-weight:bold">CAUTION:</span> This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.</div>
<br>
<p></p>
<div>
<div>Hi,</div>
<div><br>
</div>
<div>I wanted to use Z3950 searching and downloading on ABCD 2.2 today. But I get the following message</div>
<div><br>
</div>
<div>[Wed Sep 01 08:20:02.923349 2021] [proxy_fcgi:error] [pid 11667] [client 127.0.0.1:55116] AH01071: Got error 'PHP message: PHP Warning: include(../common/inc_div-helper.php): failed to open stream: No such file or directory in /opt/ABCD2.2/www/htdocs/central/dataentry/z3950-01.php
on line 160PHP message: PHP Warning: include(): Failed opening '../common/inc_div-helper.php' for inclusion (include_path='.:/usr/share/php') in /opt/ABCD2.2/www/htdocs/central/dataentry/z3950-01.php on line 160PHP message: PHP Notice: Undefined index: z3950_server
in /opt/ABCD2.2/www/htdocs/central/dataentry/z3950-01.php on line 163PHP message: PHP Fatal error: Uncaught Error: Call to undefined function yaz_connect() in /opt/ABCD2.2/www/htdocs/central/dataentry/z3950-01.php:249\nStack trace:\n#0 {main}\n thrown in
/opt/ABCD2.2/www/htdocs/central/dataentry/z3950-01.php on line 249', referer:</div>
<div><br>
</div>
<div>php-yaz is installed in Linux and Windows 10.</div>
<div><br>
</div>
<div>I tested it on an old ABCD1.5 installation, and there it is ok.</div>
<div>Will it be fixed at some time?</div>
<div>Thanks</div>
<div>Renate Morgenstern</div>
<div><br>
</div>
<div><br>
</div>
<div><span>
<pre>-- <br></pre>
<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>Renate Morgenstern<br>
Tel.: +264 61 242124<br>
Cell: +264 81 2910284<br>
Fax: 088637518<br>
<div>10023, Windhoek, Namibia </div>
</td>
</tr>
</tbody>
</table>
</span></div>
</div>
</div>
</div>
</div>
</blockquote>
<div><span>
<pre>-- <br></pre>
<table cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td>Renate Morgenstern<br>
Tel.: +264 61 242124<br>
Cell: +264 81 2910284<br>
Fax: 088637518<br>
<div>10023, Windhoek, Namibia </div>
</td>
</tr>
</tbody>
</table>
</span></div>
</div>
</div>
</div>
</div>
</body>
</html>