Closed bendikro closed 6 years ago
Did you install ruby-dev package with ubuntu?
Yes, ruby-dev is installed.
The content of the depend file in the build dir (/var/lib/gems/2.5.0/gems/stringio-0.0.1) is:
# AUTOGENERATED DEPENDENCIES START
stringio.o: $(RUBY_EXTCONF_H)
stringio.o: $(arch_hdrdir)/ruby/config.h
stringio.o: $(hdrdir)/ruby/backward.h
stringio.o: $(hdrdir)/ruby/defines.h
stringio.o: $(hdrdir)/ruby/encoding.h
stringio.o: $(hdrdir)/ruby/intern.h
stringio.o: $(hdrdir)/ruby/io.h
stringio.o: $(hdrdir)/ruby/missing.h
stringio.o: $(hdrdir)/ruby/onigmo.h
stringio.o: $(hdrdir)/ruby/oniguruma.h
stringio.o: $(hdrdir)/ruby/ruby.h
stringio.o: $(hdrdir)/ruby/st.h
stringio.o: $(hdrdir)/ruby/subst.h
stringio.o: $(top_srcdir)/include/ruby.h
stringio.o: stringio.c
# AUTOGENERATED DEPENDENCIES END
The depend file is appended to the Makefile, and the problem is that the _topsrcdir variable is undefined and therefore empty when substituted, leading to the error:
No rule to make target '/include/ruby.h', needed by 'stringio.o'
Installing ruby-dev fixed this for me.
I have the same issue. I am on Mac, and the website works all fine on localhost. How do I install the "ruby-dev" please ? Sorry - newbie question
Try install sudo apt install zlib1g-dev
as well.