Tool to Control Fan - fanctl
#41
Thumbs Up 
(10-19-2018, 04:34 PM)y0sh Wrote: Came back today to work on it and everything is now working.

Hello y0sh,
Ok, nice you succeed![Image: thumbsup.png]

fanctl is changing its project name,
it would avoid conflict names with another projects, for instance, ( fanctl - fan bridge administration ), and its more descriptive.
however there are another projects with similar names, they are differentiated, not service focused on system. 

fanctl is now called  ats - Active Thermal Service, its a more acceptable and descriptive name.

In this process, for installation,
1. You can install from master, as root with 2 options:
  • luarocks( easy way ):
  1. Code:
    luarocks build  https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
  • OR Download the code( with git clone, or via browser ), extract it, change directory to it and as root:
  1. Code:
    make
    make install
    make purge
2. You can download a 0.1.7 Pré release,
The simples option, and less prone to errors is simply:
Will be provided, as the refactoring advance a simple way, like in the past, with the simple method above.
I will inform about it, when v0.1.7 turn itself into stable

Any problem, you already know,
Drop a line here or on github project page, for issues: https://github.com/tuxd3v/ats/issues

Regards
tux
  Reply
#42
This is the error I am getting when trying to run luarocks build

Error: Could not find library file for LUA53
  No file liblua5.3.a in /usr/lib/aarch64-linux-gnu
  No file liblua5.3.so in /usr/lib/aarch64-linux-gnu
  No file matching liblua5.3.so.* in /usr/lib/aarch64-linux-gnu
You may have to install LUA53 in your system and/or pass LUA53_DIR or LUA53_LIBDIR to the luarocks command.
Example: luarocks install ats LUA53_DIR=/usr/local
  Reply
#43
(10-21-2018, 02:06 PM)O1Hitman1O Wrote: This is the error I am getting when trying to run luarocks build

Error: Could not find library file for LUA53
  No file liblua5.3.a in /usr/lib/aarch64-linux-gnu
  No file liblua5.3.so in /usr/lib/aarch64-linux-gnu
  No file matching liblua5.3.so.* in /usr/lib/aarch64-linux-gnu
You may have to install LUA53 in your system and/or pass LUA53_DIR or LUA53_LIBDIR to the luarocks command.
Example: luarocks install ats LUA53_DIR=/usr/local

Hello O1Hitman1O,
Indeed there are some dependencies that Lua needs to know about:

Have you done this step?
if not, copy & paste this in the terminal, and press enter:
Code:
cat <<HERE >> /etc/luarocks/config.lua
variables={
        UNISTD_INCDIR   = "/usr/include",
        LUALIB_INCDIR   = "/usr/include/lua5.3",
        LAUXLIB_INCDIR  = "/usr/include/lua5.3",
        LUA_INCDIR      = "/usr/include/lua5.3",
        LUA53_LIBDIR    = "/usr/lib/aarch64-linux-gnu"
}
HERE

Then issue again:
Code:
luarocks build  https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

The master repo, have seen some changes during the day, maybe related to that, some problems compiling shared library..
but trying to install again would solve the problem..

Does the error disappeared?

EDIT:
GitHub is reparing its Storage facility, maybe because of that you got problems..
The ats project page, is still inconsistent..

https://twitter.com/githubstatus
  Reply
#44
(10-21-2018, 07:39 PM)tuxd3v Wrote:
(10-21-2018, 02:06 PM)O1Hitman1O Wrote: This is the error I am getting when trying to run luarocks build

Error: Could not find library file for LUA53
  No file liblua5.3.a in /usr/lib/aarch64-linux-gnu
  No file liblua5.3.so in /usr/lib/aarch64-linux-gnu
  No file matching liblua5.3.so.* in /usr/lib/aarch64-linux-gnu
You may have to install LUA53 in your system and/or pass LUA53_DIR or LUA53_LIBDIR to the luarocks command.
Example: luarocks install ats LUA53_DIR=/usr/local

Hello O1Hitman1O,
Indeed there are some dependencies that Lua needs to know about:

Have you done this step?
if not, copy & paste this in the terminal, and press enter:
Code:
cat <<HERE >> /etc/luarocks/config.lua
variables={
        UNISTD_INCDIR   = "/usr/include",
        LUALIB_INCDIR   = "/usr/include/lua5.3",
        LAUXLIB_INCDIR  = "/usr/include/lua5.3",
        LUA_INCDIR      = "/usr/include/lua5.3",
        LUA53_LIBDIR    = "/usr/lib/aarch64-linux-gnu"
}
HERE

Then issue again:
Code:
luarocks build  https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

The master repo, have seen some changes during the day, maybe related to that, some problems compiling shared library..
but trying to install again would solve the problem..

Does the error disappeared?

EDIT:
GitHub is reparing its Storage facility, maybe because of that you got problems..
The ats project page, is still inconsistent..

https://twitter.com/githubstatus

Yes I did, and the config file looks to be correct but still getting the dependency issue with no file found. 
This is what is in that directory.

/usr/lib/aarch64-linux-gnu# ls

audit  gconv  libstdc++.so.6  libstdc++.so.6.0.22  lua
  Reply
