"우분투16 Lua 설치"의 두 판 사이의 차이

잔글 (Jmnote님이 우분투 Lua 설치 문서를 우분투16 Lua5.3 설치 문서로 이동했습니다)
잔글 (Jmnote님이 우분투16 Lua5.3 설치 문서를 우분투16 Lua 설치 문서로 이동했습니다)
(차이 없음)

2017년 6월 22일 (목) 20:33 판

우분투16 Lua 설치

1 확인

root@zetawiki:~# lua -v
-bash: lua: command not found
root@zetawiki:~# ll /usr/bin/ | grep lua
root@zetawiki:~#
root@zetawiki:~# apt list lua
Listing... Done

2 설치

root@zetawiki:~# apt install lua
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package lua is a virtual package provided by:
  lua5.3:i386 5.3.1-1ubuntu2
  lua5.1:i386 5.1.5-8ubuntu1
  lua50 5.0.3-7
  lua5.3 5.3.1-1ubuntu2
  lua5.1 5.1.5-8ubuntu1
  lua5.2:i386 5.2.4-1ubuntu1
  lua5.2 5.2.4-1ubuntu1
You should explicitly select one to install.

E: Package 'lua' has no installation candidate
root@zetawiki:~# apt install lua5.3
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic linux-headers-4.4.0-78
  linux-headers-4.4.0-78-generic linux-image-4.4.0-75-generic linux-image-4.4.0-78-generic
  linux-image-extra-4.4.0-75-generic linux-image-extra-4.4.0-78-generic
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  lua5.3
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
Need to get 104 kB of archives.
After this operation, 379 kB of additional disk space will be used.
Get:1 http://kr.archive.ubuntu.com/ubuntu xenial/universe amd64 lua5.3 amd64 5.3.1-1ubuntu2 [104 kB]
Fetched 104 kB in 0s (192 kB/s)
Selecting previously unselected package lua5.3.
(Reading database ... 211767 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:~# 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 }}