We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
On my Mac Sierra laptop, with PostgreSQL 9.6.2, if I run: pgxn install treasuredata_fdw
It fails when it gets to openssl:
Compiling openssl v0.7.14 Compiling openssl-sys-extras v0.7.14 error: failed to run custom build command for `openssl v0.7.14` process didn't exit successfully: `/private/var/folders/n4/hm9r41tx54ld3vwgvw76dvgm0000gp/T/tmpuag_954b/treasuredata_fdw-1.0.0/bridge_td_client_rust/target/release/build/openssl-644d16d503222a71/build-script-build` (exit code: 101) --- stdout TARGET = Some("x86_64-apple-darwin") OPT_LEVEL = Some("3") TARGET = Some("x86_64-apple-darwin") HOST = Some("x86_64-apple-darwin") TARGET = Some("x86_64-apple-darwin") TARGET = Some("x86_64-apple-darwin") HOST = Some("x86_64-apple-darwin") CC_x86_64-apple-darwin = None CC_x86_64_apple_darwin = None HOST_CC = None CC = None HOST = Some("x86_64-apple-darwin") TARGET = Some("x86_64-apple-darwin") HOST = Some("x86_64-apple-darwin") CFLAGS_x86_64-apple-darwin = None CFLAGS_x86_64_apple_darwin = None HOST_CFLAGS = None CFLAGS = None PROFILE = Some("release") running: "cc" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-o" "/private/var/folders/n4/hm9r41tx54ld3vwgvw76dvgm0000gp/T/tmpuag_954b/treasuredata_fdw-1.0.0/bridge_td_client_rust/target/release/build/openssl-1d3ea894fa03cc5a/out/src/c_helpers.o" "-c" "src/c_helpers.c" cargo:warning=src/c_helpers.c:1:10: fatal error: 'openssl/ssl.h' file not found cargo:warning=#include <openssl/ssl.h> cargo:warning= ^ cargo:warning=1 error generated. ExitStatus(ExitStatus(256)) command did not execute successfully, got: exit code: 1 --- stderr thread 'main' panicked at 'explicit panic', /Users/rick/.cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/gcc-0.3.45/src/lib.rs:1152 note: Run with `RUST_BACKTRACE=1` for a backtrace. Build failed, waiting for other jobs to finish... error: build failed make: *** [bridge_td_client_rust] Error 101 ERROR: command returned 2: make PG_CONFIG=/usr/local/Cellar/postgresql/9.6.2/bin/pg_config all
Brew installs openssl 1.0.2k:
$ brew list openssl /usr/local/Cellar/openssl/1.0.2k/bin/c_rehash /usr/local/Cellar/openssl/1.0.2k/bin/openssl /usr/local/Cellar/openssl/1.0.2k/include/openssl/ (75 files) /usr/local/Cellar/openssl/1.0.2k/lib/libcrypto.1.0.0.dylib /usr/local/Cellar/openssl/1.0.2k/lib/libssl.1.0.0.dylib /usr/local/Cellar/openssl/1.0.2k/lib/engines/ (12 files) /usr/local/Cellar/openssl/1.0.2k/lib/pkgconfig/ (3 files) /usr/local/Cellar/openssl/1.0.2k/lib/ (4 other files) /usr/local/Cellar/openssl/1.0.2k/share/man/ (1592 files) $ brew info openssl openssl: stable 1.0.2k (bottled) [keg-only] SSL/TLS cryptography library https://openssl.org/ /usr/local/Cellar/openssl/1.0.2d_1 (1,638 files, 12.1MB) Poured from bottle on 2015-07-13 at 14:46:23 /usr/local/Cellar/openssl/1.0.2e (1,646 files, 11.9MB) Poured from bottle on 2015-12-18 at 20:28:01 /usr/local/Cellar/openssl/1.0.2e_1 (1,646 files, 11.9MB) Poured from bottle on 2016-01-13 at 09:43:24 /usr/local/Cellar/openssl/1.0.2f (1,651 files, 11.9MB) Poured from bottle on 2016-02-01 at 16:14:38 /usr/local/Cellar/openssl/1.0.2g (1,678 files, 12.0MB) Poured from bottle on 2016-03-02 at 14:14:09 /usr/local/Cellar/openssl/1.0.2h_1 (1,691 files, 12MB) Poured from bottle on 2016-05-13 at 05:48:35 /usr/local/Cellar/openssl/1.0.2j (1,695 files, 12MB) Poured from bottle on 2016-09-28 at 10:01:15 /usr/local/Cellar/openssl/1.0.2k (1,696 files, 12MB) Poured from bottle on 2017-01-30 at 09:28:06 From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/openssl.rb ==> Dependencies Build: makedepend ✔ ==> Options --universal Build a universal binary --without-test Skip build-time tests (not recommended)
I do have several versions of ssl.h installed:
/usr/local $ find . -name ssl.h ./Cellar/node/6.2.0/include/node/openssl/ssl.h ./Cellar/node/6.2.1/include/node/openssl/ssl.h ./Cellar/node/6.3.0/include/node/openssl/ssl.h ./Cellar/node/6.3.1/include/node/openssl/ssl.h ./Cellar/node/6.4.0/include/node/openssl/ssl.h ./Cellar/node/6.5.0/include/node/openssl/ssl.h ./Cellar/node/6.6.0/include/node/openssl/ssl.h ./Cellar/node/6.7.0/include/node/openssl/ssl.h ./Cellar/node/6.9.1/include/node/openssl/ssl.h ./Cellar/node/7.0.0/include/node/openssl/ssl.h ./Cellar/node/7.1.0/include/node/openssl/ssl.h ./Cellar/node/7.2.0/include/node/openssl/ssl.h ./Cellar/node/7.2.1/include/node/openssl/ssl.h ./Cellar/node/7.3.0/include/node/openssl/ssl.h ./Cellar/node/7.4.0/include/node/openssl/ssl.h ./Cellar/node/7.5.0/include/node/openssl/ssl.h ./Cellar/node/7.6.0/include/node/openssl/ssl.h ./Cellar/node/7.7.1/include/node/openssl/ssl.h ./Cellar/node/7.7.2/include/node/openssl/ssl.h ./Cellar/node/7.7.4/include/node/openssl/ssl.h ./Cellar/openssl/1.0.2d_1/include/openssl/ssl.h ./Cellar/openssl/1.0.2e/include/openssl/ssl.h ./Cellar/openssl/1.0.2e_1/include/openssl/ssl.h ./Cellar/openssl/1.0.2f/include/openssl/ssl.h ./Cellar/openssl/1.0.2g/include/openssl/ssl.h ./Cellar/openssl/1.0.2h_1/include/openssl/ssl.h ./Cellar/openssl/1.0.2j/include/openssl/ssl.h ./Cellar/openssl/1.0.2k/include/openssl/ssl.h ./td/ruby/include/openssl/ssl.h
When I clone the repo and do a make I get the same error.
make
Suggestions for getting this to work on my macbook?
The text was updated successfully, but these errors were encountered:
Although I haven't tried it yet, it looks like the Ubuntu 16.04 systems where I would install this into production are on openssl 1.0.2g.
Sorry, something went wrong.
Yeah. It seems a well known issue of rust-openssl sfackler/rust-openssl#255
Can you try the commands before make?
export OPENSSL_INCLUDE_DIR=/usr/local/opt/openssl/include export DEP_OPENSSL_INCLUDE=/usr/local/opt/openssl/include
Anyway, I'll add the above commands to README.
That did the trick. Sorry I didn't update this ticket sooner. Thanks!
No branches or pull requests
On my Mac Sierra laptop, with PostgreSQL 9.6.2, if I run: pgxn install treasuredata_fdw
It fails when it gets to openssl:
Brew installs openssl 1.0.2k:
I do have several versions of ssl.h installed:
When I clone the repo and do a
make
I get the same error.Suggestions for getting this to work on my macbook?
The text was updated successfully, but these errors were encountered: