thedatahub / Datahub-Factory

Datahub::Factory - Transport metadata between Collection Management Systems and the Datahub
Other
2 stars 4 forks source link

cpanm installation fails on WebService::Rackspace::CloudFiles #7

Closed netsensei closed 7 years ago

netsensei commented 7 years ago

Installing dependencies through cpanm fails for package WebService::Rackspace::CloudFiles. Run cpanm --installdeps . in the root of the project to install the depencies. You'll get this error:

Building and testing DateTime-Format-HTTP-0.42 ... OK
Successfully installed DateTime-Format-HTTP-0.42
! Installing the dependencies failed: Module 'Crypt::SSLeay' is not installed
! Bailing out the installation for WebService-Rackspace-CloudFiles-1.10.
! Installing the dependencies failed: Module 'WebService::Rackspace::CloudFiles' is not installed
! Bailing out the installation for Datahub-Factory-0.02.
7 distributions installed

Installing Crypt:SSLeay yields another error:

openssl-version.c:2:10: fatal error: 'openssl/opensslv.h' file not found
#include <openssl/opensslv.h>
netsensei commented 7 years ago

Okay. You'll need to set OPENSSL_INCLUDE and OPENSSL_LIB when installing Crypt::SSLeay on OSX. Like this:

OPENSSL_INCLUDE=/usr/local/opt/openssl/include OPENSSL_LIB=/usr/local/opt/openssl/lib cpanm Crypt::SSLeay

This is assuming you have the OpenSSL C libraries installed.