DIXBOT on PX4.1.1.1 linux ubuntu 8.10
 

DIXBOT on PX4.1.1.1 linux ubuntu 8.10

Started by Hades, 08 March, 2009, 04:10:29

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hades

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?

Thor


Hades

heheh no brainer thanx !
Innstalled libluas and all works like a charm ! Thanx!

madkid

what was the exact package name, because i get the same error.

Thanks

Thor


madkid

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

Thor

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. :)

?StIfFLEr??

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

madkid

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 :)

?StIfFLEr??

lol anyways it was not in any means for you it was for a normal person like me to get it understand ..


Snooze

Wow!! Looks like you guys had some fun with DiXBoT and Linux :D
Sorry i wasnt arround and thanks to anyone helping out :)

/Snooze

The Undertaker

please tell me where i can get dixbot for linux. because i cant find link to it at dixbot site :-\

Psycho_Chihuahua

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
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

The Undertaker

but in archive i see .dll's. linux wont work with them ??? maybe there some guide how to install it on linux?

The Undertaker

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

Psycho_Chihuahua

#16
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?
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

The Undertaker

this doesnt helped. i'm using v2.1 Build 2927

The Undertaker

i guess it not loading because its compiled for windows. have no idea how topic starter get it to work :-X

Psycho_Chihuahua

#19
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
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

The Undertaker

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
same error :( i'm trying it on PtokaX 0.4.1.1. whats your version?

Psycho_Chihuahua

#21
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
PtokaxWiki ?PtokaX Mirror + latest Libs

01100001011011000111001101101111001000000110101101101110011011110111011101101110001000000110000101110011001000000101010001101111011010110110111101101100011011110111001101101000

PPK

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.
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

The Undertaker

im running it on latest ubuntu server 64bit. so it wont work on 64bit?

PPK

No, lua script compiled for 32 bit is not working on 64bit  ::)
"Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris." - Larry Wall

SMF spam blocked by CleanTalk