Skip to content

Instantly share code, notes, and snippets.

@yyoshiki41
Created November 14, 2018 12:12
Show Gist options
  • Save yyoshiki41/975175c1312e813b9931cdd5ec3b4ed8 to your computer and use it in GitHub Desktop.
Save yyoshiki41/975175c1312e813b9931cdd5ec3b4ed8 to your computer and use it in GitHub Desktop.

direnv を使っていて下記のように、ライブラリのパスがoverwriteされている場合がある。

direnv: loading .envrc
direnv: export -DYLD_LIBRARY_PATH -LD_LIBRARY_PATH

e.g.)

エラー内容

ld: library not found for -lssl
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    error: command 'clang' failed with exit status 1

とりあえず環境変数に入れて対応。

$ LDFLAGS=-L/usr/local/opt/openssl/lib pip install mysqlclient
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment