我正在尝试安装openssl 1.1.0 。
我运行./config && make && make test
我没有通过这个testing :
../test/recipes/40-test_rehash.t ........... 1/5 # Failed test 'Testing that we aren't running as a privileged user, such as root' # at ../test/recipes/40-test_rehash.t line 49. # Looks like you failed 1 test of 5. ../test/recipes/40-test_rehash.t ........... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/5 subtests (less 1 skipped subtest: 3 okay)
我不认为我可以安装这个没有根。 我错过了什么?
你可以跳过testing: ./config && make && make install
但最好的方法是: 尝试为你的发行版find合适的软件包 。
您是否阅读了README文件? 在步骤Nr.3中的“详细安装”部分下:
- 成功构build之后,应该对这些库进行testing。 跑:'……
有一个笔记写
注意: 您必须从非特权帐户运行testing (或者如果您的平台允许,暂时禁用您的特权)。
所以也许你应该跑步
make make test sudo make install
这对我有效。
我刚刚在Solaris 10上完成了构buildOpenSSL 1.1.0f。这些是我必须采取的步骤才能成功构build和testing。 我将其validation为我正在运行的Solaris版本的最低步骤。 在做“make install”之前,我也发现了一切,应该作为非特权用户来运行。
更新到较新版本的Perl(Solaris默认是5.8.4,太旧了)
# /opt/csw/bin/pkgutil -y -i CSWperl # mv /usr/bin/perl /usr/bin/perl_5.8.4 # ln -s /opt/csw/bin/perl /usr/bin/perl
安装Perl模块:
# cpan cpan> install LWP cpan> install YAML cpan> upgrade cpan> exit # cpan cpan> install Test::More cpan> install Text::Template cpan> exit
将“-xarch = sparc”添加到00-base-templates.conf中
# vi openssl-1.1.0f/Configurations/00-base-templates.conf
设置库path
# LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/usr/local/mysql/lib/mysql
configuration
# ./config --prefix=/usr/openssl --openssldir=/usr/local/ssl
运行make的东西
# make depend # make # make test [ ... ] All tests successful. Files=95, Tests=493, 831 wallclock secs ( 2.27 usr 1.56 sys + 697.89 cusr 57.54 csys = 759.26 CPU) Result: PASS `test' is up to date.