BYVoid / OpenCC

Conversion between Traditional and Simplified Chinese
https://opencc.byvoid.com/
Apache License 2.0
8.46k stars 982 forks source link

OS X installation via Homebrew failed #267

Open lbbc1117 opened 7 years ago

lbbc1117 commented 7 years ago

1 . Run: brew install opecc

  1. Run: opencc
  2. And get:

    dyld: Library not loaded: @rpath/libopencc.2.dylib Referenced from: /usr/local/bin/opencc Reason: image not found Trace/BPT trap: 5

yehjames commented 6 years ago

got same issue

wxart commented 4 years ago

work around: sudo install_name_tool -add_rpath /usr/local/lib/ /usr/local/bin/opencc

BYVoid commented 4 years ago

Not reproducible here. Any suggestion?

wxart commented 4 years ago

--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,6 +62,8 @@ include(CPack) ######## Mac OS X

set(CMAKE_MACOSX_RPATH 1) +set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") +set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)

######## Directory

Not reproducible here. Any suggestion?

BYVoid commented 4 years ago

Thanks. Can you make a pull request?