Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make clean
- rm -f ./config.unix
- rm -f ./luarocks
- rm -f ./luarocks-admin
- rm -rf build-binary
- rm -rf ./.luarocks
- rm -rf ./lua_modules
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # diff Makefile.orig Makefile
- 4c4
- < all: ./luarocks ./luarocks-admin
- ---
- > all: ./luarocks luarocks-admin
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make
- Please run the ./configure script before building.
- make: exec(exit) failed (No such file or directory)
- *** Error code 1
- Stop.
- make: stopped in /home/freebsd/luarocks-3.0.0beta2
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # ./configure
- Configuring LuaRocks...
- Lua version detected: 5.4
- Lua interpreter found: /usr/local/bin/lua54
- 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)
- If the development files for Lua (headers and libraries)
- are installed in your system, you may need to use the
- --with-lua or --with-include flags to specify their location.
- If those files are not yet installed, you need to install
- them using the appropriate method for your operating system.
- Run ./configure --help for details on flags.
- configure failed.
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # ./configure --with-include=/usr/local/include/lua54/
- Error: Unknown flag: --with-include=/usr/local/include/lua54/
- configure failed.
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # ./configure --with-lua-include=/usr/local/include/lua54/
- Configuring LuaRocks...
- Lua version detected: 5.4
- Lua interpreter found: /usr/local/bin/lua54
- lua.h found: /usr/local/include/lua54/lua.h
- unzip found in PATH: /usr/bin
- Done configuring.
- LuaRocks will be installed at......: /usr/local
- LuaRocks will install rocks at.....: /usr/local
- LuaRocks configuration directory...: /usr/local/etc/luarocks
- Using Lua from.....................: /usr/local
- Lua include directory..............: /usr/local/include/lua54
- * Type make build and make install:
- to install to /usr/local as usual.
- * Type make bootstrap:
- to install LuaRocks into /usr/local as a rock.
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make build
- rm -f src/luarocks/core/hardcoded.lua
- echo "#!/bin/sh" > luarocks
- echo "unset LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4" >> luarocks
- echo 'LUAROCKS_SYSCONFDIR="/usr/local/etc/luarocks" LUA_PATH="/src/?.lua;;" exec "/usr/local/bin/lua54" "/src/bin/luarocks" --project-tree="/lua_modules" "$@"' >> luarocks
- chmod +rx ./luarocks
- ./luarocks init
- /usr/local/bin/lua54: cannot open /src/bin/luarocks: No such file or directory
- *** Error code 1
- Stop.
- make: stopped in /home/freebsd/luarocks-3.0.0beta2
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make build
- rm -f src/luarocks/core/hardcoded.lua
- echo "#!/bin/sh" > luarocks-admin
- echo "unset LUA_PATH LUA_PATH_5_2 LUA_PATH_5_3 LUA_PATH_5_4" >> luarocks-admin
- 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
- chmod +rx ./luarocks-admin
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # make install
- mkdir -p "/usr/local/bin"
- echo "#!/usr/local/bin/lua54" > /usr/local/bin/luarocks
- echo "package.loaded['luarocks.core.hardcoded'] = { SYSCONFDIR = [[/usr/local/etc/luarocks]] }" >> /usr/local/bin/luarocks
- echo "package.path=[[/usr/local/share/lua/5.4/?.lua;]] .. package.path" >> /usr/local/bin/luarocks
- tail -n +2 src/bin/luarocks >> /usr/local/bin/luarocks
- chmod +rx /usr/local/bin/luarocks
- mkdir -p "/usr/local/bin"
- echo "#!/usr/local/bin/lua54" > /usr/local/bin/luarocks-admin
- echo "package.loaded['luarocks.core.hardcoded'] = { SYSCONFDIR = [[/usr/local/etc/luarocks]] }" >> /usr/local/bin/luarocks-admin
- echo "package.path=[[/usr/local/share/lua/5.4/?.lua;]] .. package.path" >> /usr/local/bin/luarocks-admin
- tail -n +2 src/bin/luarocks-admin >> /usr/local/bin/luarocks-admin
- chmod +rx /usr/local/bin/luarocks-admin
- mkdir -p "/usr/local/etc/luarocks"
- cp config-5.4.lua.in "/usr/local/etc/luarocks/config-5.4.lua"
- mkdir -p "/usr/local/share/lua/5.4/luarocks"
- cp -a src/luarocks/* "/usr/local/share/lua/5.4/luarocks"
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 # luarocks help
- 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.
- LuaRocks 3.0.0beta2, the Lua package manager
- ...
- root@beaglebone:/home/freebsd/luarocks-3.0.0beta2 #
Add Comment
Please, Sign In to add comment