
我從此鏈接下載了遊戲太空邏輯冒險
當我嘗試運行它時,我發現了這個錯誤訊息:
pascal@pascal-Lenovo-ideapad-330-15AST:~/Computer/Games/Linux/space-logic-adventure-v1.2-linux-x64$ ./space-logic-adventure
./space-logic-adventure: error while loading shared libraries: libsfml-system.so.2.4: cannot open shared object file: No such file or directory
在運行它之前我安裝了這個包:
sudo apt-get install libsfml-dev
答案1
對於 Ubuntu 18.04 LTS,您必須安裝相關包有了這個圖書館
sudo apt-get install libsfml-system2.4
和其他類似的庫使用
sudo apt-get install libsfml-window2.4 libsfml-graphics2.4 libsfml-audio2.4
或安裝所有它們,包括開發標頭
sudo apt-get install libsfml-dev
在較新的 Ubuntu 版本(從 20.04 LTS 開始)上,您必須透過以下方式手動從此類庫的 18.04 LTS 儲存庫下載 deb-packages:
cd ~/Downloads
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libs/libsfml/libsfml-audio2.4_2.4.2+dfsg-4_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libs/libsfml/libsfml-graphics2.4_2.4.2+dfsg-4_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libs/libsfml/libsfml-network2.4_2.4.2+dfsg-4_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libs/libsfml/libsfml-system2.4_2.4.2+dfsg-4_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libs/libsfml/libsfml-window2.4_2.4.2+dfsg-4_amd64.deb
sudo apt-get install ./libsfml*.deb
然後享受遊戲。