[問題] 安裝pygame1.9.2

看板Python作者 (skg)時間11年前 (2014/05/26 09:20), 11年前編輯推噓0(002)
留言2則, 1人參與, 最新討論串1/1
最近要安裝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 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.192.146.92 ※ 文章網址: http://www.ptt.cc/bbs/Python/M.1401067208.A.AAF.html ※ 編輯: skgg (123.192.146.92), 05/26/2014 09:21:26

05/26 11:04, , 1F
你找一下 libportmidi.so.0 在你機器上的哪裡
05/26 11:04, 1F

05/26 11:04, , 2F
如果不在標準位置可能因此找不到, 要自己加 search path
05/26 11:04, 2F
find / -name libportmidi.so.0 /usr/lib64/libportmidi.so.0 這是標準位置嗎? 不是的話請問該如何處理? ※ 編輯: skgg (140.112.16.152), 05/26/2014 11:31:33 哦哦我解決了!! ln -s /usr/lib64/libportmidi.so /usr/lib64/libporttime.so 就好了 ※ 編輯: skgg (140.112.16.152), 05/26/2014 12:15:31
文章代碼(AID): #1JWfR8gl (Python)
文章代碼(AID): #1JWfR8gl (Python)