I am trying to create Python (3.5.2) on OS X El Capitan (10.11.5). However, I encounter an error while trying to make it. It seems that the error is related to _freeze_importlib .
/usr/local/src/Python-3.5.2 $ make if test "no" != "yes"; then \ ./Programs/_freeze_importlib \ ./Lib/importlib/_bootstrap.py Python/importlib.h; \ fi dyld: lazy symbol binding failed: Symbol not found: _getentropy Referenced from: /usr/local/src/Python-3.5.2/./Programs/_freeze_importlib Expected in: /usr/lib/libSystem.B.dylib dyld: Symbol not found: _getentropy Referenced from: /usr/local/src/Python-3.5.2/./Programs/_freeze_importlib Expected in: /usr/lib/libSystem.B.dylib /bin/sh: line 1: 56666 Trace/BPT trap: 5 ./Programs/_freeze_importlib ./Lib/importlib/_bootstrap.py Python/importlib.h make: *** [Python/importlib.h] Error 133 /usr/local/src/Python-3.5.2 $
You can see my steps on github .
The full terminal output to make fail is in Gist .
I fully admit that this is an academic exercise since El Capitan ships with Python 2.7.10, and you can easily install Python 3.5.2 with the official OS X installer package or through Homebrew.
The documentation for Using Python on Unix platforms contains assembly instructions. The documentation for Using Python on Macintosh specifically talks about using the OS X installation package.
However, on a Mac it should be possible to build.
Python on a Macintosh running Mac OS X is basically very similar to Python on any other Unix platform, but there are a number of additional features such as an IDE and a package manager that are worth mentioning.
At this moment, I do not care about these additional features. Just wondering why I get a make error.
lukejanicke
source share