Coder Social home page Coder Social logo

rake setup报错 about 19wu HOT 3 CLOSED

angelfan avatar angelfan commented on June 4, 2024
rake setup报错

from 19wu.

Comments (3)

windy avatar windy commented on June 4, 2024

试下 bundle exec rake setup 是否有问题?

from 19wu.

angelfan avatar angelfan commented on June 4, 2024

找到问题的原因了
因为带着源码中的gemfile.lock执行bundle instal 有些gem因为网络的原因无法安装
所以我我把gemfile.lock文件删除了 再执行的bundle install 重新生成的genfile.lock文件中关于guard那一部分可能是导致的问题的原因,
目前在用老版本的gemfile.lock 执行bundle install

from 19wu.

Kevinqingyu avatar Kevinqingyu commented on June 4, 2024

同样的问题,原带的gemfile.lock 文件里面的gem版本过低,导致bundle install 的时候 几乎是过不去的。相关依赖不知如何更改

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

/Users/a1/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20170215-2459-1j7hix2.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/a1/.rvm/rubies/ruby-2.2.3/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 char *, long)' (aka 'unsigned long (const char *, long)') [-Wint-conversion]
VALUE result = rb_str_new(FBUFFER_PAIR(fb));
^ ~~~~~~~~~~
1 warning and 1 error generated.
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /Users/a1/.rvm/gems/ruby-2.2.3/gems/json-1.8.0 for inspection.
Results logged to /Users/a1/.rvm/gems/ruby-2.2.3/extensions/x86_64-darwin-14/2.2.0-static/json-1.8.0/gem_make.out

An error occurred while installing json (1.8.0), and Bundler cannot continue.
Make sure that gem install json -v '1.8.0' succeeds before bundling.**

from 19wu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.