우분투16 Lua 설치

(우분투 Lua 설치에서 넘어옴)
  다른 뜻에 대해서는 CentOS Lua 설치 문서를 참조하십시오.
우분투16 Lua 설치

1 확인[ | ]

root@zetawiki:~# lua -v
-bash: lua: command not found
root@zetawiki:~# apt list lua5*
Listing... Done
lua5.1/xenial 5.1.5-8ubuntu1 amd64
lua5.1-doc/xenial,xenial 5.1.5-8ubuntu1 all
lua5.1-policy/xenial,xenial 33 all
lua5.1-policy-dev/xenial,xenial 33 all
lua5.2/xenial 5.2.4-1ubuntu1 amd64
lua5.2-doc/xenial,xenial 5.2.4-1ubuntu1 all
lua5.3/xenial 5.3.1-1ubuntu2 amd64
lua50/xenial 5.0.3-7 amd64
lua50-doc/xenial,xenial 5.0.3-7 all

2 설치[ | ]

root@zetawiki:~# apt install lua5.3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  lua5.3
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 104 kB of archives.
After this operation, 379 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 lua5.3 amd64 5.3.1-1ubuntu2 [104 kB]
Fetched 104 kB in 1s (86.7 kB/s) 
Selecting previously unselected package lua5.3.
(Reading database ... 120374 files and directories currently installed.)
Preparing to unpack .../lua5.3_5.3.1-1ubuntu2_amd64.deb ...
Unpacking lua5.3 (5.3.1-1ubuntu2) .......................................................] 
Processing triggers for man-db (2.7.5-1) ...##########...................................] 
Setting up lua5.3 (5.3.1-1ubuntu2) ...

3 확인 2[ | ]

root@zetawiki:~# apt list lua5* --installed
Listing... Done
lua5.3/xenial,now 5.3.1-1ubuntu2 amd64 [installed]
root@zetawiki:~# lua -v
-bash: lua: command not found
root@zetawiki:~# lua5.3 -v
Lua 5.3.1  Copyright (C) 1994-2015 Lua.org, PUC-Rio
root@zetawiki:~# ll /usr/bin/ | grep lua
-rwxr-xr-x  1 root   root      220056 Apr 14  2016 lua5.3*
-rwxr-xr-x  1 root   root      141824 Apr 14  2016 luac5.3*
root@zetawiki:~# ln -s /usr/bin/lua5.3 /usr/bin/lua
root@zetawiki:~# ln -s /usr/bin/luac5.3 /usr/bin/luac
root@zetawiki:~# ll /usr/bin/ | grep lua
lrwxrwxrwx  1 root   root          15 Jun 22 20:31 lua -> /usr/bin/lua5.3*
-rwxr-xr-x  1 root   root      220056 Apr 14  2016 lua5.3*
lrwxrwxrwx  1 root   root          16 Jun 22 20:33 luac -> /usr/bin/luac5.3*
-rwxr-xr-x  1 root   root      141824 Apr 14  2016 luac5.3*
root@zetawiki:~# lua -v
Lua 5.3.1  Copyright (C) 1994-2015 Lua.org, PUC-Rio
root@zetawiki:~# luac -v
Lua 5.3.1  Copyright (C) 1994-2015 Lua.org, PUC-Rio

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}