PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => DiXBoT => AllInOne Scripts => DiXBoT - Support => Topic started by: Hades on 08 March, 2009, 04:10:29

Title: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Hades on 08 March, 2009, 04:10:29
when trying to start dix i get this:

D:\RemoteApp\DiXBoT2600\scripts\DiXBoT.lua:254: module 'lfs' not found:
   no field package.preload['lfs']
   no file './lfs.lua'
   no file '/usr/local/share/lua/5.1/lfs.lua'
   no file '/usr/local/share/lua/5.1/lfs/init.lua'
   no file '/usr/local/lib/lua/5.1/lfs.lua'
   no file '/usr/local/lib/lua/5.1/lfs/init.lua'
   no file '/usr/share/lua/5.1/lfs.lua'
   no file '/usr/share/lua/5.1/lfs/init.lua'
   no file './lfs.so'
   no file '/usr/local/lib/lua/5.1/lfs.so'
   no file '/usr/lib/lua/5.1/lfs.so'
   no file '/usr/local/lib/lua/5.1/loadall.so'

any ideas?
Title: Re: DIXBOT on PX4.1.1.1 linux ubintu 8.10
Post by: Thor on 08 March, 2009, 12:41:55
Install luafilesystem package? ;D
Title: Re: DIXBOT on PX4.1.1.1 linux ubintu 8.10
Post by: Hades on 08 March, 2009, 16:30:30
heheh no brainer thanx !
Innstalled libluas and all works like a charm ! Thanx!
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: madkid on 04 May, 2009, 01:04:50
what was the exact package name, because i get the same error.

Thanks
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Thor on 04 May, 2009, 16:31:11
Try to download & install from here (http://www.keplerproject.org/luafilesystem/manual.html#installation)
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: madkid on 04 May, 2009, 19:28:42
ok well i fixed that one, but now i get...

[18:27:58] *** D:\RemoteApp\DiXBoT2600\scripts\DiXBoT.lua:255: module 'socket' not found:
   no field package.preload['socket']
   no file './socket.lua'
   no file '/usr/local/share/lua/5.1/socket.lua'
   no file '/usr/local/share/lua/5.1/socket/init.lua'
   no file '/usr/local/lib/lua/5.1/socket.lua'
   no file '/usr/local/lib/lua/5.1/socket/init.lua'
   no file '/usr/share/lua/5.1/socket.lua'
   no file '/usr/share/lua/5.1/socket/init.lua'
   no file './socket.so'
   no file '/usr/local/lib/lua/5.1/socket.so'
   no file '/usr/lib/lua/5.1/socket.so'
   no file '/usr/local/lib/lua/5.1/loadall.so'


lmao any ideas now?

Thanks
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Thor on 04 May, 2009, 19:39:03
You must do the same with luasocket. This is a bit more difficult, but ATAG made a good walkthrough :)
Download and unpack the package:
wget http://luaforge.net/frs/download.php/2664/luasocket-2.0.2.tar.gz
tar -xf luasocket-2.0.2.tar.gz

Download to an another folder the luasocket mod by PPK:
mkdir pxluasocket
cd pxluasocket
wget http://www.PtokaX.org/files/Libs-0.4.0.0RC6/PXLuaSocket-2.0.2-src.7z

If you don't have p7zip, install it:
apt-get install p7zip
Then unpack it:
p7zip -d PXLuaSocket-2.0.2-src.7z
cp -f -r src ../luasocket-2.0.2/

Then change folder:
cd ../luasocket-2.0.2
Here open the config file, and write lua's path. You can get it by:
$ whereis lua5.1
lua5: /usr/bin/lua5.1 /usr/include/lua5.1

So write it here:
#------
# Lua includes and libraries
#
#LUAINC=-I/usr/local/include/lua50
LUAINC=-I/usr/include/lua5.1      # This line was modified, and # sign was removed
#LUAINC=-Ilua-5.1.1/src

#------
# Compat-5.1 directory
#
#COMPAT=compat-5.1r5

#------
# Top of your Lua installation
# Relative paths will be inside the src tree
#
#INSTALL_TOP_SHARE=/usr/local/share/lua/5.0
#INSTALL_TOP_LIB=/usr/local/lib/lua/5.0
INSTALL_TOP_SHARE=/usr/share/lua/5.1 # local folder removed
INSTALL_TOP_LIB=/usr/lib/lua/5.1     # from here too

If done, then use make and make install commands to install it. After you do it, check it by:
lua -e "require('socket')"
command. If it don't write error, it's ready. :)
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: ?StIfFLEr?? on 04 May, 2009, 19:58:08
I think it will will to too much for a normal person to understand :P
Good going Hungarista.
Hope you get it right madkid.Best of luck :P
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: madkid on 04 May, 2009, 21:05:24
Quote from: ?StIfFLEr?? on 04 May, 2009, 19:58:08
I think it will will to too much for a normal person to understand :P
Good going Hungarista.
Hope you get it right madkid.Best of luck :P

lol this aint my first time runnign a hub, just my first time runnin a px on linux lol

Thanks thou :)
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: ?StIfFLEr?? on 04 May, 2009, 21:08:15
lol anyways it was not in any means for you it was for a normal person like me to get it understand ..
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: madkid on 04 May, 2009, 21:15:46
lolz :)
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Snooze on 08 May, 2009, 01:24:11
Wow!! Looks like you guys had some fun with DiXBoT and Linux :D
Sorry i wasnt arround and thanks to anyone helping out :)

