Reply
Thread Tools
Posts: 35 | Thanked: 26 times | Joined on Oct 2018
#1
I compliI build Python3.7.2 on my N9,and when I used make install,there was a Permission Denined.
Code:
~ $ devel-su
Password:


BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # cd /home/developer/Python-3.7.2/
/home/developer/Python-3.7.2 # make install
if test "no-framework" = "no-framework" ; then\
                /usr/bin/install -c python /usr/local/bin/python3.7m; \
        else \
                /usr/bin/install -c -s Mac/pythonw /usr/local/bin/python3.7m; \
        fi
if test "3.7" != "3.7m"; then \
                if test -f /usr/local/bin/python3.7 -o -h /usr/local/bin/python3.7; \
                then rm -f /usr/local/bin/python3.7; \
                fi; \
                (cd /usr/local/bin; ln python3.7m python3.7); \
        fi
if test -f libpython3.7m.a && test "no-framework" = "no-framework" ; then \
                if test -n "" ; then \
                        /usr/bin/install -c -m555  /usr/local/bin; \
                else \
                        /usr/bin/install -c -m555 libpython3.7m.a /usr/local/lib/libpython3.7m.a; \
                        if test libpython3.7m.a != libpython3.7m.a; then \
                                (cd /usr/local/lib; ln -sf libpython3.7m.a libpython3.7m.a) \
                        fi \
                fi; \
                if test -n ""; then \
                        /usr/bin/install -c -m555  /usr/local/lib/; \
                fi; \
        else    true; \
        fi
if test "x" != "x" ; then \
                rm -f /usr/local/binpython3.7-32; \
                lipo  \
                        -output /usr/local/bin/python3.7-32 \
                        /usr/local/bin/python3.7; \
        fi
 CC='gcc -pthread' LDSHARED='gcc -pthread -shared    ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall'   _TCLTK_INCLUDES='' _TCLTK_LIBS=''        ./python -E ./setup.py  build
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2                  _curses               _curses_panel
_dbm                  _gdbm                 _hashlib
_lzma                 _sqlite3              _ssl
_tkinter              _uuid                 readline
zlib
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


Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host().
LibreSSL 2.6.4 and earlier do not provide the necessary APIs, https://github.com/libressl-portable/portable/issues/381

running build_scripts
copying and adjusting /home/developer/Python-3.7.2/Tools/scripts/pydoc3 -> build/scripts-3.7
error: [Errno 13] Permission denied: 'build/scripts-3.7/pydoc3'
 

The Following User Says Thank You to Sunset_Shimmer For This Useful Post:
Posts: 1,289 | Thanked: 4,318 times | Joined on Oct 2014
#2
Well, openssl is too outdated, you will need at least 1.0.2 (should be easy, as you only need the development libraries)
And, its missing TCL/Tk libraries (devel).
 

The Following 3 Users Say Thank You to nieldk For This Useful Post:
Posts: 35 | Thanked: 26 times | Joined on Oct 2018
#3
No.The matter wasn't it.
Python build correctly and it's not necessary to have openssl.
The real problem is:
running build_scripts
copying and adjusting /home/developer/Python-3.7.2/Tools/scripts/pydoc3 -> build/scripts-3.7
error: [Errno 13] Permission denied: 'build/scripts-3.7/pydoc3'
make couldn't copy any file even in root.
 
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#4
Originally Posted by Sunset_Shimmer View Post
error: [Errno 13] Permission denied: 'build/scripts-3.7/pydoc3'
Maybe copy "python.tar.gz" to /home/user and extract it as user, after this start compiling.
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 12:15.