Skip to content
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

Installation problem on Windows 10 #17

Closed
bonomani opened this issue Jan 23, 2023 · 1 comment
Closed

Installation problem on Windows 10 #17

bonomani opened this issue Jan 23, 2023 · 1 comment

Comments

@bonomani
Copy link

Hello,
I encountered the followin problem:

C:\Users\bc>zef --debug install  "NativeLibs:ver<0.0.9>"
===> Searching for: NativeLibs:ver<0.0.9>
===> Found: NativeLibs:ver<0.0.9>:auth<github:salortiz> [via Zef::Repository::Ecosystems<rea>]
===> Fetching: NativeLibs:ver<0.0.9>
[NativeLibs] Fetching https://raw.githubusercontent.com/raku/REA/main/archive/N/NativeLibs/NativeLibs%3Aver%3C0.0.9%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz with plugin: Zef::Service::Shell::curl+{<anon|1>}
===> Fetching [OK]: NativeLibs:ver<0.0.9>:auth<github:salortiz> to C:\Users\bc\AppData\Local\Temp/.zef\1674398838.7840.2380.3565237259304\NativeLibs%3Aver%3C0.0.9%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz
===> Extracting: NativeLibs:ver<0.0.9>
[NativeLibs] Extracting with plugin: Zef::Service::Shell::tar+{<anon|1>}
===> Extraction [OK]: NativeLibs:ver<0.0.9> to C:\Users\bc\AppData\Local\Temp/.zef\NativeLibs%3Aver%3C0.0.9%3E%3Aauth%3Cgithub%3Asalortiz%3E.tar.gz
===> Filtering: NativeLibs:ver<0.0.9>:auth<github:salortiz>
===> Filtering [OK] for NativeLibs:ver<0.0.9>:auth<github:salortiz>
===> # SKIP: No need to build NativeLibs:ver<0.0.9>:auth<github:salortiz>
===> Testing: NativeLibs:ver<0.0.9>:auth<github:salortiz>
[NativeLibs] Testing with plugin: Zef::Service::TAP+{<anon|1>}
[NativeLibs] 1..23
[NativeLibs] ok 1 - NativeLibs:v<0.0.9> module can be use-d ok
[NativeLibs] ok 2 - Class Loader exists
[NativeLibs] ok 3 - Class Searcher exists
[NativeLibs] ok 4 - sub cannon-name exists
[NativeLibs] ok 5 - constant is-win exists
[NativeLibs] ok 6 - NativeCall loaded too
[NativeLibs] ok 7 - '&trait_mod:<is>' loaded too
[NativeLibs] ok 8 - 'ulonglong' loaded too
[NativeLibs] ok 9 - 'Pointer' loaded too
[NativeLibs] ok 10 - '&explicitly-manage' loaded too
[NativeLibs] ok 11 - '&cglobal' loaded too
[NativeLibs] ok 12 - 'bool' loaded too
[NativeLibs] ok 13 - 'CArray' loaded too
[NativeLibs] ok 14 - 'ulong' loaded too
[NativeLibs] ok 15 - 'void' loaded too
[NativeLibs] ok 16 - '&nativesizeof' loaded too
[NativeLibs] ok 17 - 'long' loaded too
[NativeLibs] ok 18 - 'size_t' loaded too
[NativeLibs] ok 19 - 'OpaquePointer' loaded too
[NativeLibs] ok 20 - '&refresh' loaded too
[NativeLibs] ok 21 - 'longlong' loaded too
[NativeLibs] ok 22 - '&guess_library_name' loaded too
[NativeLibs] ok 23 - '&nativecast' loaded too
[NativeLibs] t\01-basic.t ........ ok
[NativeLibs] 1..10
[NativeLibs] ok 1 - foo.dll
[NativeLibs] ok 2 - foo.dll
[NativeLibs] ok 3 - # SKIP <unknown>
[NativeLibs] ok 4 - # SKIP <unknown>
[NativeLibs] ok 5 - # SKIP <unknown>
[NativeLibs] ok 6 - # SKIP <unknown>
[NativeLibs] ok 7 - # SKIP <unknown>
[NativeLibs] ok 8 - # SKIP <unknown>
[NativeLibs] ok 9 - # SKIP <unknown>
[NativeLibs] ok 10 - # SKIP <unknown>
[NativeLibs] t\02-cannon-name.t .. ok
[NativeLibs] ok 1 - found kernel32.dll
[NativeLibs] ok 2 - Unversionized
[NativeLibs] ok 3 - Can be loaded
[NativeLibs] ok 4 - used
[NativeLibs] ok 5 - and disposed
[NativeLibs] ok 6 - The object does role 'Callable'
[NativeLibs] ok 7 - Closure can be called
[NativeLibs] ok 8 - Indeed mysql # TODO Can fail if the mysqlclient library isn't installed
[NativeLibs] 1..8
[NativeLibs] t\10-search.t ....... ok
[NativeLibs] 1..2
[NativeLibs] ok 1 - Can create compiler
[NativeLibs] t\20-compile.t ...... Dubious, test returned 255
[NativeLibs] All 2 subtests passed
[NativeLibs] All tests successful.
[NativeLibs]
[NativeLibs] Test Summary Report
[NativeLibs] -------------------
[NativeLibs] t\20-compile.t  (Wstat: 65280 Tests: 1 Failed: 0)
[NativeLibs] Non-zero exit status: 255
[NativeLibs]   Parse errors: Bad plan.  You planned 2 tests but ran 1.
[NativeLibs] Files=4, Tests=42,  3 wallclock secs
[NativeLibs] Result: FAILED
===> Testing [FAIL]: NativeLibs:ver<0.0.9>:auth<github:salortiz>
Aborting due to test failure: NativeLibs:ver<0.0.9>:auth<github:salortiz> (use --force-test to override)
@bonomani
Copy link
Author

OK , I find how to make it works

  • Install "MS Visual Studio" (community for example) and then install the "CMake tools"
  • Start "MS Visual Studio" and search for the "Developper prompt", and start it. This "prompt" has the "path" of the tools in its environnement: Start this command prompt and type: "path" or "where cl.exe"
  • This path could be add in the PC global setting to make it persistent: (In my case the path of "cl.exe" is "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.34.31933\bin\HostX86\x86"): Install this path the "environnement variables" in the system advanced property (SystemPropertiesAdvanced.exe)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant