rails-bootstrap
rails-bootstrap copied to clipboard
This doesn't seem to generate any views for any options
I've ran this generator a number of times with various options, and it doesn't seem to generate any views. I've left one of the repositories on my page - the 'academicessays' repo. I don't really know why this is happening, but bundler is failing to install 'nio4r' gem at first attempt. Anyone have any ideas?
I've run Rails Composer with the same settings as yours and have been unable to reproduce the issue. There's no problem installing the 'nio4r' gem when I run 'bundle install.'
What happens when you select the option to build the example application 'learn-rails'?
The 'learn'rails' build works fine.
It's very strange. I've tried with a number of different settings, and they all return an error with 'nio4r' gem and am asked to run 'bundle exec spring binstub --all'
This also happens if I try and 'devise' options,
Many thanks for any assistance.
The log file returns the following , which I am not able to understand what this means:
"have_header: checking for unistd.h... -------------------- yes
"gcc -o conftest -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -L. -L/home/eddie/.rvm/rubies/ruby-2.3.3/lib -Wl,-R/home/eddie/.rvm/rubies/ruby-2.3.3/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/home/eddie/.rvm/rubies/ruby-2.3.3/lib -L/home/eddie/.rvm/rubies/ruby-2.3.3/lib -lruby -lpthread -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char *argv) 4: { 5: return 0; 6: } / end */
"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i" checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include <unistd.h> / end */
have_header: checking for sys/select.h... -------------------- yes
"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i" checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include <sys/select.h> / end */
have_header: checking for poll.h... -------------------- yes
"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i" checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include <poll.h> / end */
have_header: checking for sys/epoll.h... -------------------- yes
"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i" checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include <sys/epoll.h> / end */
have_header: checking for sys/event.h... -------------------- no
"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i" conftest.c:3:23: fatal error: sys/event.h: No such file or directory #include <sys/event.h> ^ compilation terminated. checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include <sys/event.h> / end */
have_header: checking for port.h... -------------------- no
"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i" conftest.c:3:18: fatal error: port.h: No such file or directory #include <port.h> ^ compilation terminated. checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include <port.h> / end */
have_header: checking for sys/resource.h... -------------------- yes
"gcc -E -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/x86_64-linux -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0/ruby/backward -I/home/eddie/.rvm/rubies/ruby-2.3.3/include/ruby-2.3.0 -I. -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -o conftest.i" checked program was: /* begin / 1: #include "ruby.h" 2: 3: #include <sys/resource.h> / end */
--------------------"
What OS? Should be fine on a Mac. On Windows you can have typical problems with difficulty compiling gems that require native extensions.
I'm using Ubuntu 17.04. I gave up using Windows as it is terrible with Rails!
Check to see if the 'nio4r' gem has issues on Linux.
It seems like it was a problem with my OS somewhere. I think possibly conflicts somewhere caused by rvm, but I have reinstalled it and using rbenv instead and all is working fine now. Thanks for the help :)