[英]Can't find header files for Ruby on SUSE?
我正在嘗試在SUSE Enterprise 11 SP3上安裝指南針。 我得到以下內容。 有任何想法嗎?
gem install compass
Building native extensions. This could take a while...
ERROR: Error installing compass:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
<b>mkmf.rb can't find header files for ruby at /usr/lib64/ruby/ruby.h</b>
extconf failed, exit code 1
Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/ffi-1.9.3 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/extensions/x86_64-linux/1.8/ffi-1.9.3gem_make.out
zypper in ruby-devel
這個對我有用。 如果你也想念gcc那么
zypper in gcc
對於那些有類似問題的人,我得到了這個。
Uninsalling ruby和rvm使用共享選項從源構建zlib
./configure --shared
make
make install
我為Ruby做了同樣的工作。
我無法正確安裝任何RPM,Zypper,RVM安裝程序。 在每種情況下,他們似乎都有zlib的問題?
你可能錯過了gcc。 嘗試使用zypper(或yum)安裝它,然后嘗試安裝你的寶石:
zypper in gcc
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.