#45
(10-21-2018, 07:39 PM)tuxd3v Wrote:
(10-21-2018, 02:06 PM)O1Hitman1O Wrote: This is the error I am getting when trying to run luarocks build

Error: Could not find library file for LUA53
  No file liblua5.3.a in /usr/lib/aarch64-linux-gnu
  No file liblua5.3.so in /usr/lib/aarch64-linux-gnu
  No file matching liblua5.3.so.* in /usr/lib/aarch64-linux-gnu
You may have to install LUA53 in your system and/or pass LUA53_DIR or LUA53_LIBDIR to the luarocks command.
Example: luarocks install ats LUA53_DIR=/usr/local

Hello O1Hitman1O,
Indeed there are some dependencies that Lua needs to know about:

Have you done this step?
if not, copy & paste this in the terminal, and press enter:
Code:
cat <<HERE >> /etc/luarocks/config.lua
variables={
        UNISTD_INCDIR   = "/usr/include",
        LUALIB_INCDIR   = "/usr/include/lua5.3",
        LAUXLIB_INCDIR  = "/usr/include/lua5.3",
        LUA_INCDIR      = "/usr/include/lua5.3",
        LUA53_LIBDIR    = "/usr/lib/aarch64-linux-gnu"
}
HERE

Then issue again:
Code:
luarocks build  https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec

The master repo, have seen some changes during the day, maybe related to that, some problems compiling shared library..
but trying to install again would solve the problem..

Does the error disappeared?

EDIT:
GitHub is reparing its Storage facility, maybe because of that you got problems..
The ats project page, is still inconsistent..

https://twitter.com/githubstatus

I have tried to remove Lua and install again following the steps but with no success.
Where would the files be located?
liblua5.3.a
liblua5.3.so
  Reply
#46
(10-22-2018, 01:18 AM)O1Hitman1O Wrote: I have tried to remove Lua and install again following the steps but with no success.
Where would the files be located?
liblua5.3.a
liblua5.3.so

The libraries,
when you install via apt-get are located here:
Code:
LUA53_LIBDIR    = "/usr/lib/aarch64-linux-gnu"

To find the place were they are, issue:
Code:
find /usr -name liblua5.3.so

In Ubuntu Lxde or in debian images they were in "/usr/lib/aarch64-linux-gnu".
Because luarocks doesn't know where they really are, the 'variables' table, needs to be in: "/etc/luarocks/config.lua
  Reply
#47
Ok success after changing to 
LUA53_LIBDIR    = "/usr/lib/arm-linux-gnueabihf"
But the service will now not start. This is the status error
ystemd[1]: ats.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: ats.service: Unit entered failed state.
systemd[1]: ats.service: Failed with result 'exit-code'.
  Reply
#48
(10-22-2018, 08:32 AM)O1Hitman1O Wrote: Ok success after changing to 
LUA53_LIBDIR    = "/usr/lib/arm-linux-gnueabihf"
But the service will now not start. This is the status error
ystemd[1]: ats.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: ats.service: Unit entered failed state.
systemd[1]: ats.service: Failed with result 'exit-code'.

you are in a 32 bits OS, or you installed linaro tools.
It would be nice if you can tell what OS you are using, to include in ats tool.

Lua now know, and have verified its ats dependencies(including liblua5.3.so ),
But the Makefile doesn't know..
it compiles, but then it cannot install, because of path in Makefile:

Code:
find /usr/{include,lib} -name lua5.3 -o -name 5.3 && find /lib -name system

What is the result of this command?
it tells you the paths were are the include headers( 'find /usr/include -name lua.h -o -name lauxlib.h -o -name lualib.h' ),the shared library 'lua5.3.so', and the systemd 'system' directory, by this order..
  Reply
#49
Linux 4.4.154-1122-rockchip-ayufan-g7859b9b904a9 #1 SMP Mon Oct 1 07:32:42 UTC 2018 aarch64

find /usr/{include,lib} -name lua5.3 -o -name 5.3 && find /lib -name system
/usr/include/lua5.3
/usr/lib/aarch64-linux-gnu/lua/5.3
/lib/systemd/system
  Reply
#50
(10-22-2018, 03:29 PM)O1Hitman1O Wrote: Linux 4.4.154-1122-rockchip-ayufan-g7859b9b904a9 #1 SMP Mon Oct 1 07:32:42 UTC 2018 aarch64

find /usr/{include,lib} -name lua5.3 -o -name 5.3 && find /lib -name system
/usr/include/lua5.3
/usr/lib/aarch64-linux-gnu/lua/5.3
/lib/systemd/system

This are exactly the locations in the variables on '/etc/luarocks/config.lua'
variables={
        UNISTD_INCDIR   = "/usr/include",
        LUALIB_INCDIR   = "/usr/include/lua5.3",
        LAUXLIB_INCDIR  = "/usr/include/lua5.3",
        LUA_INCDIR      = "/usr/include/lua5.3",
        LUA53_LIBDIR    = "/usr/lib/aarch64-linux-gnu"
}
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PWM Fan Control Python Script superbox 0 1,647 02-04-2022, 10:02 PM
Last Post: superbox

Forum Jump:


Users browsing this thread: 19 Guest(s)