Am trying to deploy a Flask app with CGI on Strato. It has Python but only Python 2.7. If I type python
at the terminal prompt it looks like this:
> python
Python 2.7.12 (default, Sep 14 2016, 16:45:14)
[GCC 3.4.3 (csl-sol210-3_4-branch+sol_rpath)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>>
The program I have developed locally has been done with python 3.6 so I think that before other steps to do with getting the .cgi file right, everything in the right folders etc needs to be to get Python 3 on this system.
I have tried two things to accomplish this but have not yet succeeded. The first was to bring a compressed archive from python.org with wget
and try to install it, the second was miniconda. Well, the second was over almost before it began:
> wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
Saving to: 'Miniconda3-latest-Linux-x86_64.sh'
Miniconda3-latest-Linux-x86_64.sh 100%[====================================================================>] 56.14M 69.5MB/s in 0.8s
> ./Miniconda3-latest-Linux-x86_64.sh
./Miniconda3-latest-Linux-x86_64.sh: Permission denied.
The first one though potentially carries more hope:
> wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
> tar -xvzf Python-3.6.5.tar.xz
> cd Python-3.6.5
> ./configure --prefix=$HOME/.local
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
checking for python3.6... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... sunos5
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/mnt/customerID/htdocs/python3/Python-3.6.5':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
So given the system Python seems to have its own GCC, why can't this install find one, and how can I get a path to the one the system Python is using and give it to this install command?
Have looked at various links but not really found a solution - if it is possible at all, the solution is possibly to build python 3 locally locally then upload that, but that sounds a harder option. The links are:
1, 2, 3 There is no yum
or apt-get
which one of these solutions asks for.
OS is:
> uname -a
SunOS vilis 5.11 11.3 i86pc i386 i86pc Solaris