jhefreyzz
Hi,
I’m really stuck for long hours just to install argon2 in my Phoenix app and can’t figure out what should I do to make it work.
Here’s what I tried to far.
Since I installed build tools from Visual Studio 2019 Preview installer I run this command.
cmd /K "C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Auxiliary\Build\vcvarsall.bat" amd64
Then the result is
**********************************************************************
** Visual Studio 2019 Developer Command Prompt v16.5.0-pre.1.0
** Copyright (c) 2019 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
C:\Windows\System32>cd \Users\Utsuro\Desktop\demoauth
C:\Users\Utsuro\Desktop\demoauth>mix compile
==> argon2_elixir
Microsoft (R) Program Maintenance Utility Version 14.24.28314.0
Copyright (C) Microsoft Corporation. All rights reserved.
'where' is not recognized as an internal or external command,
operable program or batch file.
del /Q /F priv
Could Not Find c:\Users\Utsuro\Desktop\demoauth\deps\argon2_elixir\priv
nmake / /F Makefile.win priv\argon2_nif.dll
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\VC\Tools\MSVC\14.24.28314\bin\HostX64\x64\nmake.EXE"' : return code '0x2'
Since its not working I try the suggestion in Comeonin and install VisualCppBuildTools. but running choco install VisualCppBuildTools then executing a cmd command
cmd /K "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64 but the result is still the same
C:\Users\Utsuro\Desktop\demoauth>mix compile
==> argon2_elixir
Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.
where' is not recognized as an internal or external command,
operable program or batch file.
del /Q /F priv
Could Not Find c:\Users\Utsuro\Desktop\demoauth\deps\argon2_elixir\priv
nmake / /F Makefile.win priv\argon2_nif.dll
I’m really stuck and I really need to work this out.
I’m using Windows 10 Home SL Version 1903
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hi everyone,
I am toying with the idea of building a “match maker” for giving personal help to people that wants to start coding.
I sta...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
I recently noticed that Elixir’s Logger defaults its primary log level to :debug when no :logger, :level application configuration is pre...
New
apply_graft/2 doesn’t rewrite an add_many sub-workflow’s deps on an add step. Grafted jobs cancel with “upstream job was deleted”
Version...
New
Other Trending Topics
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Hi everyone!
The first release candidate for the Expert language server project is now available!
We’ve published a press release detai...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #elixirconf-eu
- #metaprogramming
- #hex










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
sfusato
I remember having this issue when I was using a Windows machine. My “solution” at the time involved using Pbkdf2 instead of Argon2: GitHub - riverrun/comeonin: Password hashing specification for the Elixir programming language · GitHub
bottlenecked
Another possible “solution” in the same vein would be to build using WSL. I know I’ve often resorted to such “solutions” when library authors didn’t have windows machines on hand for testing
jhefreyzz
So I will compile it in WLS? After it compiles then I use it just normal in my windows machine?
NobbZ
No, if you compile in WSL, you have to stay in WSL land.
wolfiton
Use a virtual machine (vm) for Linux. The recommended one is virtualbox with Kubuntu. That is what I am using and have no problems.
Get virtualbox from here Downloads – Oracle VirtualBox
Also i ma considering in the near future to go all Linux
Also check this thread out to see how the dev feels before diving in Kubuntu against my old Bodhi Linux
bottlenecked
Yes… you’d need to install ubuntu for example under WSL, and then follow the instructions in the elixir website to install erlang and elixir under WSL. Then you can compile (and run) your code from inside WSL. Or you can compile inside WSL and run from a regular cmd prompt (most of the times).
PS. an issue that we commonly faced running code from WSL was that there was no graphics under WSL and thus no observer UI (you need more hacking to get it to run). There are a couple other quick workarounds (like wobserver, cli_observer or using erlang distribution to connect from another node in windows and then start observer from that node)… you get the point. It can be a rabbithole. Yay for elegance.
jhefreyzz
So I will developing in WSL then?
dimitarvp
Very possible. Windows is not well-supported by many library authors where a native (C/C++) code has to be compiled in-place, inside the user’s OS. Windows is notoriously bad for this; it does not have the proper development files installed (and accessible in standard locations) for development workflows. So blame Microsoft. If tomorrow Windows gets standard header and object files (as Macs and Linux machines have) then supporting native compilation out of the box will be easy. But this is still not done and at this point it seems too late even if Microsoft gets it done.
Developing on Windows is a doomed adventure. Either use a Linux VM to develop in (VirtualBox is quite good; a main Win10 machine + Linux VM has been my setup for years before I moved to Macs) or just install Linux directly. Or buy a Mac.
Again, this is not the fault of the library authors. The needed machinery inside Windows is simply missing. You can install it but it’s a very error-prone process and success is not guaranteed. I’ve done it successfully in the past but it costed a lot of time and nerves to get it right. Nowadays I’d charge $500 an hour for such a service.
Notable exception is Rust; if your Elixir libraries depend on Rust native libraries (one such library is
meeseeks) then there’s no problem even on Windows – at least with the several I tried. But you can’t expect thousands of old and well-established libraries (like, say, ImageMagick) to migrate to Rust just so programmers can develop on Windows. Windows is simply not viewed as worth supporting as a development environment by almost everyone.mathieuprog
I use Argon2 on Windows for my Phoenix apps. I run the following command in ConEmu:
jhefreyzz
Sorry but this does not work for me. I decided to go full WSL now. Its going smooth.