Skip to content

Instantly share code, notes, and snippets.

@nanmi
Last active June 15, 2021 04:40
Show Gist options
  • Save nanmi/9c6b501a6a978358286bc4d90f407a58 to your computer and use it in GitHub Desktop.
Save nanmi/9c6b501a6a978358286bc4d90f407a58 to your computer and use it in GitHub Desktop.
Install xmake

xmake安装和使用教程

https://xmake.io/#/zh-cn/about/course

安装xmake

$ git clone --recursive https://github.com/xmake-io/xmake.git
$ cd ./xmake 
$ ./scripts/get.sh __local__ 
$ source ~/.xmake/profile
#如果觉得github的源太慢,可以通过gitee的镜像源拉取:
$ git clone --recursive https://gitee.com/tboox/xmake.git

注:./get.sh __local__是安装到~/.local/xmake下,然后通过source ~/.xmake/profile方式来加载的,所以安装完,当前终端如果执行xmake失败,提示找不到,就手动执行下 source ~/.xmake/profile,而下次打开终端就不需要了。

卸载xmake

$ ./scripts/get.sh __uninstall__

更新升级xmake

$ xmake update 2.2.4

或者

通过deb包安装

#从 <https://github.com/xmake-io/xmake/releases> 上下载deb安装包
$ dpkg -i xmake-xxxx.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment