-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
General informations
Operating system : Ubuntu 18.04 LTS x64
OCS Inventory informations
Packager version : 2.4.1
Problem's description
packageOCSAgent.sh was failing, but after some research, I installed few more packages and then script was successful.
sudo apt-get install libssl-dev liblz-dev checkinstall zlib1g-dev flex bison
However Net::SSLeay error is still appearing and out of ideas now.
ubuntu@ip:~/Packager-for-Unix$ /opt/ocsinventory/ocsinventory-agent -s http://localhost:9059/ocsinventory/ --basevardir=/opt/ocsinventory/var/lib/ocsinventory-agent --tag=MYTAG --lazy --logfile=/opt/ocsinventory/var/log/ocsinventory-agent
Failed to load Ocsinventory::Agent, Can't locate loadable object for module Net::SSLeay in @INC (@INC contains: /opt/ocsinventory/perl/lib/site_perl/5.26.1/x86_64-linux /opt/ocsinventory/perl/lib/site_perl/5.26.1 /opt/ocsinventory/perl/lib/5.26.1/x86_64-linux /opt/ocsinventory/perl/lib/5.26.1) at /opt/ocsinventory/perl/lib/5.26.1/IO/Socket/SSL.pm line 19.
Compilation failed in require at /opt/ocsinventory/perl/lib/5.26.1/IO/Socket/SSL.pm line 19.
BEGIN failed--compilation aborted at /opt/ocsinventory/perl/lib/5.26.1/IO/Socket/SSL.pm line 19.
Compilation failed in require at /opt/ocsinventory/perl/lib/5.26.1/Ocsinventory/Agent/Network.pm line 7.
BEGIN failed--compilation aborted at /opt/ocsinventory/perl/lib/5.26.1/Ocsinventory/Agent/Network.pm line 7.
Compilation failed in require at /opt/ocsinventory/perl/lib/5.26.1/Ocsinventory/Agent.pm line 33.
BEGIN failed--compilation aborted at /opt/ocsinventory/perl/lib/5.26.1/Ocsinventory/Agent.pm line 33.
Compilation failed in require at (eval 1) line 1.
BEGIN failed--compilation aborted at (eval 1) line 1.
you can run the agent directly for its source directory with --devlib
I manually compiled Net::SSLeay to confirm there is no error in its compilation
/usr/include/openssl/ocsp.h:333:1: note: expected ‘OCSP_CERTID * {aka struct ocsp_cert_id_st *}’ but argument is of type ‘const OCSP_CERTID * {aka const struct ocsp_cert_id_st *}’
DECLARE_ASN1_FUNCTIONS(OCSP_CERTID)
^
rm -f blib/arch/auto/Net/SSLeay/SSLeay.so
LD_RUN_PATH="/usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu" cc -shared -O2 -L/usr -L/usr/lib -L/usr/local/lib -fstack-protector-strong SSLeay.o -o blib/arch/auto/Net/SSLeay/SSLeay.so \
-L/usr -L/usr/lib -lssl -lcrypto -lz \
chmod 755 blib/arch/auto/Net/SSLeay/SSLeay.so
Manifying 2 pod documents
Can someone please help?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels