SHARE
TWEET

Building LuaRocks 3.0-Beta2 on FreeBSD

_dinsdale Jul 15th, 2018 24 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make clean
  2. rm -f ./config.unix
  3. rm -f ./luarocks
  4. rm -f ./luarocks-admin
  5. rm -rf build-binary
  6. rm -rf ./.luarocks
  7. rm -rf ./lua_modules
  8. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # diff Makefile.orig Makefile
  9. 4c4
  10. < all: ./luarocks ./luarocks-admin
  11. ---
  12. > all: ./luarocks luarocks-admin
  13. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make
  14. Please run the ./configure script before building.
  15.  
  16. make: exec(exit) failed (No such file or directory)
  17. *** Error code 1
  18.  
  19. Stop.
  20. make: stopped in /home/freebsd/luarocks-3.0.0beta2
  21. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # ./configure
  22.  
  23. Configuring LuaRocks...
  24.  
  25. Lua version detected: 5.4
  26. Lua interpreter found: /usr/local/bin/lua54
  27. lua.h not found (tried /usr/local/include/lua/5.4/lua.h /usr/local/include/lua5.4/lua.h /usr/local/include/lua.h /usr/local/include/lua5.4/lua.h)
  28.  
  29. If the development files for Lua (headers and libraries)
  30. are installed in your system, you may need to use the
  31. --with-lua or --with-include flags to specify their location.
  32.  
  33. If those files are not yet installed, you need to install
  34. them using the appropriate method for your operating system.
  35.  
  36. Run ./configure --help for details on flags.
  37.  
  38. configure failed.
  39.  
  40. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # ./configure --with-include=/usr/local/include/lua54/
  41. Error: Unknown flag: --with-include=/usr/local/include/lua54/
  42.  
  43. configure failed.
  44.  
  45. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # ./configure --with-lua-include=/usr/local/include/lua54/
  46.  
  47. Configuring LuaRocks...
  48.  
  49. Lua version detected: 5.4
  50. Lua interpreter found: /usr/local/bin/lua54
  51. lua.h found: /usr/local/include/lua54/lua.h
  52. unzip found in PATH: /usr/bin
  53.  
  54. Done configuring.
  55.  
  56. LuaRocks will be installed at......: /usr/local
  57. LuaRocks will install rocks at.....: /usr/local
  58. LuaRocks configuration directory...: /usr/local/etc/luarocks
  59. Using Lua from.....................: /usr/local
  60. Lua include directory..............: /usr/local/include/lua54
  61.  
  62. * Type make build and make install:
  63.   to install to /usr/local as usual.
  64. * Type make bootstrap:
  65.   to install LuaRocks into /usr/local as a rock.
  66.  
  67. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make build
  68. rm -f src/luarocks/core/hardcoded.lua
  69. echo "#!/bin/sh" > luarocks
  70. echo "unset LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4" >> luarocks
  71. echo 'LUAROCKS_SYSCONFDIR="/usr/local/etc/luarocks" LUA_PATH="/src/?.lua;;" exec "/usr/local/bin/lua54" "/src/bin/luarocks" --project-tree="/lua_modules" "$@"' >> luarocks
  72. chmod +rx ./luarocks
  73. ./luarocks init
  74. /usr/local/bin/lua54: cannot open /src/bin/luarocks: No such file or directory
  75. *** Error code 1
  76.  
  77. Stop.
  78. make: stopped in /home/freebsd/luarocks-3.0.0beta2
  79. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make build
  80. rm -f src/luarocks/core/hardcoded.lua
  81. echo "#!/bin/sh" > luarocks-admin
  82. echo "unset LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4" >> luarocks-admin
  83. echo 'LUAROCKS_SYSCONFDIR="/usr/local/etc/luarocks" LUA_PATH="/src/?.lua;;" exec "/usr/local/bin/lua54" "/src/bin/luarocks-admin" --project-tree="/lua_modules" "$@"' >> luarocks-admin
  84. chmod +rx ./luarocks-admin
  85. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make install
  86. mkdir -p "/usr/local/bin"
  87. echo "#!/usr/local/bin/lua54" > /usr/local/bin/luarocks
  88. echo "package.loaded['luarocks.core.hardcoded'] = { SYSCONFDIR = [[/usr/local/etc/luarocks]] }" >> /usr/local/bin/luarocks
  89. echo "package.path=[[/usr/local/share/lua/5.4/?.lua;]] .. package.path" >> /usr/local/bin/luarocks
  90. tail -n +2 src/bin/luarocks >> /usr/local/bin/luarocks
  91. chmod +rx /usr/local/bin/luarocks
  92. mkdir -p "/usr/local/bin"
  93. echo "#!/usr/local/bin/lua54" > /usr/local/bin/luarocks-admin
  94. echo "package.loaded['luarocks.core.hardcoded'] = { SYSCONFDIR = [[/usr/local/etc/luarocks]] }" >> /usr/local/bin/luarocks-admin
  95. echo "package.path=[[/usr/local/share/lua/5.4/?.lua;]] .. package.path" >> /usr/local/bin/luarocks-admin
  96. tail -n +2 src/bin/luarocks-admin >> /usr/local/bin/luarocks-admin
  97. chmod +rx /usr/local/bin/luarocks-admin
  98. mkdir -p "/usr/local/etc/luarocks"
  99. cp config-5.4.lua.in "/usr/local/etc/luarocks/config-5.4.lua"
  100. mkdir -p "/usr/local/share/lua/5.4/luarocks"
  101. cp -a src/luarocks/* "/usr/local/share/lua/5.4/luarocks"
  102. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # luarocks help
  103. Warning: The directory '/root/.cache/luarocks' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing /usr/local/bin/luarocks with sudo, you may want sudo's -H flag.
  104.  
  105. LuaRocks 3.0.0beta2, the Lua package manager
  106.  
  107. ...
  108. root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 #
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top