How To Install Jekyll in Mac OSX Mavericks?

本文详细介绍了在使用Xcode5.1安装Jekyll时遇到的错误‘clang: error: unknown argument'的解决方法,并提供了临时的修复方案。通过设置环境变量,可以避免该错误并成功完成Jekyll的安装。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  1. Procedure of installing Jekyll in Mac OS X

  2. Install Xcode Command line tools:http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools

  3. Clang error during install Jekyll

clang: error: unknown argument:'-multiply_definedsuppress'[-Wunused-command-line-argument-hard-error-in-future]
clang: note:this will be a hard error (cannot be downgraded to a warning)in the future
make:***[redcarpet.bundle]Error 1

make failed,exit code 2

Solution:

export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"
export CFLAGS=-Wunused-command-line-argument-hard-error-in-future
export CPPFLAGS=-Qunused-arguments
sudo -E gem install jekyll


[Note]: Above is a temporary workaround for Xcode 5.1 only.


References:

  1. http://xthinking.com/github/2014/03/17/github_install_jekyll_mavericks.html

  2. http://stackoverflow.com/questions/22313407/clang-error-unknown-argument-mno-fused-madd-python-package-installation-fa

  3. http://forums.getpebble.com/discussion/11862/installation-error-perhaps-due-to-xcode-5-1

  4. https://langui.sh/2014/03/10/wunused-command-line-argument-hard-error-in-future-is-a-harsh-mistress/

  5. http://stackoverflow.com/questions/9329243/xcode-4-4-and-later-install-command-line-tools

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值