collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: AOkex  (Read 13708 times)

0 Members and 1 Guest are viewing this topic.

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
AOkex
« on: February 04, 2007, 10:07:28 pm »
Hi,

Can someone please tell me step by step how to do aokex?
Like where do upload it, do i do it through ssh, if so how etc..

I have had trouble for over 2months now, i bought a dedicated server spacifically to run the bot and move my websites onto, and i am unable to get the bot working

My host say they have installed aokex 3times nwo and yet i am still getting errors and the bot is not loading.
They will not help em anymore and told em to get the dev team of aokex to help em or install it as they will not help anymore.

I have no idea how to install aokex as last i tried it just didnt work..
do i need to upload to root? ftp or ssh? binary or ascii? i changed it to openssl as per the readme but i dont know how to install it from there..

can someone please get really dumb on me and give me a step by step on how to do it as i am starting to pull my hair out and wasting money on a server for a bot i cant use..

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOkex
« Reply #1 on: February 04, 2007, 11:03:50 pm »
Step 1 into getting help would be to give us the information we need to help you.

You say you encounter errors, but you do not specify in any way nor show the exact errors leaving us guessing.
BeBot Founder and Fixer Kingpin

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #2 on: February 04, 2007, 11:25:17 pm »
Thats because i asked for step by step on how to install it, i want to start fresh..

The error i am getting at the moment is
php: symbol lookup error:
/usr/local/lib/php/extensions/no-debug-non-zts-20020429/aokex.so: undefined
symbol: __gmp_set_memory_functions

Someone mentioned to me that this is a gmp error and i need to recompile aokex to work with gmp..
I have no idea how to do this and as the host installed it the first time i dont know where the files are or anything.

So i wanted ot start fresh knowing how to do it step by step and changing it to work with openssl

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOkex
« Reply #3 on: February 05, 2007, 04:36:15 pm »
Which OS/Distro is this and which version?

It should not be necessary to recompile aokex, however you appear to be missing the actual gmp library.
BeBot Founder and Fixer Kingpin

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #4 on: February 06, 2007, 01:21:55 pm »
using o.2 and it is running ona  cent-os vps

My php -m doesnt actually show gmp and yet everytime i ask my host to re-install aokex for me they say it is done and working fine..

i have openssl in php -m so if anyone can give me step by step on how to install aokex again i can do it with openssl instead.
i tried phpize like the readme said but i must be doing something wrong.

if someone can tell me how to do it and where to actually upload the aokex files too i can prolly get it working with openssl

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: AOkex
« Reply #5 on: February 06, 2007, 02:12:15 pm »
You keep saying that they tell you it's working fine. Once again, have you asked them whether they've compiled it with GMP instead of OpenSSL? I could never get it working with OpenSSL, GMP worked fine for me.
Eternalist
General of The Syndicate

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: AOkex
« Reply #6 on: February 06, 2007, 06:28:42 pm »
Make sure GMP is installed properly first of all.

yum install gmp gmp-devel

The php gmp module is different from aokex using the actual gmp library, you should not confuse these two different. One is a module in php providing gmp functions inside of php, the other is the OS level library which provides running programs access to it.
BeBot Founder and Fixer Kingpin

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #7 on: February 06, 2007, 11:03:55 pm »
Quote
[root@***** ~]# yum install gmp gmp-devel
Setting up Install Process
Setting up repositories
update                    100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
addons                    100% |=========================|  951 B    00:00
extras                    100% |=========================| 1.1 kB    00:00
Reading repository metadata in from local files
primary.xml.gz            100% |=========================|  78 kB    00:00
update    : ################################################## 227/227
Added 15 new packages, deleted 0 old in 0.71 seconds
primary.xml.gz            100% |=========================|  34 kB    00:00
extras    : ################################################## 131/131
Added 7 new packages, deleted 0 old in 0.20 seconds
Parsing package install arguments
Nothing to do

I am gonna get really noobie on you all..
Done that what next?

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #8 on: February 07, 2007, 02:49:59 am »
ok i tried to do it myself,
i uploaded the php-aokex folder to my bebot folder

