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

Could not find proper libLLVM #1

Open
namiwang opened this issue Sep 4, 2016 · 1 comment
Open

Could not find proper libLLVM #1

namiwang opened this issue Sep 4, 2016 · 1 comment

Comments

@namiwang
Copy link

namiwang commented Sep 4, 2016

repro:

  1. install gem using branch llvm-3.6

  2. clean install llvm via brew

  3. properly handle paths:

    export PATH=/usr/local/opt/llvm/bin:$PATH
    export CPLUS_INCLUDE_PATH=$(llvm-config --includedir):$CPLUS_INCLUDE_PATH
    export LD_LIBRARY_PATH=$(llvm-config --libdir):$LD_LIBRARY_PATH
    
  4. make sure:

    echo $LD_LIBRARY_PATH => /usr/local/Cellar/llvm/3.6.2/lib:
    
  5. call RCGTK::CG::LLVM, gets:

    LoadError: Could not open library 'LLVM-3.6': dlopen(LLVM-3.6, 5): image not found.
    Could not open library 'libLLVM-3.6.dylib': dlopen(libLLVM-3.6.dylib, 5): image not found
      from /Users/nami/.rvm/gems/ruby-2.3.1@asm-ruby/gems/ffi-1.9.14/lib/ffi/library.rb:147:in `block in ffi_lib'
  6. Now I'm now sure where's the problem

BTW, seems it's finding libLLVM-3.6.dylib, but there's only libLLVM.dylib in /usr/local/Cellar/llvm/3.6.2/lib/

@namiwang namiwang changed the title Could not find proper libLLVM.dylib file Could not find proper libLLVM Sep 4, 2016
@namiwang
Copy link
Author

namiwang commented Sep 5, 2016

I guess it's related with this: oracle/node-oracledb#231

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