【IT系】kvm上のCentOS6にhaskellをインストール
Haskell 超入門 (2015/01) - connpass
これに参加したいがために、haskellをインストール。
とにもかくにも、haskellを会場で使えないと意味ないからね。
インストールの参考はココ↓↓
haskell インストールログ
$ sudo wget http://sherkin.justhub.org/el6/RPMS/x86_64/justhub-release-2.0-4.0.el6.x86_64.rpm [sudo] password for test1: --2014-12-23 18:49:23-- http://sherkin.justhub.org/el6/RPMS/x86_64/justhub-release-2.0-4.0.el6.x86_64.rpm sherkin.justhub.org をDNSに問いあわせています... 54.217.231.94 sherkin.justhub.org|54.217.231.94|:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 5334 (5.2K) [application/x-rpm] `justhub-release-2.0-4.0.el6.x86_64.rpm' に保存中 100%[======================================>] 5,334 --.-K/s 時間 0s 2014-12-23 18:49:24 (557 MB/s) - `justhub-release-2.0-4.0.el6.x86_64.rpm' へ保存完了 [5334/5334] $ sudo rpm -ivh justhub-release-2.0-4.0.el6.x86_64.rpm 警告: justhub-release-2.0-4.0.el6.x86_64.rpm: ヘッダ V4 RSA/SHA1 Signature, key ID 13fba420: NOKEY 準備中... ########################################### [100%] 1:justhub-release ########################################### [100%] $ sudo yum install haskell Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: www.ftp.ne.jp * epel: ftp.tsukuba.wide.ad.jp * extras: www.ftp.ne.jp * updates: www.ftp.ne.jp justhub | 2.9 kB 00:00 justhub/primary_db | 51 kB 00:00 Setting up Install Process Resolving Dependencies #####################中略########################## Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: haskell x86_64 1-9.0.el6 justhub 16 k Installing for dependencies: binutils-devel x86_64 2.20.51.0.2-5.42.el6 base 687 k freeglut x86_64 2.6.0-1.el6 base 171 k freeglut-devel x86_64 2.6.0-1.el6 base 112 k ghc-7.6.3-dist x86_64 1-9.0.el6 justhub 97 M ghc-7.6.3-hub x86_64 1-9.0.el6 justhub 3.3 k glibc i686 2.12-1.149.el6 base 4.3 M gmp-devel x86_64 4.3.1-7.el6_2.2 base 171 k haskell-hub x86_64 1-10.0.el6 justhub 1.2 M haskell-hub-alex x86_64 1-4.0.el6 justhub 535 k haskell-hub-binutils x86_64 1-4.0.el6 justhub 8.7 M haskell-hub-cabal-install x86_64 1-5.0.el6 justhub 1.7 M haskell-hub-cabal-install-116 x86_64 1-9.0.el6 justhub 1.5 M haskell-hub-gcc x86_64 0-4.0.el6 justhub 21 M haskell-hub-happy x86_64 1-4.0.el6 justhub 470 k haskell-hub-plug x86_64 1-4.0.el6 justhub 2.3 k haskell-hub-usr-bin x86_64 1-4.0.el6 justhub 4.4 k haskell-min x86_64 1-9.0.el6 justhub 3.7 k haskell-platform-2013.2.0.0-dist x86_64 1-9.0.el6 justhub 26 M haskell-platform-2013.2.0.0-hub x86_64 1-9.0.el6 justhub 3.4 k libX11 x86_64 1.6.0-2.2.el6 base 586 k libX11-common noarch 1.6.0-2.2.el6 base 192 k libX11-devel x86_64 1.6.0-2.2.el6 base 982 k libXau x86_64 1.0.6-4.el6 base 24 k libXau-devel x86_64 1.0.6-4.el6 base 14 k libXdamage x86_64 1.1.3-4.el6 base 18 k libXdamage-devel x86_64 1.1.3-4.el6 base 9.3 k libXext x86_64 1.3.2-2.1.el6 base 35 k libXext-devel x86_64 1.3.2-2.1.el6 base 74 k libXfixes x86_64 5.0.1-2.1.el6 base 17 k libXfixes-devel x86_64 5.0.1-2.1.el6 base 13 k libXi x86_64 1.7.2-2.2.el6 base 37 k libXxf86vm x86_64 1.1.3-2.1.el6 base 16 k libXxf86vm-devel x86_64 1.1.3-2.1.el6 base 18 k libdrm-devel x86_64 2.4.52-4.el6 base 86 k libxcb x86_64 1.9.1-2.el6 base 110 k libxcb-devel x86_64 1.9.1-2.el6 base 1.0 M mesa-dri-drivers x86_64 10.1.2-2.el6 base 13 M mesa-dri-filesystem x86_64 10.1.2-2.el6 base 16 k mesa-dri1-drivers x86_64 7.11-8.el6 base 3.8 M mesa-libGL x86_64 10.1.2-2.el6 base 116 k mesa-libGL-devel x86_64 10.1.2-2.el6 base 483 k mesa-libGLU x86_64 10.1.2-2.el6 base 197 k mesa-libGLU-devel x86_64 10.1.2-2.el6 base 83 k mesa-private-llvm x86_64 3.4-3.el6 base 5.6 M nss-softokn-freebl i686 3.14.3-18.el6_6 updates 154 k xorg-x11-proto-devel noarch 7.7-9.el6 base 286 k zlib-devel x86_64 1.2.3-29.el6 base 44 k Updating for dependencies: libdrm x86_64 2.4.52-4.el6 base 123 k nss-softokn-freebl x86_64 3.14.3-18.el6_6 updates 164 k Transaction Summary ================================================================================ Install 48 Package(s) Upgrade 2 Package(s) Total download size: 190 M Is this ok [y/N]: y Downloading Packages: ####################中略########################## Dependency Updated: libdrm.x86_64 0:2.4.52-4.el6 nss-softokn-freebl.x86_64 0:3.14.3-18.el6_6 Complete!
と、ここまでは良かったんだけど、haskell-platformをインストールしようとしたらconflictした
Transaction Check Error: file /usr/bin/alex from install of alex-2.3.5-6.el6.2.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/cabal from install of cabal-install-0.10.2-7.el6.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/ghc from install of ghc-compiler-7.0.4-46.el6.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/ghc-pkg from install of ghc-compiler-7.0.4-46.el6.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/ghci from install of ghc-compiler-7.0.4-46.el6.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/haddock from install of ghc-compiler-7.0.4-46.el6.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/hp2ps from install of ghc-compiler-7.0.4-46.el6.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/hpc from install of ghc-compiler-7.0.4-46.el6.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/runghc from install of ghc-compiler-7.0.4-46.el6.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 file /usr/bin/happy from install of happy-1.18.6-8.el6.2.x86_64 conflicts with file from package haskell-hub-usr-bin-1-4.0.el6.x86_64 Error Summary
haskell-hub-usr-bin-1-4.0.el6.x86_64とconflictすると書いてあるため、これをアンインストールしたいが依存関係のためできない。
haskell-1-9.0.el6.x86_64が依存しているので、これら2つのパッケージを削除。
改めてhaskell-platformをインストールし、無事成功
$ rpm -qa | grep haskell-platform haskell-platform-2011.4.0.0-6.el6.x86_64 ← haskell-platform-2013.2.0.0-hub-1-9.0.el6.x86_64 haskell-platform-2013.2.0.0-dist-1-9.0.el6.x86_64 ghc-haskell-platform-devel-2011.4.0.0-6.el6.x86_64
このまま順調にいくかと思ったが、今度はアンインストールした上記2点が入らない
果たして、どうするのが正しいのやら…
とりあえず、今回は、haskellの開発環境を整えようとしたが、上記が上手くいかない上に、leksahもrpmが見つからずtar.gzをダウンロードしてCentOSに転送したがインストール方法がわからない
ってところまでで、サスペンド!