No caso do CentOS 6.3 e
openssl-1.0.0-25.el6_3.1.x86_64
openssl-devel-1.0.0-25.el6_3.1.x86_64
Você pode ter que criar links no diretório / usr / lib se o instalador do pecl install exibir um erro:
checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's libraries
ERROR: '/var/tmp/stomp/configure --with-openssl-dir=/usr' failed
receita de fantoche para superar
# Handle pecl install error on x86_64 CentOS 6.3
if $architecture == 'x86_64' {
file {'/usr/lib/libssl.so':
ensure => link,
target => '/usr/lib64/libssl.so',
require => Package['openssl', 'openssl-devel'],
before => Exec['install_pecl_stomp'],
}
file {'/usr/lib/libcrypto.so':
ensure => link,
target => '/usr/lib64/libcrypto.so',
require => Package['openssl', 'openssl-devel'],
before => Exec['install_pecl_stomp'],
}
$pecl_lib_dir = 'lib64'
} else {
$pecl_lib_dir = 'lib'
}
exec {'install_pecl_stomp':
command => 'printf "/usr" | pecl install stomp',
creates => "/usr/${pecl_lib_dir}/php/modules/stomp.so",
require => Package['php', 'openssl', 'openssl-devel'],
}