我用了
./configure --prefix=$HOME
make
make install
安装 sdl2,之后我尝试安装 pygame
cd ../pygame-1.9.1release/
python setup.py install
但我收到一个错误:
linuxnx:~/python/library/pygame-1.9.1release> python setup.py install
WARNING, No "Setup" File Exists, Running "config.py"
Using UNIX configuration...
Hunting dependencies...
sh: sdl-config: command not found
WARNING: "sdl-config" failed!
sh: smpeg-config: command not found
WARNING: "smpeg-config" failed!
Unable to run "sdl-config". Please make sure a development version of SDL is installed.