我的配置文件中是否缺少构建工具?
我正在尝试将Bitbucket Pipeline与Ruby项目集成在一起。
我无法构建原生gem扩展。我的C语言知识有限。如果有人有这方面的经验,我们将不胜感激。在尝试安装faraday时,构建失败
Installing faraday 0.9.2
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
Makefile:241: recipe for target 'fast.o' failed
make: *** [fast.o] Error 1
make failed, exit code 2我的bitbucket-piplines.yml看起来像
image: ruby:2.4.0
pipelines:
default:
- step:
caches:
- bundler
script:
- echo $PRIVATE_KEY > ~/.ssh/id_rsa.tmp
- base64 -d ~/.ssh/id_rsa.tmp > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
- base64 ~/.ssh/id_rsa
- gem install oj -v '2.9.9'
- gem install faraday -v '0.9.2'
- bundle config git.allow_insecure true
- bundle install
- bundle exec rspec
definitions:
caches:
bundler: ./vendor发布于 2017-07-18 14:42:14
所以这是我的Ruby版本的一个问题。在Ruby2.4中,Fixnum不再是一个函数。这是一个降级Ruby Docker镜像的问题,或者更新失败的gem的问题。当我将我的测试设置为image: ruby:2.3.4时,我降级了
https://stackoverflow.com/questions/45157715
复制相似问题