[Koha] Net::OAuth2::AuthorizationServer dependency is missing

Zahid Iqbal zahidiqbal.isb at gmail.com
Fri Jan 7 19:29:01 NZDT 2022


i am trying to install as said
but it gives  error when installing
sudo cpanm -i CryptX
--> Working on CryptX
Fetching http://www.cpan.org/authors/id/M/MI/MIK/CryptX-0.075.tar.gz ... OK
Configuring CryptX-0.075 ... OK
Building and testing CryptX-0.075 ... FAIL
! Installing CryptX failed. See /root/.cpanm/work/1641535759.7375/build.log
for details. Retry with --force to force install it.

copied the last part from the 1641535759.7375/build.log file

cp lib/Crypt/PK/DH.pm blib/lib/Crypt/PK/DH.pm
cp lib/Crypt/PK/RSA.pm blib/lib/Crypt/PK/RSA.pm
cp lib/Crypt/PK/X25519.pm blib/lib/Crypt/PK/X25519.pm
cp lib/Crypt/PRNG/ChaCha20.pm blib/lib/Crypt/PRNG/ChaCha20.pm
cp lib/Crypt/Stream/Sober128.pm blib/lib/Crypt/Stream/Sober128.pm
cp lib/Crypt/PK/ECC.pm blib/lib/Crypt/PK/ECC.pm
cp lib/CryptX.pm blib/lib/CryptX.pm
cd src && make ARFLAGS="rcD" RANLIB=":" AR="ar" CC="x86_64-linux-gnu-gcc"
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
make[1]: Entering directory
x86_64-linux-gnu-gcc -Iltm -Iltc/headers -DLTC_SOURCE -DLTC_NO_TEST
-fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -fPIC -O2 -g  -DARGTYPE=4 -c ltc/ciphers/aes/aes.c
-o ltc/ciphers/aes/aes.o
In file included from ltc/headers/tomcrypt_private.h:4:0,
                 from ltc/ciphers/aes/aes.c:25:
ltc/headers/tomcrypt.h:6:20: fatal error: assert.h: No such file or
compilation terminated.
Makefile:196: recipe for target 'ltc/ciphers/aes/aes.o' failed
make[1]: *** [ltc/ciphers/aes/aes.o] Error 1
make[1]: Leaving directory
Makefile:2101: recipe for target 'src/liballinone.a' failed
make: *** [src/liballinone.a] Error 2
-> FAIL Installing CryptX failed. See
/root/.cpanm/work/1641535759.7375/build.log for details. Retry with --force
to force install it.

On Thu, Jan 6, 2022 at 3:25 PM Tomas Cohen Arazi <tomascohen at gmail.com>

> There was a problem with the CryptX library  in old versions... Try:
> $ sudo apt install cpanminus
> $ sudo cpanm -i CryptX
> Also, why are you installing an old Koha version? You only need
> Net::OAuth2::AuthorizationServer if you are going to connect using the
> 'client credentials' OAuth2 flow. If you are going to stick with  just
> Basic Authentication, don't worry about that dependency issue. I suggest
> you move to Koha 21.05 to enjoy the API more :-D
> El jue, 6 ene 2022 a las 4:50, Zahid Iqbal (<zahidiqbal.isb at gmail.com>)
> escribió:
>>  I have installed koha 19.05 on virtual machine in vmware station.
>> i have to activate api for koha for testing i have enabled
>> RESTBasicAuth,
>> RESTOAuth2ClientCredentials
>> RESTPublicAPI
>> these 3 parameter through Web services preferences are enabled
>> now when i saw on Perl modules in about.pl
>> Net::OAuth2::AuthorizationServer (0.16) is not installed.
>> and
>> it give me warning in
>> Preferences and parameters
>> *Warning* System preference 'RESTOAuth2ClientCredentials' is set, but the
>> required Net::OAuth2::AuthorizationServer dependency is missing. The
>> feature is disabled.
>> i have check the perl depancy in terminal
>> sudo apt-get install libnet-oauth2-authorizationserver-perl
>> and when i install through terminal it give me
>> libnet-oauth2-authorizationserver-perl is already the newest version
>> (0.17-1~koha+1).
>> anyone tell if i am doing wrong or some other issues in koha?
>> please can anyone give me any solution for enabling api and testing api.
>> Regards,
>> Zahid Iqbal
>> _______________________________________________
>> Koha mailing list  http://koha-community.org
>> Koha at lists.katipo.co.nz
>> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
> --
> Tomás Cohen Arazi
> Theke Solutions (http://theke.io)
> ✆ +54 9351 3513384
> GPG: B2F3C15F


More information about the Koha mailing list