√ ~/Documents/GitHub/pythoncore/Python-3.8.8 % ./configure 
checking build system type... x86_64-apple-darwin20.3.0
checking host system type... x86_64-apple-darwin20.3.0
checking for python3.8... python3.8
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... "darwin"
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/C



make

 

Could not build the ssl module

 

Error: openssl@1.1 1.1.1i is already installed.
To upgrade to 1.1.1j, run:
  brew upgrade openssl@1.1
√ ~/Documents/GitHub/pythoncore/Python-3.8.8 % brew upgrade openssl@1.1
==> Upgrading 1 outdated package:
openssl@1.1 1.1.1i -> 1.1.1j
==> Upgrading openssl@1.1 1.1.1i -> 1.1.1j 
==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1j.big_su
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5725361adcd088a5b4fb2
######################################################################## 100.0%
==> Pouring openssl@1.1-1.1.1j.big_sur.bottle.tar.gz
√ ~/Documents/GitHub/pythoncore/Python-3.8.8 % brew reinstall openssl

 

 

 

https://github.com/libressl-portable/portable/issues/381
https://wiki.unify.com/wiki/openssl-1.0.2k.tar.gz_V1R0

 

  $ ./config
   $ make
   $ make test
   $ make install

 

ld: symbol(s) not found for architecture i386

 

WARNING! If you wish to build 64-bit library, then you have to
         invoke './Configure darwin64-x86_64-cc' *manually*.
         You have about 5 seconds to press Ctrl-C to abort.

 

./Configure darwin64-x86_64-cc

 

make clean
make

 

sudo make install

 

./configure again in python 3.8.8

 

make clean

 

make

 

To find the necessary bits, look in setup.py in detect_modules() for the module's name.


The following modules found by detect_modules() in setup.py, have been
built by the Makefile instead, as configured by the Setup files:
_abc                  atexit                pwd                
time                                                           


Failed to build these modules:
_tkinter     

 

brew install tcl-tk

 

√ ~/Documents/GitHub/pythoncore/Python-3.8.8 % brew install tcl-tk
Updating Homebrew...
Warning: tcl-tk 8.6.11_1 is already installed and up-to-date.
To reinstall 8.6.11_1, run:
  brew reinstall tcl-tk

 

If you need to have tcl-tk first in your PATH, run:
  echo 'export PATH="/usr/local/opt/tcl-tk/bin:$PATH"' >> ~/.zshrc

For compilers to find tcl-tk you may need to set:
  export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"
  export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"

For pkg-config to find tcl-tk you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"

 

X11/Xlib.h' file not found

 

xcode-select: error: command line tools are already installed, use "Software Update" to install updates

 

?1 ~/Documents/GitHub/pythoncore/Python-3.8.8 % softwareupdate --list
Software Update Tool

Finding available software
Software Update found the following new or updated software:
* Label: macOS Big Sur 11.2.2-20D80
Title: macOS Big Sur 11.2.2, Version: 11.2.2, Size: 2123844K, Recommended: YES, Action: restart, 
√ ~/Documents/GitHub/pythoncor

 

√ ~/Documents/GitHub/pythoncore/Python-3.8.8 % softwareupdate --install -a

 

https://www.tcl.tk/software/tcltk/

 

https://www.tcl.tk/software/tcltk/download.html

 

cd macosx ; ./configure ; make ; make test ; sudo make install

 

scanning section [incr Tcl] Package C API, version 4.2.1
......
scanning section TDBC Package C API, version 1.1.2
.
Assembling index
Rescanning 271 pages to build cross links and write out
...............................................................................................................................................................................................................................................................................
Done

 

'X11/Xlib.h' file not found

xcode-select --install

 

?127 ~/Documents/GitHub/pythoncore/Python-3.8.8 % ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11/ /usr/local/include/X11

 

/usr/bin/install -c ./install-sh /usr/local/lib/python3.8/config-3.8-darwin/install-sh
/usr/bin/install -c python-config.py /usr/local/lib/python3.8/config-3.8-darwin/python-config.py
/usr/bin/install -c python-config /usr/local/bin/python3.8-config
./python.exe -E ./setup.py install \
  --prefix=/usr/local \
--install-scripts=/usr/local/bin \
--install-platlib=/usr/local/lib/python3.8/lib-dynload \
--root=/
running install
running build
running build_ext

Python build finished successfully!

 

~/Documents/GitHub/pythoncore/Python-3.8.8 % grep -Risn "Type \"help\", \"copyright\", \"credits\" or \"license\" for more information." *
Doc/tutorial/interpreter.rst:103:   Type "help", "copyright", "credits" or "license" for more information.
Doc/install/index.rst:245:   Type "help", "copyright", "credits" or "license" for more information.
Doc/install/index.rst:647:   Type "help", "copyright", "credits" or "license" for more information.
Doc/faq/windows.rst:69:   Type "help", "copyright", "credits" or "license" for more information.
Doc/library/sys.rst:1663:      Type "help", "copyright", "credits" or "license" for more information.
Doc/whatsnew/3.8.rst:643:    Type "help", "copyright", "credits" or "license" for more information.
Lib/code.py:212:        cprt = 'Type "help", "copyright", "credits" or "license" for more information.'
Binary file Modules/main.o matches
Binary file Programs/_testembed matches
Binary file libpython3.8.a matches
Binary file python.exe matches

 

        cprt = 'Type "help", "copyright", "credits" or "license" for more information.'
         if banner is None:
             self.write("Python %s on %s\n%s\n(%s)\n" %
                        (sys.version, sys.platform, cprt,
                         self.__class__.__name__))

 

vim ./Modules/main.c

 

203     if (!config->verbose && (config_run_code(config) || !                       stdin_is_interactive(config))) {
 204         return;
 205     }
 206 
 207     fprintf(stderr, "Junho's Python %s on %s\n", Py_GetVersion(),               Py_GetPlatform());
 208     if (config->site_import) {
 209         fprintf(stderr, "%s\n", COPYRIGHT);
 210     }
 211 }

 

√ ~/Documents/GitHub/pythoncore/Python-3.8.8 % grep -Risn "is not defined" * | grep name

 

√ ~/Documents/GitHub/pythoncore/Python-3.8.8 % vim Python/ceval.c

 

#define NAME_ERROR_MSG \
     "hjh name '%.200s' is not defined"

 

√ ~/Documents/GitHub/pythoncore/Python-3.8.8 % ./python.exe -c "ls"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
NameError: hjh name 'ls' is not defined


'{BE} Python 3.1x' 카테고리의 다른 글

파이썬을 쉘로 써보기  (0) 2021.05.26
파이썬 수 체계  (0) 2021.05.26
how to see the encoding  (0) 2021.05.26
AI 기본은 필수...  (0) 2021.05.20
python에서 아쉬운 점 private, protected, public...  (0) 2021.04.06

+ Recent posts