ハブ君の寝言

日記のような何か

Net::TwitterをUbuntuにinstall

結論から言うと出来ませんでした。

まずここを参考
http://nabetama.com/blog/?p=158

sudo cpan -i Bundle::CPAN

はできた。

sudo cpan -i Net::Twitter

で、

make test had returned bad status, won't install without force

となる。もうやだ無理

sudo perl -MCPAN -e shell
cpan[0]>install Net::Twitter

で実行してみたが

Test Summary Report
-------------------
t/15_subclass.t              (Wstat: 0 Tests: 27 Failed: 0)
  TODO passed:   13-16, 18
Files=29, Tests=1679, 18 wallclock secs ( 0.36 usr  0.04 sys + 17.12 cusr  0.71 csys = 18.23 CPU)
Result: PASS
  MMIMS/Net-Twitter-3.14002.tar.gz
Tests succeeded but one dependency not OK (Crypt::SSLeay)
  MMIMS/Net-Twitter-3.14002.tar.gz
  [dependencies] -- NA
Running make install
  make test had returned bad status, won't install without force
Failed during this command:
 NANIS/Crypt-SSLeay-0.58.tar.gz               : writemakefile NO -- No 'Makefile' created

 MMIMS/Net-Twitter-3.14002.tar.gz             : make_test NO one dependency not OK (Crypt::SSLeay)

はい良くわからない。

cpan[3]> i Net::Twitter
i Net::Twitter
Module id = Net::Twitter
    CPAN_USERID  MMIMS (Marc Mims <mmims@cpan.org>)
    CPAN_VERSION 3.14002
    CPAN_FILE    M/MM/MMIMS/Net-Twitter-3.14002.tar.gz
    UPLOAD_DATE  2010-11-02
    MANPAGE      Net::Twitter - A perl interface to the Twitter API
    INST_FILE    (not installed)

何度やってもinstallできてないのでお手上げ。

Crypt::SSLeayってなんだよ!!

  • -

2010.12.05

nabnab氏のコメントを参考にっていうかそのまま打つ

> sudo aptitude install openssl lib-ssl
> curl -L http://cpanmin.us | sudo perl - --self-upgrade

curlねぇよバカって言われたので

> sudo apt-get install curl
> curl -L http://cpanmin.us | sudo perl - --self-upgrade
> sudo cpanm --interactive Net::Twitter

はい、SSLねぇよって言われますね。

とりあえずPerlのバージョンは

> perl -v
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi

opensslのある場所は多分

Using configuration from /usr/lib/ssl/openssl.cnf

Which SSL install path do you want to use?  /usr/lib/ssl/
/usr/lib/ssl/ does not appear to be an SSL library installation, since
the required header files were not found. The build cannot proceed.

わけわかめだったのでとりあえずperlbrewとか落としてみる

> curl -LO http://xrl.us/perlbrew
> chmod +x perlbrew
> ./perlbrew install
> rm perlbrew
> echo 'source ~/perl5/perlbrew/etc/bashrc' >> ~/.zshrc
> source ~/.zshrc
> perlbrew init
> perlbrew install perl-5.12.1
> perlbrew switch perl-5.12.1
> perl -v
This is perl 5, version 12, subversion 1 (v5.12.1) built for i686-linux

アップデートされたっぽいぞ!!
んで、capnmさんを使ってみる

> sudo cpanm Net::Twitter
...
Configuring Crypt-SSLeay-0.58 ... N/A
! Configure failed for Crypt-SSLeay-0.58. See /home/hoge/.cpanm/build.log for details.
! Bailing out the installation for Net-Twitter-3.14002. Retry with --prompt or --force.

さて、今日は糞してねるか。