Closed alexanderwhatley closed 6 years ago
Which build are you seeing this on? Looks like this is fixed on the 14915 build (which is publicly available through the Windows Insider program).
I'm still using the Anniversary build. I'm on the Insider slow ring, so I don't think I have access to 14915 yet...
You need sudo apt-get install pkg-config
I found this out while compiling micropython
@andersah It already is installed, so I think the problem still lies with WSL:
alex@ALEXANDERPC:/mnt/c/Users/Alexander$ sudo apt-get install pkg-config
[sudo] password for alex:
Reading package lists... Done
Building dependency tree
Reading state information... Done
pkg-config is already the newest version.
The following packages were automatically installed and are no longer required:
cpp-5 dh-apparmor intltool libasan2 libblas-dev libbsd-dev libcc1-0
libcilkrts5 libgcc-5-dev libgmp-dev libgmpxx4ldbl libhawtjni-runtime-java
libjansi-java libjansi-native-java liblapack-dev liblsan0 libmpx0
libpcre3-dev libpcrecpp0 libreadline-dev libreadline6-dev libubsan0
libxml-parser-perl pypy-lib python-scour scala-library
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
@alexanderwhatley you can always download pypy binary, and then translate your own build with it(it's a lot faster in translation)
@TiberiumPY it does not work with the prebuilt binary either.
@alexanderwhatley did you tried portable pypy binary?
@alexanderwhatley https://github.com/squeaky-pl/portable-pypy
@sunilmut I upgraded to build 14931, and am still getting the same problem.
@alexanderwhatley I just compiled PyPy latest version on my WSL and worked without any issues. I have Windows 10 (Version 10.0.14393).
Ubuntu WSL details:
root@L:/mnt/c/opt/work/pypy-wsl/pypy/goal# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
PyPy details:
root@L:/mnt/c/opt/work/pypy-wsl/pypy/goal# ./pypy-c
Python 2.7.13 (e1fb7a07c627, May 10 2017, 18:10:57)
[PyPy 5.8.0-alpha0 with GCC 4.8.4] on linux2
Requirements:
sudo apt-get install gcc make libffi-dev pkg-config libz-dev libbz2-dev \
libsqlite3-dev libncurses-dev libexpat1-dev libssl-dev libgdbm-dev \
tk-dev libgc-dev python-cffi \
liblzma-dev
Translation line: cd pypy/goal && python ../../rpython/bin/rpython --opt=jit
Closing issue as it appears to be fixed. Please re-open if you run into this again.
Also posted here: https://bitbucket.org/pypy/pypy/issues/2393/cannot-build-pypy-540.
I have tried building PyPy version 5.4.0, following the directions here: http://pypy.readthedocs.io/en/latest/build.html#install-build-time-dependencies, but it does not work:
The issue is that libffi is installed on my system, and according to the PyPy developers, the Linux environment is probably not correctly configured. When I run the failing command by itself, I get this: