Ruby on Windows用にtaglib-rubyをインストールしようとしていましたが、gemインストーラにtaglibのコピーを探す場所を教えてもらえません。インストーラは/ usr/local /とそのような場所を調べますが、これはWindowsマシンであり、これらの場所は存在しないので、そこにtaglibを移動することはできません。私はCONFIGURE_ARGS="--with-opt-dir=Path/to/taglib" gem install taglib-ruby
という形式を使って場所を指定するように指示するgemのgithubページでthis postを見ましたが、Windows powershellでは動作しません。私はまたこの処方を試しました:gem install taglib-ruby -- 'CONFIGURE_ARGS="--with-opt-dir=Path/to/taglib/"'
。しかし、同様に動作しません。Windowsにtaglib-ruby gemをインストールする
私が表示されるエラーメッセージは次のとおりです。
Temporarily enhancing PATH to include DevKit... Building native
extensions with: '--with-opt-dir=/hi/' This could take a while...
ERROR: Error installing taglib-ruby:
ERROR: Failed to build gem native extension.
current directory: C:/XXXXXXX/taglib_base C:/XXXXX/ruby.exe -r ./siteconf20161010-10032-1260rq7.rb extconf.rb --with-opt-dir=/hi/
checking for main() in -lstdc++... yes
checking for main() in -ltag... no
You must have taglib installed in order to use taglib-ruby.
Debian/Ubuntu: sudo apt-get install libtag1-dev
Fedora/RHEL: sudo yum install taglib-devel
Brew: brew install taglib
MacPorts: sudo port install taglib
*** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check
the mkmf.log file for more details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby23-x64/bin/$(RUBY_BASE_NAME)
--with-tag-dir
--without-tag-dir
--with-tag-include
--without-tag-include=${tag-dir}/include
--with-tag-lib
--without-tag-lib=${tag-dir}/lib
--with-stdc++lib
--without-stdc++lib
--with-taglib
--without-taglib
To see why this extension failed to compile, please check the mkmf.log
which can be found here:...
あなたはその--with-OPT-dirはオプションですが、コールはそれがあったことを示していても、設定されていない見ることができます。どのようにこの作品を得るための任意のアイデア?
注: "with-opt-dir"と "CONFIGURE_ARGS"の環境変数も設定しようとしましたが、失敗しました。