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

22번째 줄: 22번째 줄:


==설치==
==설치==
<source lang='console'>
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
</source>
<source lang='console'>
<source lang='console'>
root@zetawiki:~# apt install lua5.3
root@zetawiki:~# apt install lua5.3
44번째 줄: 27번째 줄:
Building dependency tree       
Building dependency tree       
Reading state information... Done
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:
The following NEW packages will be installed:
   lua5.3
   lua5.3
0 upgraded, 1 newly installed, 0 to remove and 41 not upgraded.
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 104 kB of archives.
Need to get 104 kB of archives.
After this operation, 379 kB of additional disk space will be used.
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]
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 lua5.3 amd64 5.3.1-1ubuntu2 [104 kB]
Fetched 104 kB in 0s (192 kB/s)
Fetched 104 kB in 1s (86.7 kB/s)  
Selecting previously unselected package lua5.3.
Selecting previously unselected package lua5.3.
(Reading database ... 211767 files and directories currently installed.)
(Reading database ... 120374 files and directories currently installed.)
Preparing to unpack .../lua5.3_5.3.1-1ubuntu2_amd64.deb ...
Preparing to unpack .../lua5.3_5.3.1-1ubuntu2_amd64.deb ...
Unpacking lua5.3 (5.3.1-1ubuntu2) .......................................................]  
Unpacking lua5.3 (5.3.1-1ubuntu2) .......................................................]  

2017년 8월 7일 (월) 02:42 판

  다른 뜻에 대해서는 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:~# 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 }}