/Snooze
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: The Undertaker on 28 October, 2009, 00:51:16
please tell me where i can get dixbot for linux. because i cant find link to it at dixbot site :-\
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Psycho_Chihuahua on 28 October, 2009, 17:35:02
Quote from: The Undertaker on 28 October, 2009, 00:51:16
please tell me where i can get dixbot for linux. because i cant find link to it at dixbot site :-\

that is because there is no "linux only" version - same one works for both platforms
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: The Undertaker on 28 October, 2009, 17:47:53
but in archive i see .dll's. linux wont work with them ??? maybe there some guide how to install it on linux?
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: The Undertaker on 28 October, 2009, 19:26:32
i got this error while trying to load script

28.10.2009 21:25:33 - /home/undertaker/PtokaX/scripts/DiXBoT.lua: bad header in precompiled chunk
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Psycho_Chihuahua on 28 October, 2009, 19:39:01
try by disabling the greeting plugin by opening the following File: PtokaX/scripts/DiXBoT/tCoreConfig.lua

in that file search for:
["Greeting"] = true,
and change it to:
["Greeting"] = false,

that should do the trick

Edit: Btw which version of DiXBoT are you running?
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: The Undertaker on 28 October, 2009, 20:09:12
this doesnt helped. i'm using v2.1 Build 2927
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: The Undertaker on 28 October, 2009, 20:31:40
i guess it not loading because its compiled for windows. have no idea how topic starter get it to work :-X
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Psycho_Chihuahua on 28 October, 2009, 20:32:53
I use it on a linux machine and it's running fine
Your Build 2927 is ancient the latest (available via autoupdate) is 2961


Edit: try pasting these updated files over your ones - should bring you uptodate --> DiXBoT-Update-2961.rar (http://85.88.31.133/DiXBoT-Build-2961.rar)
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: The Undertaker on 28 October, 2009, 20:51:10
Quote from: Psycho_Chihuahua on 28 October, 2009, 20:32:53
Edit: try pasting these updated files over your ones - should bring you uptodate --> DiXBoT-Update-2961.rar (http://85.88.31.133/DiXBoT-Build-2961.rar)
same error :( i'm trying it on PtokaX 0.4.1.1. whats your version?
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Psycho_Chihuahua on 28 October, 2009, 20:55:48
0.4.1.1...

Have you installed the needed things on your linux box already? Which linux distro (i have it running on debian which should be the same as on ubuntu), on CentOS i had no luck


Edit: on Debian i did a cheap one by installing everything that had to do with lua ... example

apt-get update && apt-get install lua*

it's a dirty job and you end up by installing libs that are not needed but i didnt have time to go through the list one by one at the time
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: PPK on 28 October, 2009, 21:09:53
Quote from: The Undertaker on 28 October, 2009, 20:31:40
i guess it not loading because its compiled for windows.
Shorted versions is... it is not loading because it is compiled ;D Compiled scripts multi-platform compatibility is very limited -> http://forum.ptokax.org/index.php?topic=8452.0 ::) In short, you need similar lua version (5.1.x) and same cpu architecture (x86) to run that compiled crap.
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: The Undertaker on 29 October, 2009, 00:30:55
im running it on latest ubuntu server 64bit. so it wont work on 64bit?
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: PPK on 29 October, 2009, 00:56:45
No, lua script compiled for 32 bit is not working on 64bit  ::)
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Snooze on 30 October, 2009, 22:55:18
Really? I have a few x64 servers running my script without issues? Granted, these are Windows Servers and not Linux.. Though one would think a nix box should be able to do the same, right?

/Snooze
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: The Undertaker on 21 December, 2009, 05:14:11
so is it possible to compile dixbot for x64?
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Psycho_Chihuahua on 21 December, 2009, 16:40:48
Snooze and myself will be adressing this in the near future. There is a problem running 32bit compiled files under 64bit linux.
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: bastya_elvtars on 21 December, 2009, 19:15:42
Install lua in a 64-bit linux system even on vmware/Virtualpc/virtualbox etc. (whichever provides an x86_64 guest) and you are teh winrar. :)
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: busabusa on 27 December, 2009, 20:03:43
Hey people! I may sound ridiculous but I am not able to open Dixbot's lua scripts in gedit  :(

Quote
Could not open the file /home/john/Desktop/D/Dow?d 2927/scripts/DiXBoT.lua.

gedit has not been able to detect the character coding.
Please check that you are not trying to open a binary file.
Select a character coding from the menu and try again.

I am a nood. So please give a more clear explanation of how to run Dixbot on linux.
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: busabusa on 27 December, 2009, 20:07:39
Besides please tell me how to run a lua script for PtokaX. :( I am that newbie.

Thanks in advance.
Title: Re: DIXBOT on PX4.1.1.1 linux ubuntu 8.10
Post by: Psycho_Chihuahua on 31 December, 2009, 06:45:35
Quote from: busabusa on 27 December, 2009, 20:03:43
Hey people! I may sound ridiculous but I am not able to open Dixbot's lua scripts in gedit  :(

I am a nood. So please give a more clear explanation of how to run Dixbot on linux.

well that sounds rather obviouse that you cant open the file...... thats the whole idea of compiling -.-