sudo gem install sass encountered the following error message
Building native extensions. This could take a while... ERROR: Error installing sass: ERROR: Failed to build gem native extension. current directory: /var/lib/gems/2.5.0/gems/ffi-1.11.1/ext/ffi_c /usr/bin/ruby2.5 -r ./siteconf20190522-24821-9c6o4.rb extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h extconf failed, exit code 1 Gem files will remain installed in /var/lib/gems/2.5.0/gems/ffi-1.11.1 for inspection. Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/ffi-1.11.1/gem_make.out
looked at some of the solutions on the web, and finally solved by installing the full ruby.
sudo apt install ruby
use the command
sudo apt install ruby-full to install ruby, and then use the command
sudo gem install sass to successfully install sass.
Replace the gem with the installation source
//1.删除原gem源 gem sources --remove https://rubygems.org/ //2.添加国内镜像 gem source -a https://gems.ruby-china.com //3.打印是否替换成功 gem sources -l //4.更换成功后打印如下 *** CURRENT SOURCES *** https://gems.ruby-china.com
- Solution encountered when updating pod (error: failed to build gem native extension.)
- Solution to (ERROR: Failed to build gem native extension.) encountered when updating pod
- Cocoapods- ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension.
- ERROR: Error installing colorls: ERROR: Failed to build gem native extension.
- ERROR: Error installing cocoapods: ERROR: Failed to build gem native extension
- Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.
- Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit
- mac gem install nokogiri error
- To solve the problem of importerror when installing tensorflow: libcublas.so . 10.0, failed to load the native tensorflow runtime error
- Module build failed: Error: ENOENT: no such file or directory, scandir，‘node_modules\node-sass\vend’
- Module build failed: error: cannot find module ‘node sass’ error
- Error: Failed dependencies: error encountered when installing rpm package
- Solutions to problems encountered when installing isc-dhcp-server on debian9.6
- Unity package encountered an error report about gradle build failed
- Windows encountered 1152 when installing software: error extracting files to the temporary location
- Install Oracle VM VirtualBox Extension Pack failed to install the extension pack
- Talking about the errors encountered in installing MySQL ODBC (error 1918)
- Error encountered while installing fftw
- Android installation failure: install_ FAILED_ NO_ MATCHING_ ABIS: Failed to extract native libraries, res=-113.
- Failed to load the native TensorFlow runtime.