![]() |
|
Tool to Control Fan - fanctl - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: Linux on RockPro64 (https://forum.pine64.org/forumdisplay.php?fid=101) +--- Thread: Tool to Control Fan - fanctl (/showthread.php?tid=6489) |
RE: Tool to Control Fan - fanctl - g_t_j - 08-01-2019 Anyone could help with these dependecies... When I run: update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1 and update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1 I get the following eeror: update-alternatives: error: alternative link /usr/bin/lua is already managed by lua-interpreter Subsequently, I can then install luarocks apt-get install luarocks but when I try to install ats with the following command luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec I'm getting the missing dependiecies errors: Missing dependencies for ats master-0: lua >= 5.3 (5.1-1 provided by VM) ats master-0 depends on lua >= 5.3 (5.1-1 provided by VM) Error: Could not satisfy dependency lua >= 5.3: No results matching query were found I obviously have done something wrongs as I previosuly had successfully installed ats a couple of times! Any help will be greatly appreciated otherwise I have no choice but reinstalling the whole thing from scratch....
RE: Tool to Control Fan - fanctl - tuxd3v - 08-01-2019 (08-01-2019, 08:13 AM)g_t_j Wrote: Anyone could help with these dependecies... Hello g_t_j, What is the output of: Code: apt-get install --reinstall lua5.3 lua5.3-dev gcc makeAlso after this, the output of: Code: ls -l /usr/bin/lua{,c}Regards, RE: Tool to Control Fan - fanctl - g_t_j - 08-01-2019 (08-01-2019, 09:02 AM)tuxd3v Wrote:(08-01-2019, 08:13 AM)g_t_j Wrote: Anyone could help with these dependecies... Hello. Thanks for your help! output of the 1st command: Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'liblua5.3-dev' for regex 'lua5.3-dev' 0 upgraded, 0 newly installed, 4 reinstalled, 0 to remove and 0 not upgraded. Need to get 796 kB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main arm64 gcc arm64 4:6.3.0-4 [5204 B] Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main arm64 liblua5.3-dev arm64 5.3.3-1 [418 kB] Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main arm64 lua5.3 arm64 5.3.3-1 [86.4 kB] Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main arm64 make arm64 4.1-9.1 [286 kB] Fetched 796 kB in 1s (789 kB/s) (Reading database ... 127082 files and directories currently installed.) Preparing to unpack .../gcc_4%3a6.3.0-4_arm64.deb ... Removing old gcc doc directory. Unpacking gcc (4:6.3.0-4) over (4:6.3.0-4) ... Preparing to unpack .../liblua5.3-dev_5.3.3-1_arm64.deb ... Unpacking liblua5.3-dev:arm64 (5.3.3-1) over (5.3.3-1) ... Preparing to unpack .../lua5.3_5.3.3-1_arm64.deb ... Unpacking lua5.3 (5.3.3-1) over (5.3.3-1) ... Preparing to unpack .../make_4.1-9.1_arm64.deb ... Unpacking make (4.1-9.1) over (4.1-9.1) ... Setting up make (4.1-9.1) ... Setting up gcc (4:6.3.0-4) ... Setting up liblua5.3-dev:arm64 (5.3.3-1) ... Setting up lua5.3 (5.3.3-1) ... Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950> Traceback (most recent call last): File "/usr/lib/python3.5/weakref.py", line 117, in remove TypeError: 'NoneType' object is not callable Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950> Traceback (most recent call last): File "/usr/lib/python3.5/weakref.py", line 117, in remove TypeError: 'NoneType' object is not callable output of the 2nd: lrwxrwxrwx 1 root root 33 Aug 1 14:50 /usr/bin/lua -> /etc/alternatives/lua-interpreter lrwxrwxrwx 1 root root 30 Aug 1 14:50 /usr/bin/luac -> /etc/alternatives/lua-compiler RE: Tool to Control Fan - fanctl - tuxd3v - 08-01-2019 (08-01-2019, 04:09 PM)g_t_j Wrote: Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950> Hello g_t_j, I don't get why you have that python erros in reinstalling the tools.. ![]() You should have this installed: Code: tuxd3v@desktop0:/$ ls -l /usr/bin/lua{,c}5.3
-rwxr-xr-x 1 root root 232528 Dec 19 2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 146128 Dec 19 2016 /usr/bin/luac5.3
root@rockpro64:~# ls -l /etc/alternatives/lua{,c}
lrwxrwxrwx 1 root root 15 Jun 30 19:39 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root 16 Jun 30 19:39 /etc/alternatives/luac -> /usr/bin/luac5.3Do this: Code: update-alternatives --remove lua /etc/alternatives/lua-interpreter
update-alternatives --remove luac /etc/alternatives/lua-compiler
update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1Then you should have this: Code: root@rockpro64:~# ls -l {/etc/alternatives/lua{,c},/usr/bin/lua{,c}5.3}
lrwxrwxrwx 1 root root 15 Aug 2 00:52 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root 16 Aug 2 00:52 /etc/alternatives/luac -> /usr/bin/luac5.3
-rwxr-xr-x 1 root root 187216 Dec 19 2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 121312 Dec 19 2016 /usr/bin/luac5.3After, relaunch, ats: Code: systemctl restart atstell us if problem is solved Regards, RE: Tool to Control Fan - fanctl - g_t_j - 08-01-2019 (08-01-2019, 05:57 PM)tuxd3v Wrote:(08-01-2019, 04:09 PM)g_t_j Wrote: Exception ignored in: <function WeakValueDictionary.__init__.<locals>.remove at 0x7fb319f950> Thank you so much for your help once again. I don't get it why I'm getting such aeerors either, especially when I had succefully installed ats in the past ![]() I'm still getting errors when I remove and try to re-install ''update alternatives'' Code: update-alternatives: error: alternative link /usr/bin/lua is already managedlua-interpreter
update-alternatives: error: alternative link /usr/bin/lua is already managedlua-interpreterRE: Tool to Control Fan - fanctl - tuxd3v - 08-02-2019 (08-01-2019, 06:37 PM)g_t_j Wrote: Thank you so much for your help once again. Hello g_t_j, You welcome ![]() Dot this: Code: luarocks remove atsThe remove luarocks: Code: apt-get remove luarocksThem remove alternative links: Code: apt-get remove lua5.1 liblua5.1-dev
update-alternatives --remove lua /etc/alternatives/managedlua-interpreter
update-alternatives --remove luac /etc/alternatives//managedlua-interpreter
apt-get install --reinstall lua5.3 liblua5.3-dev
update-alternatives --install /usr/bin/lua lua /usr/bin/lua5.3 1
update-alternatives --install /usr/bin/luac luac /usr/bin/luac5.3 1
apt-get install luarocksAt this point you should have lua pointing to lua5.3.. check with: Code: root@rockpro64:~# ls -l {/etc/alternatives/lua{,c},/usr/bin/lua{,c}5.3}
lrwxrwxrwx 1 root root 15 Aug 2 00:52 /etc/alternatives/lua -> /usr/bin/lua5.3
lrwxrwxrwx 1 root root 16 Aug 2 00:52 /etc/alternatives/luac -> /usr/bin/luac5.3
-rwxr-xr-x 1 root root 187216 Dec 19 2016 /usr/bin/lua5.3
-rwxr-xr-x 1 root root 121312 Dec 19 2016 /usr/bin/luac5.3then install ats: Code: luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspecThis should solve your problem, And the conflict between lua5.1 and lua5.3 versions, since lua5.3 is the default symlink.. If this doesn't solve the problem, then remove links by hand.. Code: rm /etc/alternatives/lua
rm /etc/alternatives/luac
ln -s /usr/bin/lua5.3 /usr/bin/lua
ln -s /usr/bin/luac5.3 /usr/bin/luacAfter remove ats, and install again.. Code: luarocks remove ats
luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspecI hope this solves your problem
RE: Tool to Control Fan - fanctl - g_t_j - 08-02-2019 (08-02-2019, 03:44 AM)tuxd3v Wrote:(08-01-2019, 06:37 PM)g_t_j Wrote: Thank you so much for your help once again. It worked at last without the need to remove all links by hand! ![]() Was it my fault with that conflict between lua versions? Thank you so much for all your help! It's thoroughly appreciated! You saved me a lot of time as, being left out of ideas, I was planning to rebuild the server from scratch! RE: Tool to Control Fan - fanctl - tuxd3v - 08-02-2019 (08-02-2019, 06:49 AM)g_t_j Wrote: It worked at last without the need to remove all links by hand! Hello g_t_j, You welcome, Glad to see that you solved it.. The thing is.. 'Luarocks', and or 'mpv', have 'lua5.1' has a dependency in its packages.. To use 'lua5.3' has the default: 1) You need to install it first, and be sure its the default.. 2) And only then, install 'luarocks'.. this is the way to solve your problem In this way, 'lua5.3' will become the default, and 'Luarocks' package will work with it( 'lua5.3' in the same way it could work with 'lua5.1' ).. About some news( Other Subject ).. Lua, is gaining a Huge tracking, because of ExaScale supercomputers: They will use 'terra' Language, and maybe 'pallene', wich both are part of Lua Scientific Language ecosystem.. [ Frontier ] is in the RoadMap, and maybe even [ Aurora ] too!! Best Regards, RE: Tool to Control Fan - fanctl - g_t_j - 08-02-2019 (08-02-2019, 08:52 AM)tuxd3v Wrote:(08-02-2019, 06:49 AM)g_t_j Wrote: It worked at last without the need to remove all links by hand! RE: Tool to Control Fan - fanctl - tuxd3v - 08-02-2019 (08-02-2019, 09:16 AM)g_t_j Wrote: It would be very nice for Pine64 to gather all this info and make a clear step-by-step guide that wouldHello g_t_j, You welcome.. A package could be created for that, I currently doesn't have the time, but with somebody else, it could be made.. Yes ats has a thread with help on setup, Since each setup could be different for every user( different Active cooling Setup/Different Globe Region.. ) Better to configure how it works better for you Agree, with the disk, input.. Will make part of next release, so that there will be 3 sources of temperature( CPU, GPU, HDD ).. ![]() Best Regards, |