{"id":1385,"date":"2015-10-27T14:28:10","date_gmt":"2015-10-27T06:28:10","guid":{"rendered":"http:\/\/kaoru.tech\/?p=1385"},"modified":"2016-04-07T14:56:29","modified_gmt":"2016-04-07T06:56:29","slug":"i-mx%e4%ba%a4%e5%8f%89%e7%bc%96%e8%af%91openssl","status":"publish","type":"post","link":"http:\/\/kaoru.tech:7000\/wordpress\/?p=1385","title":{"rendered":"i.MX\u4ea4\u53c9\u7f16\u8bd1openssl"},"content":{"rendered":"<p>freescale\u7684i.MX\u91c7\u7528\u4e86yocto\u7684\u6846\u67b6\u7f16\u8bd1\u3002\u63d0\u53d6toolchain\u5e76\u5b89\u88c5\u540e\uff0c\u5728toolchain\u7684\u5b89\u88c5\u76ee\u5f55\u6709\u4e00\u4e2a\u811a\u672c\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u4ea4\u53c9\u7f16\u8bd1\u7684\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<h2>ISSUE<\/h2>\n<p>\u4f46\u662f\u5f53\u4f7f\u7528\u6b64\u73af\u5883\u53d8\u91cf\u7f16\u8bd1openssl\u540e\uff0c\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u95ee\u9898\uff1a<\/p>\n<pre>openssl.git$ .\/Configure -h\r\nperl: warning: Setting locale failed.\r\nperl: warning: Please check that your locale settings:\r\n        LANGUAGE = (unset),\r\n        LC_ALL = (unset),\r\n        LC_CTYPE = \"zh_CN.utf8\",\r\n        LANG = \"en_US.UTF-8\"\r\n    are supported and installed on your system.\r\nperl: warning: Falling back to the standard locale (\"C\").\r\nCan't locate File\/Spec\/Functions.pm in @INC (you may need to install the File::Spec::Functions module) (@INC contains: \/data\/toolchain\/imx-a7\/sysroots\/x86_64-pokysdk-linux\/\/usr\/lib\/perl\/5.20.0 \/data\/toolchain\/imx-a7\/sysroots\/x86_64-pokysdk-linux\/\/usr\/lib\/perl \/data\/toolchain\/imx-a7\/sysroots\/x86_64-pokysdk-linux\/\/usr\/lib\/perl\/5.20.0 \/data\/toolchain\/imx-a7\/sysroots\/x86_64-pokysdk-linux\/\/usr\/lib\/perl\/site_perl\/5.20.0 \/data\/toolchain\/imx-a7\/sysroots\/x86_64-pokysdk-linux\/\/usr\/lib\/perl\/vendor_perl\/5.20.0 \/opt\/poky\/1.8\/sysroots\/x86_64-pokysdk-linux\/usr\/lib\/perl\/site_perl\/5.20.0\/ \/opt\/poky\/1.8\/sysroots\/x86_64-pokysdk-linux\/usr\/lib\/perl\/site_perl\/5.20.0 \/opt\/poky\/1.8\/sysroots\/x86_64-pokysdk-linux\/usr\/lib\/perl\/vendor_perl\/5.20.0\/ \/opt\/poky\/1.8\/sysroots\/x86_64-pokysdk-linux\/usr\/lib\/perl\/vendor_perl\/5.20.0 \/opt\/poky\/1.8\/sysroots\/x86_64-pokysdk-linux\/usr\/lib\/perl\/5.20.0\/ \/opt\/poky\/1.8\/sysroots\/x86_64-pokysdk-linux\/usr\/lib\/perl\/5.20.0 \/opt\/poky\/1.8\/sysroots\/x86_64-pokysdk-linux\/usr\/lib\/perl\/5.20.0 .) at .\/Configure line 13.\r\nBEGIN failed--compilation aborted at .\/Configure line 13.\r\nopenssl.git$ \r\n<\/pre>\n<h2>FIXes<\/h2>\n<p>\u6b64\u65f6\u53ef\u4ee5\u901a\u8fc7\u624b\u52a8\u914d\u7f6e\u7f16\u8bd1\u73af\u5883\u89e3\u51b3\uff1a<\/p>\n<ol>\n<li>\u91cd\u65b0\u5f00\u4e00\u4e2ashell<\/li>\n<li>\u8bbe\u7f6e\u4ea4\u53c9\u7f16\u8bd1\u5668\u76ee\u5f55\u5230PATH\n<pre lang=\"bash\">$ export PATH=\/path\/to\/your\/install\/dir\/sysroots\/x86_64-pokysdk-linux\/usr\/bin\/arm-poky-linux-gnueabi:$PATH<\/pre>\n<\/li>\n<li>\u91c7\u7528\u901a\u752832\u4f4d\u914d\u7f6eAutoconf\n<pre lang=\"bash\">$ .\/Configure linux-generic32<\/pre>\n<\/li>\n<li>\u4fee\u6539Makefile\u4e2d\u7684CC\u4e3a\u4ea4\u53c9\u7f16\u8bd1\u5668\u7684GCC\uff0c\u6ce8\u610f\u4e0d\u8981\u5fd8\u4e86\u540e\u9762\u7684\u53c2\u6570\n<pre lang=\"vim\">CC=arm-poky-linux-gnueabi-gcc -march=armv7-a -mfloat-abi=hard -mfpu=neon -mtune=cortex-a7 --sysroot=\/data\/toolchain\/imx-a7\/sysroots\r\n\/cortexa7hf-vfp-neon-poky-linux-gnueabi<\/pre>\n<\/li>\n<li>\u7f16\u8bd1\n<pre lang=\"bash\">$ make<\/pre>\n<\/li>\n<\/ol>\n<h2>\u53c2\u8003<\/h2>\n<ul>\n<li><a href=\"http:\/\/berniechenopenvpn.blogspot.com\/2015\/10\/wpasupplicant-am335x.html\" target=\"_blank\">http:\/\/berniechenopenvpn.blogspot.com\/2015\/10\/wpasupplicant-am335x.html<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>freescale\u7684i.MX\u91c7\u7528\u4e86yocto\u7684\u6846\u67b6\u7f16\u8bd1\u3002\u63d0\u53d6toolchain\u5e76\u5b89\u88c5\u540e\uff0c\u5728toolchain\u7684\u5b89\u88c5\u76ee\u5f55\u6709\u4e00\u4e2a\u811a\u672c\u53ef\u4ee5\u7528\u6765\u8bbe\u7f6e\u4ea4\u53c9\u7f16\u8bd1\u7684\u73af\u5883\u53d8\u91cf\u3002 ISSUE \u4f46\u662f\u5f53\u4f7f\u7528\u6b64\u73af\u5883\u53d8\u91cf\u7f16\u8bd1openssl\u540e\uff0c\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u95ee\u9898\uff1a openssl.git$ .\/Configure -h perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = &#8220;zh_CN.utf8&#8221;, LANG =&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[259],"tags":[208,256,20,258,257],"class_list":["post-1385","post","type-post","status-publish","format-standard","hentry","category-yocto","tag-crosscompile","tag-i-mx","tag-openssl","tag-toolchain","tag-yocto"],"_links":{"self":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1385"}],"version-history":[{"count":7,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1385\/revisions"}],"predecessor-version":[{"id":1486,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1385\/revisions\/1486"}],"wp:attachment":[{"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1385"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/kaoru.tech:7000\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}