-
-
Notifications
You must be signed in to change notification settings - Fork 904
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
Support Ruby x64 on Windows #864
Comments
+1 |
Let us know what we can do. Happy to help with x64-mingw32. Here's my environment: [C:\Users\steffenr]gem environment RubyGems Environment: - RUBYGEMS VERSION: 2.0.3 - RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [x64-mingw32] - INSTALLATION DIRECTORY: C:/Ruby/lib/ruby/gems/2.0.0 - RUBY EXECUTABLE: C:/Ruby/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby/bin - RUBYGEMS PLATFORMS: - ruby - x64-mingw32 - GEM PATHS: - C:/Ruby/lib/ruby/gems/2.0.0 - C:/Users/steffenr/.gem/ruby/2.0.0 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :backtrace => false - :bulk_threshold => 1000 - "gem" => "--no-rdoc --no-ri" - REMOTE SOURCES: - https://rubygems.org/ |
make
|
Hi, Are there any news for x64-bit support? :( Ruby 2.0 64-bit is primary version to run Ruby on Windows Server. I do not understand why somone would like to use 32-bit version of Ruby 2.0 when 64-bit is available. Thanks, Ratko |
@stibra Thank you for asking. This will be done as soon as I can get to it. Windows builds are hard to do, since libxml2, libxslt, libiconv and zlib must be pre-compiled and delivered as DLLs. Additionally, Team Nokogiri has no windows machines to test with. I'm hoping to do this this week. Please be patient. |
I'm happy to help testing. |
Thanks for the information! I can provide Windows Servers for testing and will do the testing as soon you have something :) |
Nokogiri depends on JSON 1.6.1 which doesn't compile while JSON 1.7.7 does. |
@zhon - I don't understand your comment. |
@flavorjones When I try installing nokogiri on Widown 64 (devkit.64-4.7.2), one of the problems I encounter is nokogiri attempting to install JSON 1.6.1 (which didn't compile). |
Hey, am getting following error while installing aws-sdk gem on windows 7 64-bit:- <<< ---- checking for libxml/parser.h... no libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies." *** extconf.rb failed *** ----- >>>> Following are the entries in mknf.log :- <<< --- I tried to download separate libxml2 and "libiconv-1.13.1-1-mingw32-dev" and put on the LIBDIR and INCLUDEDIR. But still getting same error. Environment Info :- <<< ---
C:\DevKit> ------ >>>> Please guide. |
Hello, Windows users who are new to this thread! Ruby 2.0 64-bit windows support is not yet available. Compilation at gem install time is not supported so please do not try. If you try, do not try to get us to help you do it. Adding your compilation errors to this ticket is simply adding noise. The only supported method of installing Nokogiri for Windows is now, and will continue to be, having Team Nokogiri cross-compile the required DLLs for your platform, and shipping a "fat binary" gem. |
Thanks for clarification. |
@fbehrens Thanks a lot.. I had 32 installation just wanted to move to 64-bit. :) |
any idea when we could expect it released? like after 2 weeks, month, etc? |
"So much time and so little to do. Wait a minute. Strike that. Reverse it. Thank you." I'll let you know when I know. Historically speaking, windows users have not been active participants in the development process of Nokogiri, so it's great to see people anxious for updates. |
I'd like to see this too, I can help with testing if it's needed! |
I'm interested in the windows 64 bit solution too and will grab it for testing as soon as it is available. |
How is this going? I can test as much as you like! We're eager cause this is the first release of 64 bit Ruby for Windows. |
👍 +1 |
Hello everyone, I will summarize previous updates for those who are new to the conversation: rake-compiler does not yet support the x64-mingw32 platform. Status on that is here: rake-compiler/rake-compiler#74 In the meantime, please keep in mind that compilation at gem install time is not supported so please do not try. If you try, do not try to get us to help you do it. Adding your compilation errors to this ticket is simply adding noise. The only supported method of installing Nokogiri for Windows is now, and will continue to be, having Team Nokogiri cross-compile the required DLLs for your platform, and shipping a "fat binary" gem. |
thanks for showing where's roadblock :) |
I am getting the "libxml2 is missing" error even with x86-mingw32 on a windows 8 x64 machine. RubyGems Environment: - RUBYGEMS VERSION: 2.0.0 - RUBY VERSION: 2.0.0 (2013-02-24 patchlevel 0) [i386-mingw32] - INSTALLATION DIRECTORY: C:/Ruby200/lib/ruby/gems/2.0.0 - RUBY EXECUTABLE: C:/Ruby200/bin/ruby.exe - EXECUTABLE DIRECTORY: C:/Ruby200/bin - RUBYGEMS PLATFORMS: - ruby - x86-mingw32 - GEM PATHS: - C:/Ruby200/lib/ruby/gems/2.0.0 - C:/Users/Helge/.gem/ruby/2.0.0 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/
ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension. C:/Ruby200/bin/ruby.exe extconf.rb The system cannot find the path specified. checking for libxml/parser.h... no ----- libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. ----- *** extconf.rb failed *** Any solutions for that problem? |
If the real blocker is a lack of Win XP/7 x64 development machine where the cross compilation can happen, please shout. Many people, including me, are willing to provide you that. If you have all the necessary files in an archive (plus instructions), please provide that and I am sure the community can help. If the real blocker however is that your own efforts of successfully compiling Nokogiri (and its dependecies) on a Windows box which you already have a hold of, are still in progress, well, then there isn't much we can do except wait. Maybe I can explain a bit as to why the Win64 demand is rising. I am working on several projects and am using multiple VirtualBox Linux guests to do so. However, for my host OS I prefer Win7 to any Linux simply because I am occasionally gaming (I am not sure Windows has any other valid use anyway, to be fair). And when I want to fiddle with something mine, I am not inclined to fire a virtual machine every time. I just wanna open my emacs and 1-2 consoles and start doing stuff. And here comes our problem -- having the "mandatory" gems (I consider Nokogiri one of them) on your system whenever you need them, which includes compiling the native ones (or having a "fat gem" as you put it) without too much trouble. I believe there's a good number of devs on my page, so maybe that use-case can explain the demand. In any case, please shout if you need some community support. |
@Dimitko I agree. Also don't forget that many users may be in an enterprise environment where they are forced to run Windows, despite their personal preferences for OSX or Linux. |
@Dimitko I agree. Nokogiri has become core to Ruby. With many of the Windows' Ruby programmers using Win7 64 bit, we are stuck using Ruby 1.9.3 for projects that use Nokogiri. We are used to compiling and installing other libraries (ex., libxml, curl) into our mingw system. |
@zhon Although you are not stuck using 1.9.3, Nokogiri does install and run fine on Windows Ruby 2.0.0 x86, so as long as you do not go for 64 bits its fine. Luis Lavena did circumvent the compile problems for Sqlite3 on Win x64 Ruby 2.0.0, I have seen him discussing some solutions for this too. Hope it gets fixed soon. |
Hello everyone, I will summarize previous updates for those who are new to the conversation: rake-compiler does not yet support the x64-mingw32 platform. Status on that is here: rake-compiler/rake-compiler#74 In the meantime, please keep in mind that compilation at gem install time is not supported so please do not try. If you try, do not try to get us to help you do it. Adding your compilation errors to this ticket is simply adding noise. The only supported method of installing Nokogiri for Windows is now, and will continue to be, having Team Nokogiri cross-compile the required DLLs for your platform, and shipping a "fat binary" gem. |
Correct... not fixed yet. Baby steps are still good news. g
Please update your PATH to include build tools or download the DevKit
Please update your PATH to include build tools or download the DevKit On Mon, Feb 24, 2014 at 10:03 AM, Luis Lavena [email protected]:
Glauber Ribeiro - [email protected] |
This is fixed in the repository, that doesn't mean has been released as a gem. Please understand that in order to release a new version of a gem several things needs to happen before, one of those is maintainers find the time to coordinate all the changes, build changelog, do some testing, etc. Not to mention the requirements on cross-compiling Windows native gems. If you clone the repository you will be able to build the gem natively BTW, your error:
Indicates you don't have compiler toolchain installed, and because of that, you cannot locally build Nokogiri (which might be possible due latest modifications released not long ago). You might not have pre-compiled binaries yet. |
When will this fix be available for end users to try? |
Look forward to get the fixed version. Thanks very much. |
I have to vote for larskanis's claim for bounty until March 10th, but i'm unable to test his solution until the gem is released. What do i do? |
@lolmaus: In order to install nokogiri on Windows-x64 from the git repository, before team nokogiri released the next official version, you need git and the DevKit properly installed. You can do:
The test suite should also pass with Update: I've updated the commands since #1061 is merged by now. |
Seems legit. :) |
Here is how to install Nokogiri gem with Chocolatey, Windows 8.1 x64, and DevKit x64. |
@starrychloe That does not work for me, those packages are not in the Chocolatey repo. |
Hi, I have installed Nokogiri x64 with Chocolatey, but when running the application, I receive the error: [tid-3001920] 126: The specified module could not be found. - C:/Ruby200/lib/ruby/gems/2.0.0/gems/nokogiri-1.6.1/lib/nokogiri/nokogiri.so (LoadError) File nokogiri.so is in the good location. |
@stibra: This seems to be some kind of unresolved DLL dependency. You could try Sysinternals depends tool. However support for building nokogiri on Windows x86/x64 is already included in the git master branch, so it should work with the install instructions above. There is no need for Chocolatey. |
I will try later on other server. I have returned to Ruby 1.9.3. I could not find the way how to install the gem without Chocolatey. |
I have Ruby 2.0 64-bit on Windows 7
Nokogiri won't install
|
The issue is fixed in HEAD, please release a Gem to Rubygems.org . This is a killer issue for some people |
Includes addition of capybara gem configured for feature tests. Note capybara has runtime dependency on nokogiri and might not work on Windows. See sparklemotion/nokogiri#864 Conflicts: app/models/user.rb app/views/layouts/application.html.erb config/routes.rb spec/models/user_spec.rb spec/spec_helper.rb
We're planning on shipping an RC in the next day or so, which will build a On Thu, Mar 27, 2014 at 11:02 AM, Matt Hickford [email protected]:
|
Oh, yes please! This is currently killing progress on my project. |
@babelfish @stibra You have to include a repository from Microsoft to install with Chocolatey: |
I did install it finally, but it does not work anyway. |
This was merged and released as 1.6.2.rc1 yesterday. Please try it out. |
This appears to be working great. Thanks to all who worked towards fixing this! Release details here, you just have to install using --pre or specify the version. |
I did a test run on Windows 7 with the following RubyInstaller versions. Everything worked as expected:
All above versions worked equally with the binary gem per |
@larskanis Thanks much for testing. Looks like Windows gems are building and working great! |
Awesome, @larskanis! Thanks for all your help on Windows support.
|
@larskanis I got the gem installed via Bundler successfully using Ruby 2.0.0 x64 on Windows 7. Many many thanks for contributing to this project! |
With Ruby 2.0 release there's now Ruby x64 available for Windows. Also DevKit have been released with MinGW x64. Most of typical gems does build fine with it.
http://rubyinstaller.org/downloads/
The text was updated successfully, but these errors were encountered: