操作系统:Mac OS X 10.10.3 XCode:安装了命令行工具的最新版本(版本6.3)Rails:版本4.2.1 Ruby:版本2.2.1
我正在尝试为我正在处理的项目生成路由(定期执行此操作),当我收到错误消息时,建议我执行捆绑安装和捆绑执行.我做了,这一次,在编译JSON Gem(版本1.7.7)时,这个过程中断了.
在StackOverflow上做一些研究,建议更新Xcode的命令行工具,我做了,但这并没有解决问题.
我尝试单独安装JSON版本1.7.7,但它失败了,告诉我要查找错误日志:
/Users/zwb/.rvm/rubies/ruby-2.2.1/bin/ruby -r ./siteconf20150411-36070-1t083xl.rb extconf.rb
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:
./../fbuffer/fbuffer.h:175:47: error: too few arguments provided to function-like macro invocation
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^
/Users/zwb/.rvm/rubies/ruby-2.2.1/include/ruby-2.2.0/ruby/intern.h:793:9: note: macro 'rb_str_new' defined here
#define rb_str_new(str, len) __extension__ ( \
^
In file included from generator.c:1:
./../fbuffer/fbuffer.h:175:11: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'VALUE (const …Run Code Online (Sandbox Code Playgroud) 我使用Prelude,我想在所有编模式(网络模式除外)中启用hs-minor-mode。我写
(add-hook 'prog-mode-hook #'hs-minor-mode)
(make-variable-buffer-local 'hs-minor-mode)
(add-hook 'web-mode-hook (lambda () (setq hs-minor-mode nil)))
Run Code Online (Sandbox Code Playgroud)
在personal.el中,但是它不起作用!
我该怎么办?