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

dyld: lazy symbol binding failed: Symbol not found #16

Closed
nornagon opened this issue Apr 29, 2011 · 19 comments
Closed

dyld: lazy symbol binding failed: Symbol not found #16

nornagon opened this issue Apr 29, 2011 · 19 comments

Comments

@nornagon
Copy link

I'm running this module on OSX 10.6.6, node.js v0.4.1, with bcrypt installed by 'npm install bcrypt'.

When I require('bcrypt'), I get these messages:

dyld: lazy symbol binding failed: Symbol not found: __ZN2v811HandleScopeC1Ev
  Referenced from: /usr/local/Cellar/node-v/0.4.1/lib/node/.npm/bcrypt/0.2.3/package/build/default/bcrypt_lib.node
  Expected in: flat namespace

dyld: Symbol not found: __ZN2v811HandleScopeC1Ev
  Referenced from: /usr/local/Cellar/node-v/0.4.1/lib/node/.npm/bcrypt/0.2.3/package/build/default/bcrypt_lib.node
  Expected in: flat namespace
@nornagon
Copy link
Author

Fixed in node 0.4.7.

@ncb000gt
Copy link
Member

Huzzah! :)

@durja
Copy link

durja commented Sep 24, 2018

I am using bcrypt 3.0.1 and node 8.9.3 version and I get the error as stated above.

`dyld: lazy symbol binding failed: Symbol not found :__ZN4node19GetCurrentEventLoopEPN2v87IsolateE Referenced from: /Users/local/WebstormProjects/be/node_modules/bcrypt/lib/binding/bcrypt_lib.node
Expected in: flat namespace

dyld: Symbol not found: __ZN4node19GetCurrentEventLoopEPN2v87IsolateE
Referenced from: /Users/local/WebstormProjects/be/node_modules/node_modules/bcrypt/lib/binding/bcrypt_lib.node
Expected in: flat namespace`

@recrsn
Copy link
Collaborator

recrsn commented Sep 25, 2018

@dujra Try recompiling the addon. npm rebuild bcrypt --build-from-source

@bossley
Copy link

bossley commented Sep 25, 2018

@agathver Thank you! This worked for me!

@Gwillison415
Copy link

npm rebuild bcrypt --build-from-source

Worked for me as well! thanks!

@andrewaarestad
Copy link

This is happening for me with node 8.2.1 and bcrypt 3.0.2. I was able to fix it locally by recompiling as suggested by @agathver but that's not an option for me in production so I had to downgrade bcrypt.

@gastonelhordoy
Copy link

This is happening for me with node 8.2.1 and bcrypt 3.0.2. I was able to fix it locally by recompiling as suggested by @agathver but that's not an option for me in production so I had to downgrade bcrypt.

Hey @andrewaarestad, which version of bcrypt worked for you? Thanks man!

@andrewaarestad
Copy link

@gastonelhordoy I haven't had any issues after downgrading to bcrypt 3.0.0.

@gastonelhordoy
Copy link

Thanks @andrewaarestad, it worked!

@connor11528
Copy link

connor11528 commented Nov 21, 2018

@agathver thanks for the command. Any insight into why running this command fixes the error?

Worked for me using "bcrypt": "^3.0.2" and node v8.9.1. Interested to know what was wrong!

@AndyAlex
Copy link

AndyAlex commented Dec 6, 2018

@andrewaarestad I tried downgrading to 3.0.0 but still had the same problem (Node v8.9.4). Running npm rebuild bcrypt --build-from-source worked for me, but that's not a very nice "hack". I'm interested if (and when) this can be fixed. It's not very cool for production environments.

Regards all

@PrajwalKrishna
Copy link

npm rebuild bcrypt --build-from-source worked for me as well but can anyone explain me why and how is it working

@recrsn
Copy link
Collaborator

recrsn commented Dec 24, 2018

@pk1210 There was an ABI incompatibility between 8.X releases. You have to recompile from sources in order to bind to the correct symbols, if you are on the affected versions.

asap added a commit to asap/supreme-eureka that referenced this issue Mar 2, 2019
Refactor build process and project to support Heroku deployment

* set up heroku build
* add heroku postbuild
* Updating package
* add webpack config
* set prod db
* update build process to use distribution folder
* Add node engines to package.json
* Refactor to serve up react app via express static
* set up port proxy
* bump node version to fix bcrypt issue - kelektiv/node.bcrypt.js#16
* update cors whitelist
* Add port configuration
* Add Heroku link to README
* Clean up old scripts
@joch182
Copy link

joch182 commented Jun 23, 2019

@dujra Try recompiling the addon. npm rebuild bcrypt --build-from-source

Worked for me! Thanks

@Klutch27
Copy link

September 2019 and @agathver solution npm rebuild bcrypt --build-from-source worked for me. Not sure why this is the case though? No one else on my team ran into this issue except for me. Thanks for the help!

@Sharat005
Copy link

@agathver Worked for me as well! Thanks :)

derwok added a commit to 4minitz/4minitz that referenced this issue Feb 9, 2020
bcrypt native gave runtime errors on login:
     dyld: lazy symbol binding failed: Symbol not found
According to kelektiv/node.bcrypt.js#16 one has to build brypt localy via
    npm rebuild bcrypt --build-from-source
So temporarly removing it.
@FullstackJack
Copy link

FullstackJack commented Mar 26, 2020

I forgot to nvm use in a new terminal window. It was installed with a different version of Node than the default system Node.

@Tsourdox
Copy link

Tsourdox commented Apr 7, 2020

I just updated node to the latest version 13.x and that solved it for me :)

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