[問題] 安裝pygame1.9.2

作者: skgg (skg)   2014-05-26 09:20:05
最近要安裝pygame1.9.2
因為官網只有提供1.9.1的package 但它沒支援python3
所以只能自己從bitbucket抓source來compile
我的作業系統是opensuse
才發現pygame對使用rpm的OS極不友善啊...
網路上找得到很多用apt-get裝dependencies的資料
但好像都沒有人是用rpm裝的
我只好一個一個去對套件名稱
最後還剩兩個libswscale-devel跟libavformat-devel
試了一些repo但還是一直找不到能用的
不裝這兩個直接python3 setup.py build會跳出
/usr/lib64/gcc/x86_64-suse-linux/4.7/../../../../x86_64-suse-linux/bin/ld:
cannot find -lporttime
collect2: error: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
但我去找libporttime只找到libportmidi而我明明已經有裝了
不知道板上有沒有人是用rpm作業系統裝過pygame的能解救一下QQ
作者: uranusjr (←這人是超級笨蛋)   2014-05-26 11:04:00
你找一下 libportmidi.so.0 在你機器上的哪裡如果不在標準位置可能因此找不到, 要自己加 search path

Links booklink

Contact Us: admin [ a t ] ucptt.com