Re: Cross-Compile Perl Modules for Win x64
by jeffa (Bishop) on Dec 30, 2008 at 15:08 UTC
|
Since any comments are welcome -- why are you using Microsoft on a production server? In this day and age I just can't wrap my head around not using open source. I mean ... we use Linux servers and NEVER have these issues. EVER. Plus, it's so cheap it's almost free. YMMV.
| [reply] |
|
Jeffa,
Many of our production servers are migrating across to Linux, and believe me when i say i would love to migrate these app servers aswell...
Unfortunately the App in question currently only supports Windows, through a combination of requiring Java 1.4 and a propitiatory, currently Windows only DLL for smart-card readers... Yes, i know i know...
There is development scheduled to migrate to Linux, but it's a way of yet, so currently have to make do with Windows...
Cheers for the comment though... Anyone else?
Cheers
Gavin
| [reply] |
Re: Cross-Compile Perl Modules for Win x64
by cdarke (Prior) on Dec 30, 2008 at 15:39 UTC
|
You need to link with the same version of Perl DLLs and the same version of the C run-time library, and that means doing that on a 64-bit machine with Microsoft Visual Studio. I expect (though I am not certain) that for the Oracle DBD you will need the Oracle DLLs as well. | [reply] |
Re: Cross-Compile Perl Modules for Win x64
by Bloodnok (Vicar) on Dec 30, 2008 at 15:21 UTC
|
| [reply] [d/l] [select] |
|
| [reply] [d/l] [select] |
|
| [reply] |
|
|
|
|
Ok, i've had a read of the MakeFile.pl for Win32-SystemInfo, and it lists Win32::API as a requirement...
Am i right in thinking i'm stuck as i cant use Win32::API on a 64Bit box???
Comments???
Cheers
Gavin
| [reply] |
|
|
|
If you don't have VC (cl.exe) on your PATH, but have MingW and dmake installed, then ActivePerl will automatically use them to builds XS code. perl Makefile.PL will automatically generate the correct Makefile, not configuration is required beyond putting MinGW and dmake on the PATH.
| [reply] [d/l] [select] |
Re: Cross-Compile Perl Modules for Win x64
by fatmcgav (Novice) on Dec 31, 2008 at 08:39 UTC
|
Ok, lets try and go a different way about this then?
Does anybody know a way i can get Perl to read the Total/In Use RAM Counters on a 64Bit Windows Server 2k3 with 8Gb+ Ram???
Cheers
Gavin | [reply] |
|
Does anybody know a way i can get Perl to read the Total/In Use RAM Counters on a 64Bit Windows Server 2k3 with 8Gb+ Ram???
If you know of a Windows API function that returns the values you want, then you could access that function from perl using XS or Inline::C.
Obviously, on a 32-bit perl, such an XSub could not return a 'uv' (long) value, as 'uvs' aren't guaranteed to be large enough to store the value being returned. But you could have the XSub return the value to perl as an 'nv' (double) or a 'pv' (string).
On your 64-bit perl, the XSub could simply return the value as a 'uv' (since it uses 64-bit uvs).
I would expect that such a Windows API function does exist ... presumably the modules in question are accessing that Windows API function with Win32::API. Do you know which Windows API function(s) you need to access ?
Cheers, Rob
| [reply] |
|
Rob,
I was trying to use win32::SystemInfo, so dont know if you can pick the info out of that???
Source code is here: http://search.cpan.org/src/CJOHNSTON/Win32-SystemInfo-0.10/SystemInfo.pm
Any ideas?
Cheers
Gavin
| [reply] |
|
| [reply] [d/l] |