Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Criação de um feed #28

Open
deyvisonrocha opened this issue Jan 25, 2017 · 5 comments
Open

Criação de um feed #28

deyvisonrocha opened this issue Jan 25, 2017 · 5 comments

Comments

@deyvisonrocha
Copy link

Interessante disponibilizar um feed RSS.

OBS: Caso seja aprovado, posso desenvolver a feature.

@mjacobus
Copy link
Owner

Boa sugestão! Claro, fique à vontade. Gostei da idéia!

@deyvisonrocha
Copy link
Author

Tive alguns problemas ao rodar o bundle install:

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
                                                                                                                                                         
    current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
/home/deyvison/.rbenv/versions/2.4.0/bin/ruby -r ./siteconf20170127-25757-18p7sap.rb extconf.rb
creating Makefile

current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR=" clean

current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
generator.c: In function ‘generate_json’:
generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function)
     } else if (klass == rb_cFixnum) {
                         ^
generator.c:861:25: note: each undeclared identifier is reported only once for each function it appears in
generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function)
     } else if (klass == rb_cBignum) {
                         ^
generator.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’
Makefile:241: recipe for target 'generator.o' failed
make: *** [generator.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3 for inspection.
Results logged to /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/json-1.8.3/gem_make.out

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

Resolvi incluindo a linha no Gemfile:

gem 'json', github: 'flori/json', branch: 'v1.8'

Após isso, ocorreu o seguinte erro:

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

    current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
/home/deyvison/.rbenv/versions/2.4.0/bin/ruby -r ./siteconf20170127-29131-fsop4p.rb extconf.rb
creating Makefile

current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
make "DESTDIR=" clean

current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
make "DESTDIR="
compiling yajl.c
compiling yajl_alloc.c
compiling yajl_buf.c
compiling yajl_encode.c
compiling yajl_ext.c
                                                                                                                                                         
    current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
/home/deyvison/.rbenv/versions/2.4.0/bin/ruby -r ./siteconf20170127-26765-v6c9j4.rb extconf.rb
creating Makefile

current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
make "DESTDIR=" clean

current directory: /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.2.1/ext/yajl
make "DESTDIR="
compiling yajl.c
compiling yajl_alloc.c
compiling yajl_buf.c
compiling yajl_encode.c
compiling yajl_ext.c
yajl_ext.c: In function ‘rb_yajl_parser_parse’:
yajl_ext.c:471:17: warning: variable ‘stat’ set but not used [-Wunused-but-set-variable]
     yajl_status stat;
                 ^
yajl_ext.c: In function ‘rb_yajl_encoder_enable_json_gem_ext’:
yajl_ext.c:881:22: error: ‘rb_cFixnum’ undeclared (first use in this function)
     rb_define_method(rb_cFixnum, "to_json", rb_yajl_json_ext_fixnum_to_json, -1);
                      ^
yajl_ext.c:881:22: note: each undeclared identifier is reported only once for each function it appears in
yajl_ext.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’
Makefile:241: recipe for target 'yajl_ext.o' failed
make: *** [yajl_ext.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.2.1 for inspection.
Results logged to /home/deyvison/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0-static/yajl-ruby-1.2.1/gem_make.out

An error occurred while installing yajl-ruby (1.2.1), and Bundler cannot continue.
Make sure that `gem install yajl-ruby -v '1.2.1'` succeeds before bundling.

Sabe como solucionar?

Valeu.

@deyvisonrocha
Copy link
Author

Solução para o json

@deyvisonrocha
Copy link
Author

deyvisonrocha commented Jan 27, 2017

Para consegui rodar o bundle install com as alterações no Gemfile:

gem 'recruiter'
gem 'rails', '~> 4.2'
gem 'rake', '< 11.0'
gem 'json', github: 'flori/json', branch: 'v1.8'
gem 'yajl-ruby', '1.3.0'

Ainda não consegui rodar os comandos rake.

@mjacobus
Copy link
Owner

mjacobus commented Jan 27, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants