Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help: how to compile pypy on solaris 11 #4950

Closed
flaajimi opened this issue May 14, 2024 · 6 comments
Closed

help: how to compile pypy on solaris 11 #4950

flaajimi opened this issue May 14, 2024 · 6 comments

Comments

@flaajimi
Copy link

Hello,

Can anyone help me compile pypy on solaris 11 ?

Thank you :)

@mattip
Copy link
Member

mattip commented May 14, 2024

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
Copy link
Author

flaajimi commented May 15, 2024

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
Copy link
Member

mattip commented May 15, 2024

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
Copy link
Author

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
Copy link
Member

mattip commented May 16, 2024

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

@flaajimi
Copy link
Author

Thank you very much, I'll look at that

@flaajimi flaajimi closed this as completed Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants