I am trying to build Sage from the GitHub source code using *make* and I'm getting an error. Please look into the log file attached and let me know what the error is.
*Hardware*: MacBook Pro (Retina, 15-inch, Early 2013) Processor: 2.7 GHz Intel Core i7 *OS*: MacOS Mojave (Version 10.14.5 (18F132)) -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/5722aef3-3e40-4cca-964f-942b3731cb50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Found local metadata for pip-18.1 Attempting to download package pip-18.1.tar.gz from mirrors http://ftp.ntua.gr/pub/sagemath/spkg/upstream/pip/pip-18.1.tar.gz [......................................................................] pip-18.1 ==================================================== Setting up build directory for pip-18.1 Finished extraction No patch files found in ../patches **************************************************** Host system: Darwin Rithesh-K 18.5.0 Darwin Kernel Version 18.5.0: Mon Mar 11 20:40:32 PDT 2019; root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64 **************************************************** C compiler: gcc C compiler version: Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin **************************************************** Package 'pip' is currently not installed No legacy uninstaller found for 'pip'; nothing to do Traceback (most recent call last): File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/__main__.py", line 16, in <module> from pip._internal import main as _main # isort:skip # noqa File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_internal/__init__.py", line 19, in <module> from pip._vendor.urllib3.exceptions import DependencyWarning File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/__init__.py", line 8, in <module> from .connectionpool import ( File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/connectionpool.py", line 36, in <module> from .response import HTTPResponse File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/response.py", line 3, in <module> import zlib ModuleNotFoundError: No module named 'zlib' ******************************************************************************** Error building / installing pip3 ******************************************************************************** real 0m0.200s user 0m0.144s sys 0m0.052s ************************************************************************ Error installing package pip-18.1 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the log file /Users/ritheshk/Git/sage/logs/pkgs/pip-18.1.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1 and type 'make' or whatever is appropriate. Instead, the following commands setup all environment variables correctly and load a subshell for you to debug the error: (cd '/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1' && '/Users/ritheshk/Git/sage/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************ Found local metadata for pip-18.1 Using cached file /Users/ritheshk/Git/sage/upstream/pip-18.1.tar.gz pip-18.1 ==================================================== Setting up build directory for pip-18.1 Finished extraction No patch files found in ../patches **************************************************** Host system: Darwin Rithesh-K 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64 **************************************************** C compiler: gcc C compiler version: Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin **************************************************** Package 'pip' is currently not installed No legacy uninstaller found for 'pip'; nothing to do Traceback (most recent call last): File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/__main__.py", line 16, in <module> from pip._internal import main as _main # isort:skip # noqa File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_internal/__init__.py", line 19, in <module> from pip._vendor.urllib3.exceptions import DependencyWarning File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/__init__.py", line 8, in <module> from .connectionpool import ( File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/connectionpool.py", line 36, in <module> from .response import HTTPResponse File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/response.py", line 3, in <module> import zlib ModuleNotFoundError: No module named 'zlib' ******************************************************************************** Error building / installing pip3 ******************************************************************************** real 0m0.333s user 0m0.148s sys 0m0.077s ************************************************************************ Error installing package pip-18.1 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the log file /Users/ritheshk/Git/sage/logs/pkgs/pip-18.1.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1 and type 'make' or whatever is appropriate. Instead, the following commands setup all environment variables correctly and load a subshell for you to debug the error: (cd '/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1' && '/Users/ritheshk/Git/sage/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************ Found local metadata for pip-18.1 Using cached file /Users/ritheshk/Git/sage/upstream/pip-18.1.tar.gz pip-18.1 ==================================================== Setting up build directory for pip-18.1 Finished extraction No patch files found in ../patches **************************************************** Host system: Darwin Rithesh-K 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64 **************************************************** C compiler: gcc C compiler version: Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin **************************************************** Package 'pip' is currently not installed No legacy uninstaller found for 'pip'; nothing to do Traceback (most recent call last): File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/__main__.py", line 16, in <module> from pip._internal import main as _main # isort:skip # noqa File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_internal/__init__.py", line 19, in <module> from pip._vendor.urllib3.exceptions import DependencyWarning File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/__init__.py", line 8, in <module> from .connectionpool import ( File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/connectionpool.py", line 36, in <module> from .response import HTTPResponse File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/response.py", line 3, in <module> import zlib ModuleNotFoundError: No module named 'zlib' ******************************************************************************** Error building / installing pip3 ******************************************************************************** real 0m0.179s user 0m0.133s sys 0m0.044s ************************************************************************ Error installing package pip-18.1 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the log file /Users/ritheshk/Git/sage/logs/pkgs/pip-18.1.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1 and type 'make' or whatever is appropriate. Instead, the following commands setup all environment variables correctly and load a subshell for you to debug the error: (cd '/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1' && '/Users/ritheshk/Git/sage/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************ Found local metadata for pip-18.1 Using cached file /Users/ritheshk/Git/sage/upstream/pip-18.1.tar.gz pip-18.1 ==================================================== Setting up build directory for pip-18.1 Finished extraction No patch files found in ../patches **************************************************** Host system: Darwin Rithesh-K 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64 **************************************************** C compiler: gcc C compiler version: Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin **************************************************** Package 'pip' is currently not installed No legacy uninstaller found for 'pip'; nothing to do Traceback (most recent call last): File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/__main__.py", line 16, in <module> from pip._internal import main as _main # isort:skip # noqa File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_internal/__init__.py", line 19, in <module> from pip._vendor.urllib3.exceptions import DependencyWarning File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/__init__.py", line 8, in <module> from .connectionpool import ( File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/connectionpool.py", line 36, in <module> from .response import HTTPResponse File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/response.py", line 3, in <module> import zlib ModuleNotFoundError: No module named 'zlib' ******************************************************************************** Error building / installing pip3 ******************************************************************************** real 0m0.187s user 0m0.140s sys 0m0.046s ************************************************************************ Error installing package pip-18.1 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the log file /Users/ritheshk/Git/sage/logs/pkgs/pip-18.1.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1 and type 'make' or whatever is appropriate. Instead, the following commands setup all environment variables correctly and load a subshell for you to debug the error: (cd '/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1' && '/Users/ritheshk/Git/sage/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************ Found local metadata for pip-18.1 Using cached file /Users/ritheshk/Git/sage/upstream/pip-18.1.tar.gz pip-18.1 ==================================================== Setting up build directory for pip-18.1 Finished extraction No patch files found in ../patches **************************************************** Host system: Darwin Rithesh-K 18.6.0 Darwin Kernel Version 18.6.0: Thu Apr 25 23:16:27 PDT 2019; root:xnu-4903.261.4~2/RELEASE_X86_64 x86_64 **************************************************** C compiler: gcc C compiler version: Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1 Apple LLVM version 10.0.1 (clang-1001.0.46.4) Target: x86_64-apple-darwin18.6.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin **************************************************** Package 'pip' is currently not installed No legacy uninstaller found for 'pip'; nothing to do Traceback (most recent call last): File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/Users/ritheshk/Git/sage/local/lib/python3.6/runpy.py", line 85, in _run_code exec(code, run_globals) File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/__main__.py", line 16, in <module> from pip._internal import main as _main # isort:skip # noqa File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_internal/__init__.py", line 19, in <module> from pip._vendor.urllib3.exceptions import DependencyWarning File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/__init__.py", line 8, in <module> from .connectionpool import ( File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/connectionpool.py", line 36, in <module> from .response import HTTPResponse File "/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1/src/src/pip/_vendor/urllib3/response.py", line 3, in <module> import zlib ModuleNotFoundError: No module named 'zlib' ******************************************************************************** Error building / installing pip3 ******************************************************************************** real 0m0.198s user 0m0.146s sys 0m0.049s ************************************************************************ Error installing package pip-18.1 ************************************************************************ Please email sage-devel (http://groups.google.com/group/sage-devel) explaining the problem and including the log file /Users/ritheshk/Git/sage/logs/pkgs/pip-18.1.log Describe your computer, operating system, etc. If you want to try to fix the problem yourself, *don't* just cd to /Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1 and type 'make' or whatever is appropriate. Instead, the following commands setup all environment variables correctly and load a subshell for you to debug the error: (cd '/Users/ritheshk/Git/sage/local/var/tmp/sage/build/pip-18.1' && '/Users/ritheshk/Git/sage/sage' --sh) When you are done debugging, you can type "exit" to leave the subshell. ************************************************************************