pypy / pypy

PyPy is a very fast and compliant implementation of the Python language.
https://pypy.org
Other
790 stars 38 forks source link

help: how to compile pypy on solaris 11 #4950

Open flaajimi opened 2 weeks ago

flaajimi commented 2 weeks ago

Hello,

Can anyone help me compile pypy on solaris 11 ?

Thank you :)

mattip commented 2 weeks ago

You can try to adapt the directions at https://doc.pypy.org/en/latest/build.html to your system. Let us know if there are failures.

flaajimi commented 2 weeks ago

When I try to follow the steps I get

root@XXXXXXXX:/home/XXXXXXXXXXXX/pypy-main/pypy/goal# python ../../rpython/bin/rpython --cc=gcc --opt=2 File "/home/XXXXXXXXXXXX/pypy-main/pypy/goal/../../rpython/bin/rpython", line 17 print doc ^ SyntaxError: Missing parentheses in call to 'print'. Did you mean print(doc)?

mattip commented 2 weeks ago

You must use python2 as a host for compilation. I would suggest using the JIT, since otherwise PyPy will be slow:


python2 ../../rpython/bin/rpython -Ojit ...
flaajimi commented 2 weeks ago

In my server i have : python3, python3.11, python3.7, python3.9

i do not have : python2

It's solaris 11 which is not compatible with python 2

mattip commented 2 weeks ago

You will have to build python2 from source, and then use that to build PyPy.

flaajimi commented 2 weeks ago

Thank you very much, I'll look at that