0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Ubuntu で LWP::UserAgentでhttpsな通信するための環境構築

Last updated at Posted at 2017-05-30

とりあえずこれだけやっていれば使えるようになっているはず。
Ubuntu 16.04.02で確認

$ sudo apt-get install openssl.*perl
↑2018/01/03 上記必要なさそうなので削除


$ sudo apt-get install libssl-dev

$ sudo cpan -i LWP::UserAgent

//上手くhttps関連のモジュールが入らなかったら
$ sudo cpan -i YAML
$ sudo cpan -i Net::SSLeay
$ sudo cpan -i LWP::Protocol::https

失敗例:


SSLeay.xs:163:25: fatal error: openssl/err.h: そのようなファイルやディレクトリはありません

libssl-devが入ってない。
Net::SSLeayのインストールの前にlibssl-devを入れないと行けない。
LWP::Protocol::httpsはNet::SSLeayに依存するので後で入れないと行けない。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?