08-02-2019, 06:49 AM
(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.
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-interpreter
Hello g_t_j,
You welcome
Dot this:
Code:luarocks remove ats
The remove luarocks:
Code:apt-get remove luarocks
Them 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 luarocks
At 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.3
then install ats:
Code:luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
This 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/luac
After remove ats, and install again..
Code:luarocks remove ats luarocks build https://raw.githubusercontent.com/tuxd3v/ats/master/ats-master-0.rockspec
I hope this solves your problem
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!



