简体   繁体   English

无法在RedHat 7上安装Compass

[英]Unable to install Compass on RedHat 7

I am trying to install compass on RedHat 7. 我正在尝试在RedHat 7上安装指南针。

I have ruby version ruby 2.0.0p598 (2014-11-13) [x86_64-linux] installed. 我安装了ruby版ruby 2.0.0p598(2014-11-13)[x86_64-linux]。

I am executing the following commands: 我正在执行以下命令:

sudo yum insatll ruby
sudo yum install gcc gcc-c++ make automake autoconf curl-devel openssl-devel zlib-devel httpd-devel apr-devel apr-util-devel sqlite-devel
sudo gem install compass --http-proxy http://XXXXX:XXXX@XXXX:8080

I am getting the following error: 我收到以下错误:

Building native extensions. 构建原生扩展。 This could take a while... ERROR: Error installing compass: ERROR: Failed to build gem native extension. 这可能需要一段时间...错误:安装罗盘时出错:错误:无法构建gem原生扩展。

/usr/bin/ruby -r ./siteconf20150729-6603-73q6zu.rb extconf.rb

mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h mkmf.rb在/usr/share/include/ruby.h找不到ruby的头文件

extconf failed, exit code 1 extconf失败,退出代码1

Gem files will remain installed in /usr/local/share/gems/gems/ffi-1.9.10 for inspection. Gem文件将保留在/usr/local/share/gems/gems/ffi-1.9.10中进行检查。 Results logged to /usr/local/lib64/gems/ruby/ffi-1.9.10/gem_make.out 结果记录到/usr/local/lib64/gems/ruby/ffi-1.9.10/gem_make.out

Not sure how to fix this. 不知道如何解决这个问题。 Before installing compass I even tried 在安装罗盘之前我甚至尝试过

sudo gem update --system

Still the same error. 还是一样的错误。 Then I tried updating ruby to 2.2.2 but still the same error. 然后我尝试将ruby更新为2.2.2,但仍然是同样的错误。 The gem version is 2.0.14 宝石版本是2.0.14

I believe you also need a yum install ruby-devel to get the ruby.h onto your system. 我相信你还需要一个yum install ruby-devel来将ruby.h放到你的系统上。 If that's not enough, the bigger-hammer approach would be to install the full 'Development Tools' packages with: 如果这还不够,那么更大的方法就是安装完整的“开发工具”软件包:

yum groupinstall 'Development Tools'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM