编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

linux下编译安装skynet(linux安装code)

wxchong 2024-10-02 01:17:20 开源技术 8 ℃ 0 评论

安装编译工具

yum -y install gcc make gcc-c++ autoconf openssl-devel wget readline-devel


安装Git

yum install git


编译skynet

git clone https://github.com/cloudwu/skynet.git

cd skynet

git submodule init

git submodule update

make linux


测试

./skynet examples/config # Launch first skynet node and askynet-master

./3rd/lua/lua examples/client.lua # Launch a client, and try to input hello.



使用protobuf

安装pb
有时候需要protoc

yum install protobuf-devel.x86_64

yum install protobuf.x86_64



安装lua5.3

https://www.lua.org/ftp/lua-5.3.4.tar.gz

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表