mercredi 21 octobre 2020

libcrypto.so file is empty

I was trying ldd command and trying to copy required dependency to some other directory where by mistake I entered the below command.

cp libcrypto.so.1.0.0 => /lib/libcrypto.so.1.0.0 .

It made that libcrypto.so and libcrypto.so.1.0.0 file empty. I am new to linux and not sure how to resolve this. I entered wrong cp command which caused. Now, I am trying to run my cpp code where it gives compilation error as below:

/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/libcrypto.so: file not recognized: File truncated
collect2: error: ld returned 1 exit status

Thanks in advanced!!!

Aucun commentaire:

Enregistrer un commentaire