Skip to content

Instantly share code, notes, and snippets.

@meric
Created September 27, 2012 13:30
Show Gist options
  • Save meric/3794002 to your computer and use it in GitHub Desktop.
Save meric/3794002 to your computer and use it in GitHub Desktop.
➜ test echo "$(curl -fksSL https://raw.github.com/gist/2394281/luadist.sh)" | bash
Cloning into _bootstrap...
remote: Counting objects: 201, done.
remote: Compressing objects: 100% (182/182), done.
remote: Total 201 (delta 108), reused 72 (delta 18)
Receiving objects: 100% (201/201), 31.38 KiB, done.
Resolving deltas: 100% (108/108), done.
Submodule 'lua' (git://github.com/LuaDist/lua.git) registered for path 'lua'
Submodule 'luadist-git' (git://github.com/LuaDist/luadist-git.git) registered for path 'luadist-git'
Submodule 'luafilesystem' (git://github.com/LuaDist/luafilesystem.git) registered for path 'luafilesystem'
Submodule 'srlua' (git://github.com/LuaDist/srlua.git) registered for path 'srlua'
Cloning into lua...
remote: Counting objects: 611, done.
remote: Compressing objects: 100% (338/338), done.
remote: Total 611 (delta 366), reused 503 (delta 267)
Receiving objects: 100% (611/611), 600.32 KiB | 152 KiB/s, done.
Resolving deltas: 100% (366/366), done.
Submodule path 'lua': checked out '9c4196cec3c52c42a428d37ac4b5a410075f28ff'
Cloning into luadist-git...
remote: Counting objects: 1628, done.
remote: Compressing objects: 100% (509/509), done.
remote: Total 1628 (delta 1077), reused 1581 (delta 1030)
Receiving objects: 100% (1628/1628), 245.70 KiB | 109 KiB/s, done.
Resolving deltas: 100% (1077/1077), done.
Submodule path 'luadist-git': checked out 'f4c4f24d95f55c391556fa5f4a3707e73c4ee66b'
Cloning into luafilesystem...
remote: Counting objects: 1095, done.
remote: Compressing objects: 100% (440/440), done.
remote: Total 1095 (delta 592), reused 1051 (delta 551)
Receiving objects: 100% (1095/1095), 164.33 KiB | 66 KiB/s, done.
Resolving deltas: 100% (592/592), done.
Submodule path 'luafilesystem': checked out '806ca2c20686ffae38cb1f8161e2ae1e5919e9e2'
Cloning into srlua...
remote: Counting objects: 55, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 55 (delta 23), reused 41 (delta 12)
Receiving objects: 100% (55/55), 143.36 KiB | 81 KiB/s, done.
Resolving deltas: 100% (23/23), done.
Submodule path 'srlua': checked out '37ae9b7e7bcc7d61854cc35ac6ea38deb851a2c8'
NOTE: This will build some LuaDist components TWO times!
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Eric/test/_bootstrap/_install/tmp/install
Scanning dependencies of target lua
[ 0%] Creating directories for 'lua'
[ 0%] No download step for 'lua'
[ 0%] [ 0%] No update step for 'lua'
No patch step for 'lua'
[ 0%] Performing configure step for 'lua'
loading initial cache file /Users/Eric/test/_bootstrap/_install/tmp/install/config.cmake
-- The C compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
DIST_NAME: lua
DIST_VERSION: 5.1.5
DIST_LICENSE: MIT/X11
DIST_AUTHOR: Roberto Ierusalimschy, Waldemar Celes, Luiz Henrique de Figueiredo
DIST_MAINTAINER: Peter Drahoš
DIST_URL: http://www.lua.org
DIST_DESC: Lua is a powerful, fast, light-weight, embeddable scripting language.
DIST_DEPENDS:
-- Found readline: /usr/lib/libreadline.dylib
-- Found Curses: /usr/lib/libcurses.dylib
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Eric/test/_bootstrap/_install/tmp/install/lua/build
[ 0%] Performing build step for 'lua'
Scanning dependencies of target liblua_static
Scanning dependencies of target liblua
[ 1%] [ 3%] [ 4%] [ 6%] [ 8%] [ 9%] Building C object CMakeFiles/liblua_static.dir/src/lapi.c.o
Building C object CMakeFiles/liblua.dir/src/lcode.c.o
Building C object CMakeFiles/liblua_static.dir/src/ldebug.c.o
Building C object CMakeFiles/liblua.dir/src/lapi.c.o
Building C object CMakeFiles/liblua_static.dir/src/lcode.c.o
Building C object CMakeFiles/liblua_static.dir/src/ldo.c.o
[ 11%] Building C object CMakeFiles/liblua.dir/src/ldebug.c.o
[ 13%] Building C object CMakeFiles/liblua.dir/src/ldo.c.o
[ 14%] Building C object CMakeFiles/liblua.dir/src/ldump.c.o
[ 16%] Building C object CMakeFiles/liblua_static.dir/src/ldump.c.o
[ 18%] Building C object CMakeFiles/liblua_static.dir/src/lfunc.c.o
[ 19%] [ 21%] Building C object CMakeFiles/liblua.dir/src/lgc.c.o
Building C object CMakeFiles/liblua.dir/src/lfunc.c.o
[ 22%] Building C object CMakeFiles/liblua.dir/src/llex.c.o
[ 24%] Building C object CMakeFiles/liblua_static.dir/src/lgc.c.o
[ 26%] Building C object CMakeFiles/liblua.dir/src/lmem.c.o
[ 27%] Building C object CMakeFiles/liblua_static.dir/src/llex.c.o
[ 29%] [ 31%] Building C object CMakeFiles/liblua.dir/src/lobject.c.o
Building C object CMakeFiles/liblua.dir/src/lopcodes.c.o
[ 32%] Building C object CMakeFiles/liblua_static.dir/src/lmem.c.o
[ 34%] [ 36%] [ 37%] Building C object CMakeFiles/liblua_static.dir/src/lopcodes.c.o
Building C object CMakeFiles/liblua_static.dir/src/lobject.c.o
Building C object CMakeFiles/liblua.dir/src/lparser.c.o
[ 39%] Building C object CMakeFiles/liblua.dir/src/lstate.c.o
[ 40%] Building C object CMakeFiles/liblua_static.dir/src/lparser.c.o
[ 42%] Building C object CMakeFiles/liblua_static.dir/src/lstate.c.o
[ 44%] Building C object CMakeFiles/liblua.dir/src/lstring.c.o
[ 45%] Building C object CMakeFiles/liblua.dir/src/ltable.c.o
[ 47%] [ 49%] Building C object CMakeFiles/liblua.dir/src/ltm.c.o
Building C object CMakeFiles/liblua_static.dir/src/lstring.c.o
[ 50%] Building C object CMakeFiles/liblua_static.dir/src/ltable.c.o
[ 52%] Building C object CMakeFiles/liblua.dir/src/lundump.c.o
[ 54%] Building C object CMakeFiles/liblua.dir/src/lvm.c.o
[ 55%] Building C object CMakeFiles/liblua.dir/src/lzio.c.o
[ 57%] Building C object CMakeFiles/liblua_static.dir/src/ltm.c.o
[ 59%] Building C object CMakeFiles/liblua_static.dir/src/lundump.c.o
[ 60%] Building C object CMakeFiles/liblua.dir/src/lauxlib.c.o
[ 62%] Building C object CMakeFiles/liblua.dir/src/lbaselib.c.o
[ 63%] Building C object CMakeFiles/liblua.dir/src/ldblib.c.o
[ 65%] Building C object CMakeFiles/liblua_static.dir/src/lvm.c.o
[ 67%] Building C object CMakeFiles/liblua_static.dir/src/lzio.c.o
[ 68%] Building C object CMakeFiles/liblua_static.dir/src/lauxlib.c.o
[ 70%] Building C object CMakeFiles/liblua_static.dir/src/lbaselib.c.o
[ 72%] [ 73%] Building C object CMakeFiles/liblua_static.dir/src/ldblib.c.o
Building C object CMakeFiles/liblua.dir/src/liolib.c.o
[ 75%] Building C object CMakeFiles/liblua_static.dir/src/liolib.c.o
[ 77%] Building C object CMakeFiles/liblua.dir/src/lmathlib.c.o
[ 78%] Building C object CMakeFiles/liblua_static.dir/src/lmathlib.c.o
[ 80%] Building C object CMakeFiles/liblua.dir/src/loslib.c.o
[ 81%] Building C object CMakeFiles/liblua.dir/src/ltablib.c.o
[ 83%] Building C object CMakeFiles/liblua.dir/src/lstrlib.c.o
[ 85%] [ 86%] Building C object CMakeFiles/liblua_static.dir/src/loslib.c.o
Building C object CMakeFiles/liblua_static.dir/src/ltablib.c.o
[ 88%] Building C object CMakeFiles/liblua_static.dir/src/lstrlib.c.o
[ 90%] Building C object CMakeFiles/liblua_static.dir/src/linit.c.o
[ 91%] Building C object CMakeFiles/liblua.dir/src/linit.c.o
[ 93%] Building C object CMakeFiles/liblua.dir/src/loadlib_rel.c.o
[ 95%] Building C object CMakeFiles/liblua_static.dir/src/loadlib_rel.c.o
Linking C shared library liblua.dylib
Linking C static library libliblua_static.a
[ 95%] Built target liblua
[ 95%] Built target liblua_static
Scanning dependencies of target lua
[ 96%] Scanning dependencies of target luac
Building C object CMakeFiles/lua.dir/src/lua.c.o
[ 98%] [100%] Building C object CMakeFiles/luac.dir/src/print.c.o
Building C object CMakeFiles/luac.dir/src/luac.c.o
Linking C executable luac
Linking C executable lua
[100%] Built target luac
[100%] Built target lua
[ 0%] Performing install step for 'lua'
[ 47%] Built target liblua
[ 95%] Built target liblua_static
[ 96%] Built target lua
[100%] Built target luac
Install the project...
-- Install configuration: "MinSizeRel"
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/bin/lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/bin/luac
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/lib/liblua.dylib
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/README.md
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/COPYRIGHT
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/HISTORY
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/lib/lua/strict.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/include/lua.h
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/include/lualib.h
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/include/lauxlib.h
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/include/lua.hpp
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/include/luaconf.h
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc/
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//contents.html
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//cover.png
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//logo.gif
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//lua.1
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//lua.css
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//lua.html
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//luac.1
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//luac.html
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//manual.css
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//manual.html
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/doc//readme.html
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc/
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//all.c
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//lua.hpp
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//lua.ico
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//lua.pc
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//lua_lang.ico
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//luavs.bat
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//Makefile
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//min.c
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//noparser.c
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//README
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/etc//strict.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test/
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//bisect.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//cf.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//echo.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//env.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//factorial.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//fib.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//fibfor.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//globals.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//hello.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//life.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//luac.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//printf.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//README
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//readonly.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//sieve.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//sort.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//table.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//trace-calls.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//trace-globals.lua
-- Installing: /Users/Eric/test/_bootstrap/_install/tmp/bootstrap/share/lua/test//xd.lua
[ 0%] Completed 'lua'
[ 25%] Built target lua
Scanning dependencies of target srlua
[ 25%] Creating directories for 'srlua'
[ 25%] No download step for 'srlua'
[ 25%] [ 25%] No patch step for 'srlua'
No update step for 'srlua'
[ 25%] Performing configure step for 'srlua'
loading initial cache file /Users/Eric/test/_bootstrap/_install/tmp/install/config.cmake
-- The C compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
DIST_NAME: srlua
DIST_VERSION: 5.1
DIST_LICENSE: MIT/X11
DIST_AUTHOR: Luiz Henrique de Figueiredo
DIST_MAINTAINER: Peter Drahoš
DIST_URL: http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/
DIST_DESC: A tool for building self-running Lua programs.
DIST_DEPENDS:
-- Found Lua: /Library/Frameworks/lua.framework (found version "5.1.5")
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/Eric/test/_bootstrap/_install/tmp/install/srlua/build
[ 25%] Performing build step for 'srlua'
Scanning dependencies of target glue
Scanning dependencies of target srlua
[ 50%] [100%] Building C object CMakeFiles/glue.dir/glue.c.o
Building C object CMakeFiles/srlua.dir/srlua.c.o
Linking C executable glue
Linking C executable srlua
ld: warning: in /Library/Frameworks//lua.framework/lua, missing required architecture x86_64 in file
[100%] Built target glue
ld: warning: in /Library/Frameworks//lua.framework/lua, missing required architecture x86_64 in file
Undefined symbols:
"_luaL_error", referenced from:
_pmain in srlua.c.o
_pmain in srlua.c.o
_pmain in srlua.c.o
_pmain in srlua.c.o
_pmain in srlua.c.o
"_luaL_newstate", referenced from:
_main in srlua.c.o
"_lua_close", referenced from:
_main in srlua.c.o
"_lua_pushcclosure", referenced from:
_main in srlua.c.o
"_lua_rawseti", referenced from:
_pmain in srlua.c.o
"_luaL_openlibs", referenced from:
_pmain in srlua.c.o
"_lua_pushstring", referenced from:
_pmain in srlua.c.o
_pmain in srlua.c.o
"_lua_createtable", referenced from:
_pmain in srlua.c.o
"_lua_pushinteger", referenced from:
_main in srlua.c.o
"_lua_tolstring", referenced from:
_main in srlua.c.o
"_lua_pcall", referenced from:
_main in srlua.c.o
"_luaL_checkstack", referenced from:
_pmain in srlua.c.o
"_lua_call", referenced from:
_pmain in srlua.c.o
"_lua_setfield", referenced from:
_pmain in srlua.c.o
"_lua_pushlightuserdata", referenced from:
_main in srlua.c.o
"_lua_touserdata", referenced from:
_pmain in srlua.c.o
"_lua_tointeger", referenced from:
_pmain in srlua.c.o
"_lua_load", referenced from:
_pmain in srlua.c.o
"_lua_error", referenced from:
_pmain in srlua.c.o
"_lua_gc", referenced from:
_pmain in srlua.c.o
_pmain in srlua.c.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[6]: *** [srlua] Error 1
make[5]: *** [CMakeFiles/srlua.dir/all] Error 2
make[4]: *** [all] Error 2
make[3]: *** [srlua/src/srlua-stamp/srlua-build] Error 2
make[2]: *** [CMakeFiles/srlua.dir/all] Error 2
make[1]: *** [CMakeFiles/install.dir/rule] Error 2
make: *** [install] Error 2
bash: line 16: /Users/Eric/test/_bootstrap/_install/bin/luadist: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment