2

With a 32-bit openssl bit on OS X (thanks to the suggestions given here), I kick off the pyenv build once again, this time setting the flags to point to where I've built the 32-bit openssl to (/usr/local/ssl/):

CFLAGS="-I$(xcrun --show-sdk-path)/usr/include -arch i386 -I/usr/local/ssl/include" LDFLAGS="-arch i386 -L/usr/local/ssl/lib" CONFIGURE_OPTS="--with-arch=i386" pyenv install 2.6.6

The build fails again, again complaining that files in the /usr/local/opt/openssl/ are not 32-bit.

Why is the build still using the 64-bit openssl in /usr/local/opt/openssl/?

Community
  • 1
  • 1
Pyderman
  • 14,809
  • 13
  • 61
  • 106
  • 1
    Is your `$PATH` set or symlinked to the other OpenSSL? – l'L'l Jan 17 '16 at 01:13
  • No, looks OK (I think): http://pastebin.com/S6gdvUMD – Pyderman Jan 17 '16 at 01:39
  • 1
    Not sure if this will work, but you could try adding `--with-openssl-dir=...` to `CONFIGURE_OPTS`. – l'L'l Jan 17 '16 at 02:18
  • Sounds reasonable, yes. I get 'configure: WARNING: unrecognized options: --with-openssl-dir, --with-arch' though, and the build still fails. Does this look ok to you: http://pastebin.com/3Ab5Ev4b – Pyderman Jan 17 '16 at 04:21
  • 1
    You have two `==` (there should only be one), and remove the trailing `/` – l'L'l Jan 17 '16 at 04:25
  • Well-spotted. Still same issue though. It's also complaining about `--with-arch`, which surprises me, given that this is what is prescribed in the much-used **pyenv**'s documentation: https://github.com/yyuu/pyenv/wiki/Common-build-problems#installing-a-32-bit-python-on-64-bit-mac-os-x-this-will-not-work-on-linux – Pyderman Jan 17 '16 at 04:41
  • 1
    It might need to be `PYTHON_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/ssl"` and remove it from `CONFIGURE_OPTS` (still might be wishful thinking, as it's normally used in `rbenv`) – l'L'l Jan 17 '16 at 05:04
  • 1
    One other thing you might try is `which openssl`, then `openssl version` to find out default path, version, etc.. Sometimes build options simply get ignored for whatever reason (usually because they assume using the newer library is always preferred) and you need to fix it another way. – l'L'l Jan 17 '16 at 05:19
  • Did u find a solution to this? I am still having this problem. – saadi May 13 '20 at 23:37

0 Answers0