質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Haskell

Haskellは高い機能性をもった関数型プログラミング言語で、他の手続き型プログラミング言語では難しいとされている関数でも容易に行うことができます。強い静的型付け、遅延評価などに対応しています。

Q&A

解決済

2回答

441閲覧

CentOS7にwxHaskellをインストールできない

apo

総合スコア349

CentOS

CentOSは、主にRed Hat Enterprise Linux(RHEL)をベースにした、フリーのソフトウェアオペレーティングシステムです。

Haskell

Haskellは高い機能性をもった関数型プログラミング言語で、他の手続き型プログラミング言語では難しいとされている関数でも容易に行うことができます。強い静的型付け、遅延評価などに対応しています。

0グッド

0クリップ

投稿2019/01/25 00:39

前提・実現したいこと

CentOS7にwxHaskellをインストールしたい。

発生している問題・エラーメッセージ

公式サイト指示通りに

cabal unpack wx wxcore wxdirect wxc

を実行すると
「wx-0.92.3.0」フォルダ
「wxc-0.92.3.0」フォルダ
「wxcore-0.92.3.0」フォルダ
「wxdirect-0.92.3.0」フォルダ
が作成されます。

こちらの指示通りに

> cd ~/dev/wxhaskell/wxdirect > cabal install > cd ../wxc > cabal install > cd ../wxcore > cabal install > cd ../wx > cabal install

をしようとしたところ、

cd ../wxc-0.92.3.0 cabal install

のところで下記エラーがでます。

[apo@localhost hs_hxHaskell]$ cd wxcore-0.92.3.0 [apo@localhost wxcore-0.92.3.0]$ cabal install Resolving dependencies... Configuring wxc-0.92.3.0... Failed to install wxc-0.92.3.0 Build log ( /home/apo/.cabal/logs/ghc-7.8.3/wxc-0.92.3.0-8A7gZ8xKrFz77LwQ0mQ8YE.log ): cabal: Entering directory '/tmp/cabal-tmp-25498/wxc-0.92.3.0' [1 of 1] Compiling Main ( /tmp/cabal-tmp-25498/wxc-0.92.3.0/dist/setup/setup.hs, /tmp/cabal-tmp-25498/wxc-0.92.3.0/dist/setup/Main.o ) Linking /tmp/cabal-tmp-25498/wxc-0.92.3.0/dist/setup/setup ... Warning: No config found to match: /usr/local/bin/wx-config --version=3.0 --version-full in /home/apo/doc/dev/git_clone/wxWidgets/lib/wx/config If you require this configuration, please install the desired library build. If this is part of an automated configuration test and no other errors occur, you may safely ignore it. You may use wx-config --list to see all configs available in the default prefix. readCreateProcess: wx-config "--version=3.0" "--version-full" (exit 1): failed cabal: Leaving directory '/tmp/cabal-tmp-25498/wxc-0.92.3.0' cabal: Error: some packages failed to install: wxc-0.92.3.0-8A7gZ8xKrFz77LwQ0mQ8YE failed during the configure step. The exception was: ExitFailure 1 wxcore-0.92.3.0-GP5GWjnlKSCAS1FlnJs3hE depends on wxcore-0.92.3.0 which failed to install.

/home/apo/.cabal/logs/ghc-7.8.3/wxc-0.92.3.0-8A7gZ8xKrFz77LwQ0mQ8YE.log

[apo@localhost wxcore-0.92.3.0]$ cat /home/apo/.cabal/logs/ghc-7.8.3/wxc-0.92.3.0-8A7gZ8xKrFz77LwQ0mQ8YE.log cabal: Entering directory '/tmp/cabal-tmp-25498/wxc-0.92.3.0' [1 of 1] Compiling Main ( /tmp/cabal-tmp-25498/wxc-0.92.3.0/dist/setup/setup.hs, /tmp/cabal-tmp-25498/wxc-0.92.3.0/dist/setup/Main.o ) Linking /tmp/cabal-tmp-25498/wxc-0.92.3.0/dist/setup/setup ... Warning: No config found to match: /usr/local/bin/wx-config --version=3.0 --version-full in /home/apo/doc/dev/git_clone/wxWidgets/lib/wx/config If you require this configuration, please install the desired library build. If this is part of an automated configuration test and no other errors occur, you may safely ignore it. You may use wx-config --list to see all configs available in the default prefix. readCreateProcess: wx-config "--version=3.0" "--version-full" (exit 1): failed cabal: Leaving directory '/tmp/cabal-tmp-25498/wxc-0.92.3.0'

