0

したがって、基本的にRubyNumberTheoryには NArray gem が必要であり、いくつかのネイティブ コンパイル ツールとおそらく追加の構成が必要なようです。Fedora 29で試したのは次のとおりです

$ gem install narray 
Building native extensions. This could take a while...
ERROR:  Error installing narray:
    ERROR: Failed to build gem native extension.
[…]
checking for stdint.h... *** 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.

dnf likegcc ruby-devel rubygemsgroup install "C Development Tools and Libraries"さらに予期しないものを介して、いくつかのパッケージをインストールしましたarm-none-eabi-newlib。実際、ヘッダーはシステムに適切にインストールされているようです

$ whereis stdint.h
stdint: /usr/include/stdint.h

環境変数が次のように設定されていても:

export LIBRARY_PATH=/usr/include
export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib:/usr/include

gem はまだインストールされず、stdint.h が見つからなかったことを伝えます。他に何を試みることができますか?

4

1 に答える 1