-
Notifications
You must be signed in to change notification settings - Fork 73
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
Can't update to 3.0.0 on Windows #139
Comments
Here is my mkmf.log file: find_header: checking for libxml/xmlversion.h in /opt/include/libxml2,/opt/local/include/libxml2,/usr/local/include/libxml2,/usr/include/libxml2... -------------------- no "gcc -o conftest.exe -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/i386-mingw32 -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/ruby/backward -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -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 conftest.c -L. -LC:/RailsInstaller/Ruby2.2.0/lib -L. -lmsvcrt-ruby220 -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi " "gcc -E -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/i386-mingw32 -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/ruby/backward -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -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 conftest.c -o conftest.i" "gcc -E -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/i386-mingw32 -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/ruby/backward -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -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 -I/opt/include/libxml2 conftest.c -o conftest.i" "gcc -E -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/i386-mingw32 -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/ruby/backward -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -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 -I/opt/local/include/libxml2 conftest.c -o conftest.i" "gcc -E -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/i386-mingw32 -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/ruby/backward -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -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 -I/usr/local/include/libxml2 conftest.c -o conftest.i" "gcc -E -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/i386-mingw32 -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0/ruby/backward -IC:/RailsInstaller/Ruby2.2.0/include/ruby-2.2.0 -I. -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64 -O3 -fno-omit-frame-pointer -fno-fast-math -g -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 -I/usr/include/libxml2 conftest.c -o conftest.i" |
Looks like the compiler cannot find the libxml2 header files. You'll want to use the --with-xml2-include option. gem install libxml-ruby -- --with-xml2-include= |
Hi, I can't update to 3.0.0 on Windows. Here is my error:
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/RailsInstaller/Ruby2.2.0/bin/$(RUBY_BASE_NAME)
--with-xml2-config
--without-xml2-config
--with-xml2-dir
--without-xml2-dir
--with-xml2-include
--without-xml2-include=${xml2-dir}/include
--with-xml2-lib
--without-xml2-lib=${xml2-dir}/lib
extconf failure: need libxml2.
extconf failed, exit code 1
Gem files will remain installed in
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/libxml-ruby-3.0.0 for
inspection.
Results logged to
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/extensions/x86-mingw32/2.2.0/libxml-ruby-3.0.0/gem_make.out
The text was updated successfully, but these errors were encountered: