warning insecure world writable dir ruby mode 040777,gem insstal sass error failed to build gem native extension
- //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
- sudo gem install sass
- 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./gems/ffi-1.11./ext/ffi_c
- /usr/bin/ruby2. -r ./siteconf20190522--9c6o4.rb extconf.rb
- mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
- extconf failed, exit code
- Gem files will remain installed in /var/lib/gems/2.5./gems/ffi-1.11. for inspection.
- Results logged to /var/lib/gems/2.5./extensions/x86_64-linux/2.5./ffi-1.11./gem_make.out
这个烂方法不能用
sudo chmod 777 /Library/Ruby/Gems
sudo chmod go-w /usr/local/bin
来安装一个homebrew
https://docs.brew.sh/Homebrew-on-Linux
- sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
继续按照官方说的做,基本上都是环境的问题。
- test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
- test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
- test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
- echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
安装完毕测试一下
- brew install hello
安装了完整版居然好了。。。。好吧
- sudo apt-get install ruby-full
如果没好,那就继续
- brew install ruby
不知道homebrew的不要问我,因为我也不知道是什么鬼。应该和忍者影分身一种鬼东西。
安装完毕看一下版本号
继续安装sass(我叫他洒洒水)
安装成功,查看一下是否安装成功
- landv@Desktop201712556489:~/node$ sass -v
- bash: sass: 未找到命令
- landv@Desktop201712556489:~/node$
悲惨呀,又是环境问题,明明已经安装成功了
换一条路
- npm install -g sass
一样的问题,找不到命令
FUCK~~~~
难道只有Deepin是酱紫~~~
好吧曲线救国,直接吧npm下载到的node-sass加入环境变量
综上所述,那就是卸载ruby再进行安装配置,如果还不行那就再卸载一边。
- ERROR: While executing gem ... (Errno::EACCES)
- Permission denied @ rb_sysopen - /Library/Ruby/Gems/2.3./gems/fuzzy_match-2.1./.gitignore
报这个错误就执行
- sudo gem install cocoapods-core
然后再安装sass
记住千万不要用deepin自带的ruby
重要的事情不怕多说
- sudo apt-get install ruby-full
Linux用流了,要比Windows配置快。
Deepin Linux 绝逼是环境的问题,虽然它不背锅吧。
https://www.cnblogs.com/landv/p/10867433.html(深度Linux /etc/profile 环境变量生效问题)
warning insecure world writable dir ruby mode 040777,gem insstal sass error failed to build gem native extension的更多相关文章
- /var/lib/gems/2.5.0/gems/seccomp-tools-1.3.0/lib/seccomp-tools/dumper.rb:125: warning: Insecure world writable dir /home/python/.local in PATH, mode 040777 解决方案
/var/lib/gems/2.5.0/gems/seccomp-tools-1.3.0/lib/seccomp-tools/dumper.rb:125: warning: Insecure worl ...
- Insecure world writable dir /usr/local in PATH, mode 040777
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfi ...
- iOS:解决pod的Insecure world writable dir问题
当我们运行pod setup的命令的时候,有时候会碰到这个警告: /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.33.1/lib/cocoapods/execut ...
- Ruby 踩坑 “Failed to build gem native extension”
ruby新手,总是会出现这样那样的问题,这里先记录下,希望能解决你得问题. 首先是安装ruby 环境,楼主愚钝,在公司和自己的电脑上来来回回整了好几天,每次安装 gem 包的时候总是报错,错误信息大致 ...
- ruby中输入命令行编译sass(ruby小白)
Ruby(或cmd中)输入命令行编译sass步骤如下: (1)举例而言:首先在F盘下建立一个总文件夹,比如test文件夹:其次在该文件夹下建立html,images,js,sass等文件夹. (2)在 ...
- ruby配合gem使用sass
Ruby环境安装 1.Ruby安装包下载地址:http://rubyinstaller.org/downloads/下载对应系统版本的安装包: 2.双击rubyinstaller-2.2.3-x64. ...
- 1月10日 ruby基础教程,查漏补缺; 2月22日 Exception补充
https://ruby-doc.org/core-2.5.0/Exception.html 1月20日练习完1,2章. 第一章 初探 ‘’单引号不执行转义符. \t 制表符.\n 换行符. p me ...
- ruby 编译安装,gem国内源ruby.taobao.org
centos6.6final 一.安装依赖包(使用默认CENTOS更新源): # yum install openssl* openssl-devel zlib-devel gcc gcc-c++ m ...
- Ruby基础类型,动态特性,代码块
#Ruby内置基础数据类型 NilClass,TureClass,FalseClass,Time,Date,String,Range,Struct,Array,Hash #Numerice 1.分为I ...
随机推荐
- Bean管理学习笔记
1.BeanFactory 介绍 1.1 首先什么是Bean? 1.Bean在Spring技术中是基于组件 2.他是Spring容器管理的最基本最常见的单元.在spring的应用场合中,bean可以是 ...
- AspNetCore网关集成Swagger访问使用IdentityServer保护的webapi项目
创建webapi项目 创建四个webapi项目,两个处理业务,一个网关,一个验证中心.四个项目对应的端口如下, ApiGateway:1999 IdentityServer:16690 Service ...
- Python 3 MySQL数据库操作
import pymysql class Mysql_db(): def __init__(self,ip,username,password,db_name,table_name): self.ip ...
- spring的事务传播行为与隔离级别
具体请参考blog:https://bbs.csdn.net/topics/391875990 要明白2个概念: 1.“spring的事务传播属性” 2.“spring的事务隔离级别” 例如正常的sp ...
- Jenkins多环境持续集成架构实践
自动化部署主要是为了解决项目多.环境多.持续集成慢.部署操作麻烦.手动操作易出错.自动化运维等问题. Jenkins是开源CI&CD软件领导者, 提供超过1000个插件来支持构建.部署.自动化 ...
- Python2 和 pip2 存在, Python3 也存在,但是 pip3 不存在的解决办法
sudo curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py sudo python3 get-pip.py 输入两行命令即可
- HTML&CSS基础-外边框
HTML&CSS基础-外边框 作者:尹正杰 版权声明:原创作品,谢绝转载!否则将追究法律责任. 一.HTML <!DOCTYPE html> <html> <h ...
- goroutine的使用与常见错误
goroutine的使用时常见错误 goroutine是Golang 的核心之一,在使用时,一般都要配合channel一起使用. 在使用时,经常会遇到一些错误,包括: 不输出 输出与希望输出不一致 a ...
- Linux 服务器性能出问题,排查下这些参数指标
taozj马哥Linux运维 一个基于 Linux 操作系统的服务器运行的同时,也会表征出各种各样参数信息.通常来说运维人员.系统管理员会对这些数据会极为敏感,但是这些参数对于开发者来说也十分重要,尤 ...
- 大数据之路week07--day05 (Hive的搭建部署)
在之前博客中我有记录安装JDK和Hadoop和Mysql的过程,如果还没有安装,请先进行安装配置好,对应的随笔我也提供了百度云下载连接. 安装JDK: https://www.cnblogs.co ...