From craig at coot.net Sun Mar 4 23:17:11 2012 From: craig at coot.net (craig at coot.net) Date: Sun, 04 Mar 2012 16:17:11 -0700 Subject: [Win32utils-devel] =?utf-8?q?JRuby_devkit_=22gem_install_win32-ap?= =?utf-8?q?i=22_fails=2E_what_to_do=3F?= Message-ID: <20120304161711.82e2a108ae128a41ba2bed3b6e3abbcf.40ce883025.wbe@email14.secureserver.net> An HTML attachment was scrubbed... URL: From djberg96 at gmail.com Mon Mar 5 00:10:35 2012 From: djberg96 at gmail.com (Daniel Berger) Date: Sun, 4 Mar 2012 17:10:35 -0700 Subject: [Win32utils-devel] JRuby devkit "gem install win32-api" fails. what to do? In-Reply-To: <20120304161711.82e2a108ae128a41ba2bed3b6e3abbcf.40ce883025.wbe@email14.secureserver.net> References: <20120304161711.82e2a108ae128a41ba2bed3b6e3abbcf.40ce883025.wbe@email14.secureserver.net> Message-ID: On Sun, Mar 4, 2012 at 4:17 PM, wrote: > > I'm working on using JRuby in a windows shop.? Install of gem win32-api > failed. > > $ gem install win32-api --version '~> 1.4.8' > > I put a log at > https://gist.github.com/1966688 > > I think the RubyInstaller devkit is properly attached to the JRuby 1.6.7. > > Any ideas on what to do? I'm afraid JRuby and win32-api are incompatible at the moment. I'm actually busy converting the windows-pr library to use ffi, which will obviate the need for win32-api altogether. Heesob has done some fantastic work to make ffi work with MSVC++, so that's what is driving the overhaul. Once the next ffi version is released that includes MSVC++ support and I've finished windows-pr, I'll start converting the various win32 libs to use ffi instead. Do you have a particular win32 lib you want converted first? Regards, Dan From djberg96 at gmail.com Wed Mar 14 16:46:16 2012 From: djberg96 at gmail.com (Daniel Berger) Date: Wed, 14 Mar 2012 10:46:16 -0600 Subject: [Win32utils-devel] Fwd: ruby win32-pipe blocking In-Reply-To: References: Message-ID: Any ideas folks? - Dan ---------- Forwarded message ---------- From: Bogdan Tenea Date: Wed, Mar 14, 2012 at 10:39 AM Subject: ruby win32-pipe blocking To: djberg96 at gmail.com Hello Sorry to disturb, but I have a question regarding your Win32-PIPE ruby module. I want to build a multi-threaded pipe server, but the problems is when I do a server.connect() on one thread, all threads block. Does this have something to do with the library or is it related to how windows threads are implemented in ruby? I am running ruby 1.9.3 with latest win32-pipe (0.21) Thank you, Bogdan From djberg96 at gmail.com Sat Mar 31 00:23:42 2012 From: djberg96 at gmail.com (Daniel Berger) Date: Fri, 30 Mar 2012 18:23:42 -0600 Subject: [Win32utils-devel] ENV bug? Message-ID: What's happening here? ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] windows home premium c:\>echo %ProgramFiles% C:\Program Files c:\>irb irb(main):001:0> ENV['ProgramFiles'] => "C:\\Program Files (x86)" c:\>set Program ProgramData=C:\ProgramData ProgramFiles=C:\Program Files ProgramFiles(x86)=C:\Program Files (x86) ProgramW6432=C:\Program Files Regards, Dan From luislavena at gmail.com Sat Mar 31 00:42:30 2012 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 30 Mar 2012 21:42:30 -0300 Subject: [Win32utils-devel] ENV bug? In-Reply-To: References: Message-ID: What happens there is wow64 Running a 32bits process on a 64bits os. Sorry for top posting. Sent from mobile. On Mar 30, 2012 9:36 PM, "Daniel Berger" wrote: > What's happening here? > > ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] > windows home premium > > c:\>echo %ProgramFiles% > C:\Program Files > > c:\>irb > irb(main):001:0> ENV['ProgramFiles'] > => "C:\\Program Files (x86)" > > c:\>set Program > ProgramData=C:\ProgramData > ProgramFiles=C:\Program Files > ProgramFiles(x86)=C:\Program Files (x86) > ProgramW6432=C:\Program Files > > Regards, > > Dan > _______________________________________________ > win32utils-devel mailing list > win32utils-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/win32utils-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: From djberg96 at gmail.com Sat Mar 31 01:43:02 2012 From: djberg96 at gmail.com (Daniel Berger) Date: Fri, 30 Mar 2012 19:43:02 -0600 Subject: [Win32utils-devel] ENV bug? In-Reply-To: References: Message-ID: That's right, thanks. Forgot about that. Dan On Fri, Mar 30, 2012 at 6:42 PM, Luis Lavena wrote: > What happens there is wow64 > > Running a 32bits process on a 64bits os. > > Sorry for top posting. Sent from mobile. > > On Mar 30, 2012 9:36 PM, "Daniel Berger" wrote: >> >> What's happening here? >> >> ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] >> windows home premium >> >> c:\>echo %ProgramFiles% >> C:\Program Files >> >> c:\>irb >> irb(main):001:0> ENV['ProgramFiles'] >> => "C:\\Program Files (x86)" >> >> c:\>set Program >> ProgramData=C:\ProgramData >> ProgramFiles=C:\Program Files >> ProgramFiles(x86)=C:\Program Files (x86) >> ProgramW6432=C:\Program Files >> >> Regards, >> >> Dan >> _______________________________________________ >> win32utils-devel mailing list >> win32utils-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/win32utils-devel > > > _______________________________________________ > win32utils-devel mailing list > win32utils-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/win32utils-devel From phasis at gmail.com Sat Mar 31 02:07:53 2012 From: phasis at gmail.com (Heesob Park) Date: Sat, 31 Mar 2012 11:07:53 +0900 Subject: [Win32utils-devel] ENV bug? In-Reply-To: References: Message-ID: Hi, 2012/3/31 Daniel Berger > That's right, thanks. Forgot about that. > > Dan > > On Fri, Mar 30, 2012 at 6:42 PM, Luis Lavena wrote: > > What happens there is wow64 > > > > Running a 32bits process on a 64bits os. > > > > Sorry for top posting. Sent from mobile. > > > > On Mar 30, 2012 9:36 PM, "Daniel Berger" wrote: > >> > >> What's happening here? > >> > >> ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] > >> windows home premium > >> > >> c:\>echo %ProgramFiles% > >> C:\Program Files > >> > >> c:\>irb > >> irb(main):001:0> ENV['ProgramFiles'] > >> => "C:\\Program Files (x86)" > >> > >> c:\>set Program > >> ProgramData=C:\ProgramData > >> ProgramFiles=C:\Program Files > >> ProgramFiles(x86)=C:\Program Files (x86) > >> ProgramW6432=C:\Program Files > >> > >> Regards, > >> > >> Dan > It reminds me of when I found some inconsistency between command prompt and 32bit ruby about system32 folder. Here is an example. Ruby tells the size of 'c:/windows/system32/notepad.exe' is 179712 C:\Users\phasis>irb irb(main):001:0> File.size('c:/windows/system32/notepad.exe') => 179712 But, Windows tells the size of 'c:/windows/system32/notepad.exe' is 193536 C:\>dir windows\system32\notepad.exe Volume in drive C is Windows 7 Volume Serial Number is 700B-966B Directory of C:\windows\system32 2009-07-14 AM 10:39 193,536 notepad.exe 1 File(s) 193,536 bytes 0 Dir(s) 156,550,344,704 bytes free I found, for 32bit application, C:/windows/syswow64 maps to C:/windows/system32. C:\>dir windows\syswow64\notepad.exe Volume in drive C is Windows 7 Volume Serial Number is 700B-966B Directory of C:\windows\syswow64 2009-07-14 AM 10:14 179,712 notepad.exe 1 File(s) 179,712 bytes 0 Dir(s) 156,550,279,168 bytes free Regards, Park Heesob -------------- next part -------------- An HTML attachment was scrubbed... URL: From luislavena at gmail.com Sat Mar 31 02:27:38 2012 From: luislavena at gmail.com (Luis Lavena) Date: Fri, 30 Mar 2012 23:27:38 -0300 Subject: [Win32utils-devel] ENV bug? In-Reply-To: References: Message-ID: That is caused by wow64 and virtual storage that maps system32 differently. Sorry for top posting. Sent from mobile. On Mar 30, 2012 11:25 PM, "Heesob Park" wrote: > Hi, > > 2012/3/31 Daniel Berger > >> That's right, thanks. Forgot about that. >> >> Dan >> >> On Fri, Mar 30, 2012 at 6:42 PM, Luis Lavena >> wrote: >> > What happens there is wow64 >> > >> > Running a 32bits process on a 64bits os. >> > >> > Sorry for top posting. Sent from mobile. >> > >> > On Mar 30, 2012 9:36 PM, "Daniel Berger" wrote: >> >> >> >> What's happening here? >> >> >> >> ruby 1.9.3p125 (2012-02-16 revision 34643) [i386-mswin32_100] >> >> windows home premium >> >> >> >> c:\>echo %ProgramFiles% >> >> C:\Program Files >> >> >> >> c:\>irb >> >> irb(main):001:0> ENV['ProgramFiles'] >> >> => "C:\\Program Files (x86)" >> >> >> >> c:\>set Program >> >> ProgramData=C:\ProgramData >> >> ProgramFiles=C:\Program Files >> >> ProgramFiles(x86)=C:\Program Files (x86) >> >> ProgramW6432=C:\Program Files >> >> >> >> Regards, >> >> >> >> Dan >> > > It reminds me of when I found some inconsistency between command prompt > and 32bit ruby about system32 folder. > > Here is an example. > > Ruby tells the size of 'c:/windows/system32/notepad.exe' is 179712 > C:\Users\phasis>irb > irb(main):001:0> File.size('c:/windows/system32/notepad.exe') > => 179712 > > But, Windows tells the size of 'c:/windows/system32/notepad.exe' is 193536 > > C:\>dir windows\system32\notepad.exe > Volume in drive C is Windows 7 > Volume Serial Number is 700B-966B > > Directory of C:\windows\system32 > > 2009-07-14 AM 10:39 193,536 notepad.exe > 1 File(s) 193,536 bytes > 0 Dir(s) 156,550,344,704 bytes free > > I found, for 32bit application, C:/windows/syswow64 maps > to C:/windows/system32. > C:\>dir windows\syswow64\notepad.exe > Volume in drive C is Windows 7 > Volume Serial Number is 700B-966B > > Directory of C:\windows\syswow64 > > 2009-07-14 AM 10:14 179,712 notepad.exe > 1 File(s) 179,712 bytes > 0 Dir(s) 156,550,279,168 bytes free > > Regards, > > Park Heesob > > > _______________________________________________ > win32utils-devel mailing list > win32utils-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/win32utils-devel > -------------- next part -------------- An HTML attachment was scrubbed... URL: