Comments (7)
CXX=clang++ npm install --save argon2 # that did the trick
Compiles and the code runs as it should, thanks for your help with figuring this out. Closing
from node-argon2.
What version of gcc is installed when you brew install it? Is it possible to see?
from node-argon2.
I was able to get the versions by traveling to the directory homebrew
saves to:
/usr/local/bin
from node-argon2.
The current PATH
on my Mac shows as:
PATH = /Users/rockchalkwushock/.nvm/versions/node/v8.2.1/bin:/Users/rockchalkwushock/.config/yarn/global/node_modules/.bin:/Users/rockchalkwushock/.config/yarn/global/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:
I see that usr/local/bin:
is referenced prior to usr/
so the brew install gcc
should be read and linked prior to that of the local gcc
. All other homebrew
installed packages are working fine. Following along with this post I was able to set a symbolic link and updated my PATH
:
cd /usr/local/Cellar/gcc/7.2.0/bin
ln -s gcc-7 gcc
vi .bash_profile
export PATH="/usr/local/Cellar/gcc/7.2.0/bin:$PATH";
source .bash_profile
which gcc # /usr/local/bin/gcc
gcc --version # gcc (Homebrew GCC 7.2.0) 7.2.0
gcc
is pointing to the correct version now for sure. I created a new directory and ran the following command and received back the error messages in the below screenshot now:
rockchalkwushock in argon2-test $ CXX=g++-7 npm install --save argon2
It seems there is still an issue with xcodebuild
as well as the unrecognized command :
'-stdlib=libc++'
Any further ideas on this? It has been years since I wrote anything in C & I believe the unrecognized command is dealing with C/C++.
from node-argon2.
According to this, the default stdlib for g++ in macOS is libc++ since Mavericks (10.9), but I don't know how it affects brew.
You can try adding below this line:
"cflags!": ["-stdlib=libc++"],
If it doesn't work, try clang.
from node-argon2.
So clone the source to my machine and add that snippet, then run
CXX=g++-6 npm install ./temp/node-argon2
from node-argon2.
CXX=clang++ npm install argon2
Should be added to the Readme, I had the same issue, this solved it, thanks @rockchalkwushock
from node-argon2.
Related Issues (20)
- Vulnerable downstream dependency HOT 6
- Hash in .Net and Verify in node.js HOT 6
- Cannot build anymore from yesterday: Cannot find module './**/*' HOT 8
- How to cache the Argon2 binary for CI? HOT 1
- Bun support HOT 1
- how to install with local argon2.node HOT 1
- v0.40.0-alpha.2 raises ts errors HOT 2
- node18.14.0 node-gyp10.0.1 Error message reported during installation of argon2 HOT 2
- How to hash without salt? HOT 2
- Feat request: synchronous version HOT 5
- Crash with docker HOT 2
- `defaults` is no longer exported in v0.40.0 HOT 2
- Mismatching version numbers on github releases and npm (0.40.0 vs 0.40.1) HOT 2
- node-gyp-build error HOT 4
- Doesn't work in the node:20-alpine image docker HOT 24
- Type regression between v0.31.2 and v0.40.1 HOT 5
- ReferenceError: require is not defined HOT 1
- Centos8 error: "symbol lookup error: undefined symbol: argon2_ctx" HOT 1
- Invalid argument on verify method HOT 4
- 0.40 prebuild fails on Debian bullseye arm64 linux as GLIBC 2.34 is required HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-argon2.