11-20-2018, 11:17 AM
I can't get this to install for the life of me.
Installed dependencies, created symlink, then:
I then ran:
And I got this output:
When I run
I get:
I'm not sure what I'm doing wrong, could someone help?
Installed dependencies, created symlink, then:
Code:
cat <</usr/bin/lua5.3 >> /etc/luarocks/config.lua
> variables = {
> UNISTD_INCDIR = "/usr/include",
> STAT_INCDIR = "/usr/include/$( gcc -dumpmachine )",
> TYPES_INCDIR = "/usr/include/$( gcc -dumpmachine )",
> LUALIB_INCDIR = "/usr/include/lua5.3",
> LAUXLIB_INCDIR = "/usr/include/lua5.3",
> LUA_INCDIR = "/usr/include/lua5.3",
> LUA53_LIBDIR = "/usr/lib/$( gcc -dumpmachine )"
> }
> /usr/bin/lua5.3
I then ran:
Code:
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-0.1-6.rockspec
And I got this output:
Code:
Warning: variable CFLAGS was not passed in build_variables
gcc -c -fPIC -Wall -Werror -O3 -g -I/usr/include/lua5.3 -o src/sleep.o src/sleep.c
gcc -shared -Wl,-soname,sleep.so.0 -llua5.3 -o sleep.so.0.1 src/sleep.o
install --preserve-timestamps --owner=root --group=root --mode=750 --target-directory=/usr/sbin src/fanctl
install --preserve-timestamps --owner=root --group=root --mode=640 --target-directory=/lib/systemd/system systemd/fanctl.service
if [ ! -d /usr/lib/aarch64-linux-gnu/lua/5.3 ];then \
mkdir -p /usr/lib/aarch64-linux-gnu/lua/5.3; \
fi
install --preserve-timestamps --owner=root --group=root --mode=640 --target-directory=/usr/lib/aarch64-linux-gnu/lua/5.3 sleep.so.0.1
if [ -L /usr/lib/aarch64-linux-gnu/lua/5.3/sleep.so ];then \
rm -f /usr/lib/aarch64-linux-gnu/lua/5.3/sleep.so; \
fi
ln -s /usr/lib/aarch64-linux-gnu/lua/5.3/sleep.so.0.1 /usr/lib/aarch64-linux-gnu/lua/5.3/sleep.so
systemctl enable fanctl
ats 0.1-6 is now installed in /usr/local (license: See License..)
When I run
Code:
service ats status
I get:
Code:
ats.service - ATS - Active Thermal Service
Loaded: loaded (/lib/systemd/system/ats.service; enabled; vendor preset: enab
led)
Active: activating (auto-restart) (Result: exit-code) since Tue 2018-11-20 12
:11:19 EST; 5s ago
Main PID: 8548 (code=exited, status=1/FAILURE)
Nov 20 12:11:19 DietPi systemd[1]: ats.service: Main process exited, cod
e=exited, status=1/FAILURE
Nov 20 12:11:19 DietPi systemd[1]: ats.service: Unit entered failed stat
e.
Nov 20 12:11:19 DietPi systemd[1]: ats.service: Failed with result 'exit
-code'.
I'm not sure what I'm doing wrong, could someone help?