01647

ustreamer-01647

ocamltterというtwitterクライアント

要点

  • twitterクライアントをインストールするよ
  • コケたよ

メモ

今日も今日とて.はて,これはどういう意味なんだろう.後で調べる.

ocamltter は ターミナルで動作する Twitter クライアントです。OCamlの対話環境を使って動作するのでOCamlの関数を利用することができます。または対話的にオリジナル機能やボットなどを開発することができます。

ocamltterで日常的にOCamlに触れることによって、自然に関数型言語(ML)の技術を身につけることができるでしょう。

ProofCafe - ocamltter

MLからは機械学習を連想しちゃう.

OCaml is a general purpose industrial-strength programming language with an emphasis on expressiveness and safety. Developed for more than 20 years at Inria it benefits from one of the most advanced type systems and supports functional, imperative and object-oriented styles of programming.

OCaml :: Home

OPAM is a source-based package manager for OCaml. It supports multiple simultaneous compiler installations, flexible package constraints, and a Git-friendly development workflow. Managing your OCaml installation can be as simple as:

OPAM - Home

CPAMのOCaml版だ.

さあインストールだ.

sudo add-apt-repository ppa:avsm/ppa
sudo apt-get update
sudo apt-get install ocaml opam m4
opam init
/home/paul/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true

m4はocamltterインストール時にPATHに無いって言われたからだ.

$ opam install ocamltter
The following actions will be performed:
 - install ocamlfind.1.3.3 [required by ocamltter]
 - install cryptokit.1.7 [required by ocamltter]
 - install ocurl.0.5.6 [required by ocamltter]
 - install omake.0.9.8.6-0.rc1 [required by ocamltter]
 - install ounit.1.1.2 [required by ocamltter]
 - install pcre-ocaml.6.2.5 [required by ocamltter]
 - install type_conv.109.28.00 [required by ocamltter]
 - install tiny_json.1.1.2 [required by ocamltter]
 - install meta_conv.1.1.2 [required by ocamltter]
 - install pa_ounit.109.34.00 [required by ocamltter]
 - install tiny_json_conv.1.4.0 [required by ocamltter]
 - install spotlib.2.3.0 [required by ocamltter]
 - install orakuda.1.1.0 [required by ocamltter]
 - install ocamltter.2.1.1
14 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
Do you want to continue ? [Y/n] 

コケたよ

=-=-= Installing orakuda.1.1.0 =-=-=
Downloading http://opam.ocamlpro.com/archives/orakuda.1.1.0+opam.tar.gz.
Extracting /home/paul/.opam/archives/orakuda.1.1.0+opam.tar.gz.
Building orakuda.1.1.0:
  ocaml setup.ml -configure --prefix /home/paul/.opam/system
  ocaml setup.ml -build
  ocaml setup.ml -install
The compilation of orakuda.1.1.0 failed.
Uninstalling orakuda.1.1.0:
  ocaml setup.ml -uninstall

Due to some errors while processing { meta_conv.1.1.2, ocurl.0.5.6, orakuda.1.1.0 }, the following actions will NOT be proceeded:
 - install ocamltter.2.1.1
 - install tiny_json_conv.1.4.0

==== ERROR [while installing meta_conv.1.1.2] ====
# opam-version    1.0.0
# os              linux
# command         ocaml setup.ml -build
# path            /home/paul/.opam/system/build/meta_conv.1.1.2
# exit-code       1
# env-file        /home/paul/.opam/system/build/meta_conv.1.1.2/meta_conv-c743ac.env
# stdout-file     /home/paul/.opam/system/build/meta_conv.1.1.2/meta_conv-c743ac.out
# stderr-file     /home/paul/.opam/system/build/meta_conv.1.1.2/meta_conv-c743ac.err
### stdout ###
...[truncated]
--- Checking for ocamlopt.opt... (FAILED - no ocamlopt.opt found)
--- Checking for ocamlopt... (found /usr/bin/ocamlopt)
--- Checking whether ocamlc understands the "z" warnings... (yes)
*** omake: finished reading OMakefiles (0.42 sec)
--- Checking if ocamldep understands -modules... (yes)
- scan pa scan-ocaml-pa_meta_conv.ml
+ ocamlfind ocamldep -package type_conv -pp camlp4of -modules pa_meta_conv.ml
     | Shell.ocamldep-postproc()
*** omake: 39/167 targets are up to date
*** omake: failed (0.73 sec, 3/3 scans, 0/0 rules, 22/133 digests)
### stderr ###
...[truncated]
   This expression should use a => binding.
File OMyMakefile: line 669, characters 2-21:
   Warning: old-style foreach expression.
   This expression should use a => binding.
sh: 1: camlp4of: not found
Preprocessing error on file pa_meta_conv.ml
*** omake: targets were not rebuilt because of errors:
   <scanner pa/scan-ocaml-pa_meta_conv.ml>
      depends on: pa/pa_meta_conv.ml
E: Failure("Command 'cp OMakeroot.in OMakeroot; PREFIX=/home/paul/.opam/system omake' terminated with error code 2")


==== ERROR [while installing ocurl.0.5.6] ====
# opam-version    1.0.0
# os              linux
# command         ./configure
# path            /home/paul/.opam/system/build/ocurl.0.5.6
# exit-code       1
# env-file        /home/paul/.opam/system/build/ocurl.0.5.6/ocurl-a71bb4.env
# stdout-file     /home/paul/.opam/system/build/ocurl.0.5.6/ocurl-a71bb4.out
# stderr-file     /home/paul/.opam/system/build/ocurl.0.5.6/ocurl-a71bb4.err
### stdout ###
...[truncated]
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for libcurl cflags... 
### stderr ###
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
./configure: line 2585: curl-config: command not found
configure: error: libcurl was not found


==== ERROR [while installing orakuda.1.1.0] ====
# opam-version    1.0.0
# os              linux
# command         ocaml setup.ml -build
# path            /home/paul/.opam/system/build/orakuda.1.1.0
# exit-code       1
# env-file        /home/paul/.opam/system/build/orakuda.1.1.0/orakuda-b76d46.env
# stdout-file     /home/paul/.opam/system/build/orakuda.1.1.0/orakuda-b76d46.out
# stderr-file     /home/paul/.opam/system/build/orakuda.1.1.0/orakuda-b76d46.err
### stdout ###
...[truncated]
--- Checking for ocamlopt.opt... (FAILED - no ocamlopt.opt found)
--- Checking for ocamlopt... (found /usr/bin/ocamlopt)
--- Checking whether ocamlc understands the "z" warnings... (yes)
*** omake: finished reading OMakefiles (0.26 sec)
--- Checking if ocamldep understands -modules... (yes)
- scan pa scan-ocaml-pa_command.ml
+ ocamlfind ocamldep -package pcre,camlp4 -pp camlp4of -modules pa_command.ml
     | Shell.ocamldep-postproc()
*** omake: 47/125 targets are up to date
*** omake: failed (4.75 sec, 6/6 scans, 10/17 rules, 34/146 digests)
### stderr ###
...[truncated]
   Warning: old-style foreach expression.
   This expression should use a => binding.
*** omake: warning: stdout is not a tty, disabling the progress bar
   (use --progress to override).
sh: 1: camlp4of: not found
Preprocessing error on file pa_command.ml
*** omake: targets were not rebuilt because of errors:
   <scanner pa/scan-ocaml-pa_command.ml>
      depends on: pa/pa_command.ml
E: Failure("Command 'cp OMakeroot.in OMakeroot; PREFIX=/home/paul/.opam/system omake' terminated with error code 2")

'opam install ocamltter' failed.