尝试编译openssl代码时遇到以下错误。在“make install”步骤中获得以下错误。如果有人解决了这个问题,请告诉我。谷歌搜索有链接,但指向未解决的问题“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$
我经历了这个Error cp: cannot create regular file "": no such file or directory。但是,脚本文件由他编写。他有机会改变档案。但是,在openssl的情况下如何做?
我像这样配置了openssl
./Configure android shared --prefix=./../libs/armeabi --openssldir=openssl
并做了
make
make install
我也尝试过root权限,比如
sudo make install
但仍然得到同样的错误。
答案 0 :(得分:6)
花了很多时间(试错法)我得到了答案。不要在配置中给出相对路径。只提供像
这样的绝对路径./Configure android shared --prefix=`pwd`/../libs/armeabi --openssldir=openssl
由于相对路径“cp:无法创建常规文件`./../libs/armeabi/include/openssl/crypto.h':没有这样的文件或目录”这是失败的。