如何在Ubuntu中安装Cockatrice
我正在尝试在Ubuntu中安装最新的Cockatrice客户端。 我被告知我必须从Github做到这一点,我正在尝试按照说明操作,但我不知道如何下载自述文件或其他软件包,我也不知道编译是什么,我通常只使用.deb文件安装程序。
我希望你能帮助我。
首先,在本地克隆Github存储库以将所有文件下载到您自己的计算机:
$ git clone https://github.com/Cockatrice/Cockatrice
然后,您应该能够查看自述文件:
$ cd Cockatrice $ less README.md # or any other plain text file viewer
像这样安装依赖项:
$ sudo apt-get install libprotobuf-dev protobuf-compiler qtbase5-dev qtdeclarative5-dev libqt5webkit5-dev libsqlite3-dev qt5-default qttools5-dev-tools qttools5-dev qtmultimedia5-dev libqt5svg5-dev cmake
然后按照自述文件中的说明进行编译:
$ mkdir build # create directory where complied files will go $ cd build # go to that directory $ cmake .. # run cmake $ make # compile $ make install # install