Skip to content

Instantly share code, notes, and snippets.

@ernierasta
Last active December 1, 2020 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ernierasta/12f5bdc37360e1b23888bc9792a1dfa7 to your computer and use it in GitHub Desktop.
Save ernierasta/12f5bdc37360e1b23888bc9792a1dfa7 to your computer and use it in GitHub Desktop.
How to install OpenSSL no Void Linux
curl -O https://www.openssl.org/source/openssl-1.1.0f.tar.gz
tar xf openssl-1.1.0f.tar.gz
cd openssl-1.1.0f

# solve glob problem
sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/bsd_glob/;#g" test/recipes/90-test_fuzz.t
sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/bsd_glob/;#g" test/recipes/80-test_ssl_new.t
sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/bsd_glob/;#g" test/recipes/40-test_rehash.t
sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/bsd_glob/;#g" test/build.info
sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/bsd_glob/;#g" test/run_tests.pl
sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/bsd_glob/;#g" util/process_docs.pl
sed -i "s#'File::Glob' => qw/glob/;#'File::Glob' => qw/bsd_glob/;#g" Configure

./Configure --prefix=/usr/local linux-x86_64 -fPIC
make -j$(nproc)
sudo make install

Now you should be able to compile programs which require OpenSSL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment