Skip to content

Installing on Mac with HomeBrew #2

Description

@genio

Crypt::OpenSSL::VerifyX509 refuses to install on Macs where OpenSSL is installed via homebrew.

brew install openssl
export LDFLAGS=-L/usr/local/opt/openssl/lib
export CPPFLAGS=-I/usr/local/opt/openssl/include
export PKG_CONFIG_PATH=/usr/local/opt/openssl/lib/pkgconfig
cpanm IO::Socket::SSL

Is generally the path taken in this circumstance, however, with Crypt::OpenSSL::VerifyX509, one must:

cpanm --look Crypt::OpenSSL::VerifyX509
vim Makefile.PL

elsif (-d "/usr/local/ssl/include") {
    cc_inc_paths('/usr/local/ssl/include');
    cc_lib_paths('/usr/local/ssl/lib');
}

perl Makefile.PL
make
make test # fails with bad test
make install

Could you please alter the Makefile.PL to use the above ENV variables if they're set?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions