问题描述
- mac 系统上安装lua后 lua:commond not found 求救
-
TazideMacBook-Pro:~ aqzre$ cd lua-5.3.1
TazideMacBook-Pro:lua-5.3.1 aqzre$ make macosx test
cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make macosx
/Applications/Xcode.app/Contents/Developer/usr/bin/make all SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" CC=cc
make[2]: Nothing to be done for `all'.
src/lua -v
Lua 5.3.1 Copyright (C) 1994-2015 Lua.org, PUC-Rio
TazideMacBook-Pro:lua-5.3.1 aqzre$ lua
-bash: lua: command not found
我是直接从官网下载的压缩包安装的
解决方案
homebrew安装lua on mac
----------------------
解决方案二:
make[2]: Nothing to be done for `all'.
--- 应该是你的源码在你的mac上没有编译成功。这个要官网上找找支持你mac的对应版本
解决方案三:
你可以这样试试,./lua
时间: 2024-12-09 05:36:54