Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting cp cannot create regular file No such file or directory in openssl

I am getting the below errors when trying to compile the openssl code. Getting below error during "make install" step. Please let me know if anyone resolved this issue. Google search has links but are pointing to an unresolved issue "http://marc.info/?l=openssl-users&m=121239973214424"

making install in crypto...
make[1]: Entering directory `/home/test/openssl-1.0.1f/crypto'
cp: cannot create regular file `./../libs/armeabi/include/openssl/crypto.h': No such file or directory
chmod: cannot access `./../libs/armeabi/include/openssl/crypto.h': No such file or directory
cp: cannot create regular file `./../libs/armeabi/include/openssl/opensslv.h': No such file or directory
chmod: cannot access `./../libs/armeabi/include/openssl/opensslv.h': No such file or directory
cp: cannot create regular file `./../libs/armeabi/include/openssl/opensslconf.h': No such file or directory
chmod: cannot access `./../libs/armeabi/include/openssl/opensslconf.h': No such file or directory
cp: cannot create regular file `./../libs/armeabi/include/openssl/ebcdic.h': No such file or directory
chmod: cannot access `./../libs/armeabi/include/openssl/ebcdic.h': No such file or directory
cp: cannot create regular file `./../libs/armeabi/include/openssl/symhacks.h': No such file or directory
chmod: cannot access `./../libs/armeabi/include/openssl/symhacks.h': No such file or directory
cp: cannot create regular file `./../libs/armeabi/include/openssl/ossl_typ.h': No such file or directory
chmod: cannot access `./../libs/armeabi/include/openssl/ossl_typ.h': No such file or directory
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/test/openssl-1.0.1f/crypto'
make: *** [install_sw] Error 1
test@ubuntu:~/openssl-1.0.1f$ 

I went through this Error cp: cannot create regular file "": no such file or directory. But, there as script file was written by him. He got a chance to change the file. But, how to do in-case of openssl?

I configured openssl like this

./Configure android shared --prefix=./../libs/armeabi --openssldir=openssl

and did a

make
make install

I tried in root permissions as well, like

sudo make install

but still getting the same error.

like image 428
Suman Avatar asked Apr 28 '14 14:04

Suman


1 Answers

After spending a lots of time (Trial and error method) I got the answer. DON'T give the relative path in configure. Give ONLY absolute paths like

./Configure android shared --prefix=`pwd`/../libs/armeabi --openssldir=openssl

due to relative path "cp: cannot create regular file `./../libs/armeabi/include/openssl/crypto.h': No such file or directory" this is failing.

like image 120
Suman Avatar answered Oct 05 '22 22:10

Suman