補足情報(FW/ツールのバージョンなど)

OS:CentOS7 64bit
Cabal version:2.2.0.0
wx-config version:3.1.3

ご教示よろしくお願いします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答2

0

ベストアンサー

sudo yum --enablerepo=epel install wxGTK3-devel export PATH=/usr/libexec/wxGTK3:$PATH cd ../wxc-0.92.3.0 cabal install

これでどうでしょうか。自分で試したわけではないですが。

投稿2019/01/25 22:08

set0gut1

総合スコア2413

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

apo

2019/01/26 18:29

すごい!できました。 ありがとうございます。 数日試行錯誤してできなかったことが 試してもいないのに分かるなんてすごいですね。
set0gut1

2019/01/26 23:09 編集

ベストアンサーありがとうございます。wxHaskellのインストールスクリプトとwxGTK3のrpmの中身を見て割り出しました。
guest

0

自分で試したわけではないですが、エラーメッセージから読み取れることを共有します。

Warning: No config found to match: /usr/local/bin/wx-config --version=3.0 --version-full

で始まるエラーメッセージから察するに、該当するバージョンのwxWidgets(のC++で書かれたライブラリー)がインストールされていないと思われます。
参照しているページの「Debian and Ubuntu」という節に書かれている
sudo apt-get install libwxgtk2.8-dev
という行は、おそらくそのWxの2.8をインストールするためのものと思われます。
CentOSでもそれに相当する作業が必要なんじゃないかと思います。

加えて、ws-config--version=3.0という引数を渡していることから、今WxHaskellをインストールするのに必要なwxWidgetsは3.0であると思われます。

なので、さっと「wxgtk 3 centos 7 dev」で検索したところ、こちらのパッケージがヒットしました。「package name」は「wxGTK3-devel」だそうですので下記のコマンドでインストールしてみてはいかがでしょうか?

sudo yum install wxGTK3-devel

投稿2019/01/25 01:08

igrep

総合スコア428

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

apo

2019/01/25 01:28 編集

ご教示ありがとうございます。 「sudo yum --enablerepo=epel install wxGTK3-devel」を実行し、wxGTK3-develをインストールすることはできましたが、wxcをcabal installすると同じエラーメッセージがでます。 ``` [apo@localhost hs_hxHaskell]$ cd wxc-0.92.3.0 [apo@localhost wxc-0.92.3.0]$ cabal install Resolving dependencies... Configuring wxc-0.92.3.0... Failed to install wxc-0.92.3.0 Build log ( /home/apo/.cabal/logs/ghc-7.8.3/wxc-0.92.3.0-8A7gZ8xKrFz77LwQ0mQ8YE.log ): cabal: Entering directory '.' Warning: No config found to match: /usr/local/bin/wx-config --version=3.0 --version-full in /home/apo/doc/dev/git_clone/wxWidgets/lib/wx/config If you require this configuration, please install the desired library build. If this is part of an automated configuration test and no other errors occur, you may safely ignore it. You may use wx-config --list to see all configs available in the default prefix. readCreateProcess: wx-config "--version=3.0" "--version-full" (exit 1): failed cabal: Leaving directory '.' cabal: Error: some packages failed to install: wxc-0.92.3.0-8A7gZ8xKrFz77LwQ0mQ8YE failed during the configure step. The exception was: ExitFailure 1 [apo@localhost wxc-0.92.3.0]$ wx-config --version 3.1.3 ```
apo

2019/01/26 18:30

PATHの設定が足りなかったようです。 ありがとうございました。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問