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?
Install luafilesystem package? ;D
heheh no brainer thanx !
Innstalled libluas and all works like a charm ! Thanx!
what was the exact package name, because i get the same error.
Thanks
Try to download & install from here (http://www.keplerproject.org/luafilesystem/manual.html#installation)
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
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. :)
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
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 :)
lol anyways it was not in any means for you it was for a normal person like me to get it understand ..
lolz :)
Wow!! Looks like you guys had some fun with DiXBoT and Linux :D
Sorry i wasnt arround and thanks to anyone helping out :)
/Snooze
please tell me where i can get dixbot for linux. because i cant find link to it at dixbot site :-\
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
but in archive i see .dll's. linux wont work with them ??? maybe there some guide how to install it on linux?
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
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?
this doesnt helped. i'm using v2.1 Build 2927
i guess it not loading because its compiled for windows. have no idea how topic starter get it to work :-X
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)
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?
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
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.
im running it on latest ubuntu server 64bit. so it wont work on 64bit?
No, lua script compiled for 32 bit is not working on 64bit ::)
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
so is it possible to compile dixbot for x64?
Snooze and myself will be adressing this in the near future. There is a problem running 32bit compiled files under 64bit linux.
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. :)
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.
Besides please tell me how to run a lua script for PtokaX. :( I am that newbie.
Thanks in advance.
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 -.-