user@ubuntu:~$ sudo apt-get install tcc [sudo] password for user: Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: libbobcat2 libmilter1.0.1 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: tcc 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 143 kB of archives. After this operation, 410 kB of additional disk space will be used. Get:1 http://be.archive.ubuntu.com/ubuntu/ precise/universe tcc amd64 0.9.26~git20120104.83d57c0-5 [143 kB] Fetched 143 kB in 0s (439 kB/s) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_CTYPE = "UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Selecting previously unselected package tcc. (Reading database ... 119251 files and directories currently installed.) Unpacking tcc (from .../tcc_0.9.26~git20120104.83d57c0-5_amd64.deb) ... Processing triggers for man-db ... locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Processing triggers for install-info ... Setting up tcc (0.9.26~git20120104.83d57c0-5) ... user@ubuntu:~$ wget http://www.lua.org/ftp/lua-5.1.5.tar.gz --2014-06-21 00:25:57-- http://www.lua.org/ftp/lua-5.1.5.tar.gz Resolving www.lua.org (www.lua.org)... 2a01:4f8:201:620f::2001, 148.251.24.173 Connecting to www.lua.org (www.lua.org)|2a01:4f8:201:620f::2001|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 221213 (216K) [application/gzip] Saving to: `lua-5.1.5.tar.gz' 100%[======================================================================================================>] 221,213 1.29M/s in 0.2s 2014-06-21 00:25:57 (1.29 MB/s) - `lua-5.1.5.tar.gz' saved [221213/221213] user@ubuntu:~$ tar xzvf lua-5.1.5.tar.gz lua-5.1.5/ lua-5.1.5/test/ lua-5.1.5/test/luac.lua lua-5.1.5/test/fibfor.lua lua-5.1.5/test/trace-globals.lua lua-5.1.5/test/cf.lua lua-5.1.5/test/env.lua lua-5.1.5/test/sieve.lua lua-5.1.5/test/printf.lua lua-5.1.5/test/xd.lua lua-5.1.5/test/life.lua lua-5.1.5/test/readonly.lua lua-5.1.5/test/README lua-5.1.5/test/factorial.lua lua-5.1.5/test/globals.lua lua-5.1.5/test/trace-calls.lua lua-5.1.5/test/hello.lua lua-5.1.5/test/echo.lua lua-5.1.5/test/bisect.lua lua-5.1.5/test/fib.lua lua-5.1.5/test/table.lua lua-5.1.5/test/sort.lua lua-5.1.5/COPYRIGHT lua-5.1.5/INSTALL lua-5.1.5/doc/ lua-5.1.5/doc/contents.html lua-5.1.5/doc/luac.1 lua-5.1.5/doc/lua.css lua-5.1.5/doc/luac.html lua-5.1.5/doc/manual.css lua-5.1.5/doc/logo.gif lua-5.1.5/doc/lua.1 lua-5.1.5/doc/manual.html lua-5.1.5/doc/cover.png lua-5.1.5/doc/lua.html lua-5.1.5/doc/readme.html lua-5.1.5/Makefile lua-5.1.5/README lua-5.1.5/etc/ lua-5.1.5/etc/luavs.bat lua-5.1.5/etc/all.c lua-5.1.5/etc/min.c lua-5.1.5/etc/lua.pc lua-5.1.5/etc/Makefile lua-5.1.5/etc/README lua-5.1.5/etc/strict.lua lua-5.1.5/etc/lua.hpp lua-5.1.5/etc/lua.ico lua-5.1.5/etc/noparser.c lua-5.1.5/src/ lua-5.1.5/src/loadlib.c lua-5.1.5/src/ldo.c lua-5.1.5/src/ltable.c lua-5.1.5/src/linit.c lua-5.1.5/src/lobject.h lua-5.1.5/src/ltable.h lua-5.1.5/src/lzio.c lua-5.1.5/src/luaconf.h lua-5.1.5/src/lfunc.h lua-5.1.5/src/lfunc.c lua-5.1.5/src/lopcodes.h lua-5.1.5/src/loslib.c lua-5.1.5/src/lundump.c lua-5.1.5/src/lvm.h lua-5.1.5/src/lundump.h lua-5.1.5/src/lstate.h lua-5.1.5/src/ltm.c lua-5.1.5/src/lbaselib.c lua-5.1.5/src/lapi.h lua-5.1.5/src/ldump.c lua-5.1.5/src/lauxlib.c lua-5.1.5/src/lcode.h lua-5.1.5/src/lparser.h lua-5.1.5/src/ldebug.c lua-5.1.5/src/Makefile lua-5.1.5/src/ldblib.c lua-5.1.5/src/lua.c lua-5.1.5/src/lgc.h lua-5.1.5/src/lapi.c lua-5.1.5/src/liolib.c lua-5.1.5/src/lua.h lua-5.1.5/src/ldebug.h lua-5.1.5/src/lmem.c lua-5.1.5/src/lstate.c lua-5.1.5/src/lobject.c lua-5.1.5/src/lparser.c lua-5.1.5/src/llimits.h lua-5.1.5/src/lzio.h lua-5.1.5/src/ldo.h lua-5.1.5/src/lmathlib.c lua-5.1.5/src/lauxlib.h lua-5.1.5/src/ltm.h lua-5.1.5/src/print.c lua-5.1.5/src/llex.h lua-5.1.5/src/ltablib.c lua-5.1.5/src/lmem.h lua-5.1.5/src/lvm.c lua-5.1.5/src/llex.c lua-5.1.5/src/lstring.h lua-5.1.5/src/lgc.c lua-5.1.5/src/lstrlib.c lua-5.1.5/src/lcode.c lua-5.1.5/src/luac.c lua-5.1.5/src/lstring.c lua-5.1.5/src/lualib.h lua-5.1.5/src/lopcodes.c lua-5.1.5/HISTORY user@ubuntu:~$ cd lua-5.1.5/ user@ubuntu:~/lua-5.1.5$ ls COPYRIGHT HISTORY INSTALL Makefile README doc etc src test user@ubuntu:~/lua-5.1.5$ cd src user@ubuntu:~/lua-5.1.5/src$ tcc *[^ca].c lgc.c lfunc.c -run lua.c -e 'print "hello!"' hello! user@ubuntu:~/lua-5.1.5/src$ cat /etc/issue Ubuntu 12.04.4 LTS \n \l user@ubuntu:~/lua-5.1.5/src$