I am oneMoreTime1357
- 🌲 My blog https://onemoretime1357.github.io/
一棵树的博客
Home Page: https://onemoretime1357.github.io/
I am oneMoreTime1357
环境
直接进行安装会出现如下的问题
➜ ~ gem install bundler
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
如何解决呢?
如果认为是权限的问题,即使加上sudo也是不行的。
导致这个问题的原因,我猜想是在系统层级的ruby进行安装,mac不允许修改系统的ruby。
官网给出的解决办法是重新安装ruby,
使用homebrew重新进行安装,然后修改路径,优先访问brew中的ruby
brew install ruby
# 安装完成执行如下
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
# 如果使用的是zsh终端,需要也在zsh中添加环境路径
echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
# 重启终端,执行,which ruby
which ruby
# /usr/local/opt/ruby/bin/ruby
# 此时ruby的路径变成了我们使用brew安装的路径
ruby -v
# ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin18]
# 此时输出的也是我们刚安装的ruby版本
上面代码执行完,然后再安装bundler和jekyll
由于我是10.14的系统,执行如下代码
sudo gem install bundler
sudo gem install -n /usr/local/bin/ jekyll
官方教程文档macos install jekyll
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.