Comments (11)
- Windows 10 (x64)
ちょっと試してはいないのですが、x86_64 環境でも、 i686 向けRuby は動きますし、
そちらをインストールすると、wxruby-ruby19 がインストールできると思います。
from bcdice.
らぁさん、ご指摘ありがとうございます。確かにx86版Rubyを入れれば動きますね。ただ、他の用途でx64版Rubyを使いたい場合にどうするか、というのが気になりました。
wxWidgets 3.0に対応したgemとしてはrwxというものもあるようなので、切り替えを試してみるのもいいかもしれないと思いました。
from bcdice.
ただ、他の用途でx64版Rubyを使いたい場合にどうするか、というのが気になりました。
PATH
を自分で切り替えるか、https://bitbucket.org/jonforums/uru を使うのがいいと思います。
Windowsで Ruby を使うのに、PATH
を管理するのは割りと基本だと思ってます。
from bcdice.
Windowsではx86版Rubyでなんとかなりそうというのは分かったのですが、他のOSについてはいかがでしょうか。対応できないならばその旨を明記すると現在の状態が分かりやすいです。
from bcdice.
基本的にWindowsでしか検証ができていないのが実情です。
RubyでデフォルトのGUI環境がTcl/Tkのように存在すれば早いのですが…
rwxが乗り換え先として使えるのであれば、それはそれで検討してみたいところですが、それはまた後の話としたいです。
やはりお茶さんの提案通り、CLIベースのツールとして、ラッパーのGUIを別途管理、しかないのですかねぇ。
from bcdice.
rwx を導入するなら、RUBY_PLATFORM
で分岐させれば、Windows i686 以外を対象にできるので、そういう方針もありかもしれません。
from bcdice.
rwx もここ数年、gem をリリースしてないプロダクトなので、あまり当てにしないほうがいいかもしれないですね…
from bcdice.
手堅くいくならCUIツールにするしかないんですかねぇ。切ないものです。
from bcdice.
@raa0121 改めてRuby Installerからi686-mingw32版2.4.1をインストールし、uruで切り替えて試してみましたが、gemのインストールができても起動できない状態のようです。
# mingw32のbash
# 一部パスを隠してあります($HOME -> ホームディレクトリ)
$ cd ~/Documents/ruby/BCDice/src
$ ruby --version
ruby 2.4.1p111 (2017-03-22 revision 58053) [i386-mingw32]
$ bundle install
Fetching gem metadata from https://rubygems.org/..............
Fetching version metadata from https://rubygems.org/..
Fetching rake 12.0.0
Installing rake 12.0.0
Fetching net-irc 0.0.9
Installing net-irc 0.0.9
Fetching wxruby-ruby19 2.0.1 (x86-mingw32)
Installing wxruby-ruby19 2.0.1 (x86-mingw32)
Fetching ocra 1.3.8
Installing ocra 1.3.8
Fetching power_assert 1.0.2
Installing power_assert 1.0.2
Using bundler 1.15.1
Fetching test-unit 3.2.4
Installing test-unit 3.2.4
Bundle complete! 5 Gemfile dependencies, 7 gems now installed.
Bundled gems are installed into ./vendor/bundle.
$ bundle exec ruby bcdice.rb
$HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wx.rb:12:in `require': 126: 指定されたモジュールが見つかりません。 - $HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so (LoadError)
from $HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wx.rb:12:in `<top (required)>'
from $HOME/Documents/ruby/BCDice/src/bcdiceGui.rb:5:in `require'
from $HOME/Documents/ruby/BCDice/src/bcdiceGui.rb:5:in `<top (required)>'
from bcdice.rb:53:in `require'
from bcdice.rb:53:in `<main>'
# 「モジュールが見つからない」と指摘されたファイル自体は存在する
$ ls $HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so
$HOME/Documents/ruby/BCDice/src/vendor/bundle/ruby/2.4.0/gems/wxruby-ruby19-2.0.1-x86-mingw32/lib/wxruby2.so
エラーメッセージから、共有ライブラリ内の関数が呼び出せていないように見えました。これは新しいRubyにはAPIの面で対応していないという状態かもしれません。
竹流さんと同じ環境にしようとRuby Installerから1.9.3を入れても、既にgemのインストールすら難しい状態です(同梱のgemコマンドはSSLエラーで動かない、最新バージョンのrubygemsはマジックコメントなしでUTF-8で書かれているため、1.9系では invalid byte sequence in UTF-8
のエラーで動かない)。
以上より、やはり今からWindows環境でBCDiceのソースコードをダウンロードしてGUI版を起動するのは厳しいと言わざるを得ません。
from bcdice.
ロードマップ上、GUIサポートは打ち切りの方向のため、対応は難しそうです。
from bcdice.
bcdice/bcdice-irc にて対応
from bcdice.
Related Issues (20)
- ソード・ワールド系のi18n化
- ドラクルージュの抗い判定の改善
- Fate core system
- シノビガミのファンブル表が初期文庫版から改訂されている HOT 1
- [SwordWorld2.0] レーティング表部分の解析結果のリファクタリング
- [Cthulhu] RESの引数の挙動
- Proposal: Command::Parserの改善 HOT 2
- ビギニングアイドル新版の対応
- ゴブリンスレイヤーTRPGで大成功/大失敗の閾値を変数に
- 表類の誤植修正
- ワールドオブダークネスのバグ?
- エモクロアTRPGのi18n対応
- アリアンロッドRPGのi18n対応
- D66の並べ替え指定が小文字だと機能しない
- [CyberpunkRed] 判定が `>=` でなく `>`
- Codecovの移行
- スカイノーツ NEHの誤植
- エモクロアのヘルプメッセージを公式用語を使って整理する
- シノビガミのヘルプ誤植
- 『逆転計略TRPG 天才軍師になろう』の対応
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bcdice.