尝试使用以下内容(在 Fedora 19 中)安装 qpid 消息传递 gem:
$ gem install qpid_messaging -v '0.20.2'
失败并显示以下消息:
Building native extensions. This could take a while...
ERROR: Error installing qpid_messaging:
ERROR: Failed to build gem native extension.
/path/to/.rvm/rubies/ruby-1.9.3-p545/bin/ruby extconf.rb
checking for main() in -lstdc++... no
checking for main() in -lstdc++... no
Missing required library: stdc++
*** 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.
我的机器上安装了 libstdc++ 包。我是否需要将 gem install 指向某个模块或标头 (.so/.h) 才能使其正常工作?