Logged into SSH
went into the bebot/php-aokex folder and done the following

phpize
./configure --with-aokex=shared
make

everything seemed fine untill i done

make install

and i got this error

[ecu@**** php-aokex]$ make install
Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20020429/
cp: cannot create regular file `/usr/local/lib/php/extensions/no-debug-non-zts-20020429/#INST@29728#': Permission denied
make: *** [install-modules] Error 1


The only thing i can come up with is i am not logged in as root only as a user i have created

Any help would be great




Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOkex
« Reply #9 on: February 07, 2007, 07:41:17 am »
That user obviously does not have enough rights to install the newly compiled PHP module. You can try running "make install" through sudo, or use a root account. Or generally a user that has permission to write in /usr/local/lib/php/extensions/no-debug-non-zts-20020429/. You can check the permissions on that folder with "ls -l /usr/local/lib/php/extensions/no-debug-non-zts-20020429/", or, if you are using ACLs, with getfacl.
It would probably be unwise to change permissions of that folder, but you may check what groups it belongs to, and see if you can add the newly created user to that group.
« Last Edit: February 07, 2007, 07:43:08 am by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #10 on: February 07, 2007, 10:55:24 am »
ok that made no sense to me pusikas :)
LIke i said earlier in thread i am a linux noob

my root account only shows
directadmin
setup.sh

when logged into ssh

I will mail my host about setting permissions for the ecu user but other than that i dont know how to fix it

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOkex
« Reply #11 on: February 07, 2007, 01:43:11 pm »
OK, simpler then. If you have a root user, use it to do "make install". Do not use just any user, you need to do this with one that has sufficient permission. Root can always do just about everything, so, if you do not know how to give enough rights to another user, try running the command that gave you trouble with the root user.
Luuv  Bot-Keeper of Vengeance ^^*

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #12 on: February 07, 2007, 06:38:21 pm »
Yes but as my root only sees directadmin and setup.sh when logged into ssh how am i to get to the directory with bebot and run the make install?

Offline pusikas

  • BeBot Apprentice
  • ***
  • Posts: 161
  • Karma: +0/-0
Re: AOkex
« Reply #13 on: February 07, 2007, 07:46:34 pm »
Can't you directly change to that directory? And what do you mean, you only see these two files? That you are somehow locked into a directory and cannot get out? Try to enter "pwd" and see if it shows you the directory that you are in.
Also, what you "see" when you type "ls" or "dir" depends on certain setting for that user. Try a "ls -alF" on your root account for example, and you should see a lot more files. By default, a linux box does not show files that start with a dot for example.

Try to log your non-root user, do as you said until the "make" has finished, but before the "make install". Type "pwd" and write down the directory it shows. Log in the root user and do a "cd <directory you wrote down>". Unless your root user is in some kind of sandbox, this should directly get you into the right directory, so you only have to do the "make install" to get aokex installed.

Another thing you can try is log the non-root user, and try a "sudo make install". Depending on your configuration, you should be asked for your root password - the command is then executed with root-rights.
Or you can try to switch to the root user before "make install" by typing "su -". Again, you should be asked for the root-password, and afterwards be in the same directory, just as user root. do the "make install" then.
« Last Edit: February 07, 2007, 07:49:29 pm by pusikas »
Luuv  Bot-Keeper of Vengeance ^^*

Offline Keepbrave

  • BeBot User
  • **
  • Posts: 31
  • Karma: +0/-0
    • European Community United
Re: AOkex
« Reply #14 on: February 07, 2007, 09:20:59 pm »
Ok, i half got it working

I done the su like you said before runnin make install and that worked
But the bot still didnt load with the same error above.

So i re-done it under openssl and now i get a new error aftr starting the bot

it goes somehtign liek this:

[LOGIN] [STATUS] Connecting
[LOGIN] [STATUS] Authenticating
Using AOKex for login key generation
[LOGIN] [RESULT] Error
[LOGIN] [STATUS] Loggin In
AOChat: not expecting login.

i checked my conf fiel and the account details are fine so i am unsure what it is now
 

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 286
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal