如何清除导致使用 gcc 4.9.3 而不是 4.9.4 的构建缓存?

问题描述 投票:0回答:1

有人见过这个吗?

Installing json 1.8.6 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    /Users/davidvezzani/.rvm/rubies/ruby-1.9.3-p551/bin/ruby -r ./siteconf20170317-7715-43clev.rb extconf.rb
creating Makefile

make  clean

make
compiling generator.c
make: /usr/local/Cellar/gcc49/4.9.3/bin/gcc-4.9: No such file or directory
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/davidvezzani/.rvm/gems/ruby-1.9.3-p551/gems/json-1.8.6 for inspection.
Results logged to /Users/davidvezzani/.rvm/gems/ruby-1.9.3-p551/extensions/x86_64-darwin-14/1.9.1/json-1.8.6/gem_make.out

从航站楼

➜  ~ brew doctor
Your system is ready to brew.

➜  ~ ls /usr/local/Cellar|grep gcc
[email protected]

gcc --version
gcc (Homebrew GCC 4.9.4) 4.9.4
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

看来我的 gcc 是 4.9.4,并且在某个地方缓存了 4.9.3。我不知道如何/在哪里清理它。我怎样才能最好地解决这个问题?

ruby gcc bundler
1个回答
0
投票

也许这对 Linux 会有帮助。

ccache-C

© www.soinside.com 2019 - 2024. All rights reserved.