Fedora 30即使安装了ruby-devel也无法安装ruby调试gem

时间:2019-12-26 20:04:41

标签: ruby fedora jetbrains-ide rubymine ruby-debug

我正在尝试让RubyMine(2019.3)调试器在Fedora 30的全新安装中工作。

当我尝试运行调试器时,它会要求安装gems。我说是的,它出错了(https://gist.githubusercontent.com/electricjones/f49187ca29a4c24c20d522290e17e472/raw/07c8df5f2c3b742bb389f900d00bef02fbcf6871/rubymine%2520debug%2520error)。

重要的地方似乎是

ERROR: Failed to build gem native extension. 

current directory: /home/michael/.gem/ruby/gems/debase-0.3.0.beta19/ext /usr/bin/ruby -I /usr/share/rubygems -r ./siteconf20191226-4548-viaxke.rb extconf.rb 

checking for vm_core.h... 

*** extconf.rb failed *** 

Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.

You have to install development tools first.

我发现了一些类似问题的帖子/问题,包括https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000706184-Cannot-install-Rubymine-Debugger。所有这些都归结为“安装ruby-dev或ruby-devel”。

我已经安装了ruby-devel,但仍然出现相同的错误。似乎我无法在ruby中构建任何本机扩展,因为我缺少标头,但是我不知道如果不从ruby-devel

获取标头,该在哪里获取。

环境信息:

[michael@localhost ~]$ ruby -v
ruby 2.6.5p114 (2019-10-01 revision 67812) [x86_64-linux]
[michael@localhost ~]$ dnf info ruby-devel
Last metadata expiration check: 0:18:02 ago on Thu 26 Dec 2019 01:34:25 PM CST.
Installed Packages
Name         : ruby-devel
Version      : 2.6.5
Release      : 124.fc30
Architecture : x86_64
Size         : 1.2 M
Source       : ruby-2.6.5-124.fc30.src.rpm
Repository   : @System
From repo    : updates
Summary      : A Ruby development environment
URL          : http://ruby-lang.org/
License      : (Ruby or BSD) and Public Domain and MIT and CC0 and zlib and UCD
Description  : Header files and libraries for building an extension library for the
             : Ruby or an application embedding Ruby.

Available Packages
Name         : ruby-devel
Version      : 2.6.5
Release      : 124.fc30
Architecture : i686
Size         : 198 k
Source       : ruby-2.6.5-124.fc30.src.rpm
Repository   : updates
Summary      : A Ruby development environment
URL          : http://ruby-lang.org/
License      : (Ruby or BSD) and Public Domain and MIT and CC0 and zlib and UCD
Description  : Header files and libraries for building an extension library for the
             : Ruby or an application embedding Ruby.
[michael@localhost ~]$ make -v
GNU Make 4.2.1

我尝试手动安装的宝石,都具有相同的基本错误:

  • gem install debugger
  • gem install ruby-debug-base
  • gem install ruby-debug-ide --pre

0 个答案:

没有答案