maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   Could not make install even root (https://talk.maemo.org/showthread.php?t=100613)

Sunset_Shimmer 2019-01-02 14:35

Could not make install even root
 
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'


nieldk 2019-01-02 20:11

Re: Could not make install even root
 
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).

Sunset_Shimmer 2019-01-03 15:14

Re: Could not make install even root
 
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 2019-01-03 18:19

Re: Could not make install even root
 
Quote:

Originally Posted by Sunset_Shimmer (Post 1552243)
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.


All times are GMT. The time now is 07:02.

vBulletin® Version 3.8.8