phantomjs 1.5 on fedora – https problem (ssl and crypto issues)

I was facing this problem on a 64 bit fedora 17 environment, but the solution should work for fedora 16 as well.

A tried to run phantomjs 1.5 on my system and it could not load HTTPS pages, only HTTP. A symptom for this is that require('system').isSSLSupported is undefined.This is the script I’m running.

var page = require('webpage').create();
var url = 'https://github.com/';

page.open(url, function (status) {
  console.log(status);
  phantom.exit();
});

The response was always “fail”. After some reading and hair pulling, I found this and this, and managed to solve it. Actually, it was quite simple. All I needed to do was to run, as root:

ln -s /usr/lib64/libssl.so.10 /usr/lib/libssl.so.10
ln -s /usr/lib64/libcrypto.so.10 /usr/lib/libcrypto.so.10

After that, I was gifted with a nice “success” message🙂



Deixe uma resposta

Preencha os seus dados abaixo ou clique em um ícone para log in:

Logotipo do WordPress.com

Você está comentando utilizando sua conta WordPress.com. Sair / Alterar )

Imagem do Twitter

Você está comentando utilizando sua conta Twitter. Sair / Alterar )

Foto do Facebook

Você está comentando utilizando sua conta Facebook. Sair / Alterar )

Foto do Google+

Você está comentando utilizando sua conta Google+. Sair / Alterar )

Conectando a %s