Server Help

ASSS Questions - error durring make

SyrusMX - Tue Sep 27, 2005 3:06 pm
Post subject: error durring make
/usr/bin/ld: cannot find -ldb-4
collect2: ld returned 1 exit status
make: *** [../build/dbtool] Error 1
i88gerbils - Tue Sep 27, 2005 4:12 pm
Post subject:
This looks like it cannot find Berkeley DB. Can you check to see what directory it is in? Or if you don't want to build in the db utilities for BDB you can skip them (it's all optional i believe). Just make sure that:

Code: Show/Hide

have_bdb := no


My system.mk file:
Code: Show/Hide

DB_HOME = /usr
# these probably won't have to change:
DB_INC = $(DB_HOME)/include
DB_LIB = $(DB_HOME)/lib
DB_CFLAGS = -I$(DB_INC)
ifneq ($(link_db_statically),yes)
# you might have to change -ldb-4 to -ldb4 in the next line:
DB_LDFLAGS = -L$(DB_LIB) -Wl,-rpath,$(DB_LIB) -ldb-4
else
DB_LDFLAGS = $(DB_LIB)/libdb.a
endif


You'll want to change DB_HOME to wherever it bdb is.
Cyan~Fire - Tue Sep 27, 2005 7:10 pm
Post subject:
Windows or Linux?
Purge - Tue Sep 27, 2005 7:14 pm
Post subject:
Looks like Linux. sa_tongue.gif
Grelminar - Wed Sep 28, 2005 3:10 am
Post subject:
Note this line in system.mk:

Code: Show/Hide
# you might have to change -ldb-4 to -ldb4 in the next line:


The name of the library varies on different systems. If you're confident that berkeley db 4.x is actually installed, try changing the name. If you're not confident, then figure out how to install it.
SyrusMX - Wed Sep 28, 2005 8:08 am
Post subject:
Loading modules...
Unrecoverable error (5): Error in modules.conf: Can't open file 'conf/modules.conf' for reading

My frist instinct was to chmod the directory and file, didn't work.
Dr Brain - Wed Sep 28, 2005 8:52 am
Post subject:
How are you starting ASSS?
SyrusMX - Thu Sep 29, 2005 4:52 am
Post subject:
./asss
i88gerbils - Thu Sep 29, 2005 8:39 am
Post subject:
Try running it from the base directory.. Remember to edit ASSSHOME.
Maverick - Thu Sep 29, 2005 10:04 am
Post subject:
i88gerbils wrote:
ASSSHOME

That sounds like a whole other thing. haha icon_lol.gif
You friggin ASSSHOME!
Dr Brain - Thu Sep 29, 2005 10:32 am
Post subject:
If you don't care about recycles, you can do bin/asss.
SyrusMX - Thu Sep 29, 2005 2:27 pm
Post subject:
I edited ASSSHOME to /home/jcgreen/public_html/as3/asss-1.4.0 then ran ./scripts/run-asss
Code: Show/Hide
*** asss started
asss 1.4.0 built at Sep 27 2005 14:03:47
Loading modules...
I <cmod> loading C module 'unixsignal' from 'internal'
I <cmod> loading C module 'deadlock' from 'internal'
I <cmod> loading C module 'prng' from 'internal'
I <cmod> loading C module 'logman' from 'internal'
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named os
ImportError: No module named cPickle
ImportError: No module named exec
Unrecoverable error (5): Error in loading module '<py> exec'
*** asss exited: error loading modules

Cyan~Fire - Thu Sep 29, 2005 3:55 pm
Post subject:
Just remove <py> exec from modules.conf for now, you probably won't be using it. (It allows you to run python commands in-game.)
SyrusMX - Fri Sep 30, 2005 4:27 pm
Post subject:
Commented '<py> exec' from modules.conf, ran ./scripts/run-asss:
Code: Show/Hide
root@fliggle [/home/jcgreen/public_html/as3/asss-1.4.0]# ./scripts/run-asss
*** asss started
asss 1.4.0 built at Sep 27 2005 14:03:47
Loading modules...
I <cmod> loading C module 'unixsignal' from 'internal'
I <cmod> loading C module 'deadlock' from 'internal'
I <cmod> loading C module 'prng' from 'internal'
I <cmod> loading C module 'logman' from 'internal'
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named os
ImportError: No module named cPickle
I <cmod> loading C module 'mainloop' from 'internal'
I <cmod> loading C module 'config' from 'internal'
I <cmod> loading C module 'playerdata' from 'internal'
I <cmod> loading C module 'lagdata' from 'internal'
I <cmod> loading C module 'bw_default' from 'internal'
I <cmod> loading C module 'net' from 'internal'
D <net> listening on 0.0.0.0:5000 (0)
I <cmod> loading C module 'chatnet' from 'internal'
I <cmod> loading C module 'arenaman' from 'internal'
I <cmod> loading C module 'mapdata' from 'internal'
I <cmod> loading C module 'capman' from 'internal'
I <cmod> loading C module 'mapnewsdl' from 'internal'
I <cmod> loading C module 'core' from 'internal'
I <cmod> loading C module 'clientset' from 'internal'
I <cmod> loading C module 'persist' from 'scoring'
I <cmod> loading C module 'idle' from 'internal'
I <cmod> loading C module 'cmdman' from 'internal'
I <cmod> loading C module 'chat' from 'internal'
I <cmod> loading C module 'stats' from 'scoring'
I <cmod> loading C module 'basicstats' from 'scoring'
I <cmod> loading C module 'log_console' from 'internal'
I <cmod> loading C module 'log_file' from 'internal'
I <cmod> loading C module 'log_sysop' from 'internal'
I <cmod> loading C module 'log_staff' from 'internal'
I <cmod> loading C module 'auth_file' from 'internal'
I <cmod> loading C module 'security' from 'security'
I <cmod> loading C module 'auth_ban' from 'internal'
I <cmod> loading C module 'banners' from 'internal'
I <cmod> loading C module 'game_timer' from 'internal'
I <cmod> loading C module 'flagcore' from 'internal'
I <cmod> loading C module 'balls' from 'internal'
I <cmod> loading C module 'bricks' from 'internal'
I <cmod> loading C module 'koth' from 'internal'
I <cmod> loading C module 'fm_normal' from 'internal'
I <cmod> loading C module 'game' from 'internal'
I <cmod> loading C module 'lagaction' from 'internal'
I <cmod> loading C module 'cfghelp' from 'internal'
I <cmod> loading C module 'filetrans' from 'internal'
I <cmod> loading C module 'quickfix' from 'internal'
I <cmod> loading C module 'playercmd' from 'internal'
I <cmod> loading C module 'admincmd' from 'internal'
I <cmod> loading C module 'help' from 'internal'
I <cmod> loading C module 'sendfile' from 'internal'
I <cmod> loading C module 'autowarp' from 'funky'
I <cmod> loading C module 'bricklayer' from 'funky'
I <cmod> loading C module 'buy' from 'internal'
I <cmod> loading C module 'fake' from 'internal'
I <cmod> loading C module 'autoturret' from 'funky'
I <cmod> loading C module 'record' from 'funky'
I <cmod> loading C module 'enc_cont' from 'security'
I <cmod> loading C module 'enc_vie' from 'internal'
I <cmod> loading C module 'pymod' from 'pymod'
E <pymod> can't import cPickle
D <main> entering main loop
D <mapnewsdl> news file 'news.txt' reread
it hung there, didn't show up on the zone list, nothing. Ctrl C shut it down, then I tried to run bin/asss and
Code: Show/Hide
root@fliggle [/home/jcgreen/public_html/as3/asss-1.4.0/bin]# ./bin/asss
asss 1.4.0 built at Sep 27 2005 14:03:47
Loading modules...
Unrecoverable error (5): Error in modules.conf: Can't open file 'conf/modules.conf' for reading

Muskrat - Fri Sep 30, 2005 4:29 pm
Post subject:
For a quick fix, uncomment all the <py> modules and pymod, I'm not sure why, but that is the problem.

Python version problem perhaps?
SyrusMX - Fri Sep 30, 2005 4:57 pm
Post subject:
Uncomment? ok...
Code: Show/Hide
*** asss started
asss 1.4.0 built at Sep 27 2005 14:03:47
Loading modules...
I <cmod> loading C module 'unixsignal' from 'internal'
I <cmod> loading C module 'deadlock' from 'internal'
I <cmod> loading C module 'prng' from 'internal'
I <cmod> loading C module 'logman' from 'internal'
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named os
ImportError: No module named cPickle
ImportError: No module named fm_password
Unrecoverable error (5): Error in loading module '<py> fm_password'
*** asss exited: error loading modules

How do I figure which verson of Pyhon Im running?
Muskrat - Fri Sep 30, 2005 5:35 pm
Post subject:
I meant comment them all, sorry. icon_redface.gif
SyrusMX - Fri Sep 30, 2005 6:02 pm
Post subject:
Uncommented <py> lines:
Code: Show/Hide
root@fliggle [/home/jcgreen/public_html/as3/asss-1.4.0]# ./scripts/run-asss
*** asss started
asss 1.4.0 built at Sep 27 2005 14:03:47
Loading modules...
I <cmod> loading C module 'unixsignal' from 'internal'
I <cmod> loading C module 'deadlock' from 'internal'
I <cmod> loading C module 'prng' from 'internal'
I <cmod> loading C module 'logman' from 'internal'
I <cmod> loading C module 'mainloop' from 'internal'
I <cmod> loading C module 'config' from 'internal'
I <cmod> loading C module 'playerdata' from 'internal'
I <cmod> loading C module 'lagdata' from 'internal'
I <cmod> loading C module 'bw_default' from 'internal'
I <cmod> loading C module 'net' from 'internal'
D <net> listening on 0.0.0.0:5000 (0)
I <cmod> loading C module 'chatnet' from 'internal'
I <cmod> loading C module 'arenaman' from 'internal'
I <cmod> loading C module 'mapdata' from 'internal'
I <cmod> loading C module 'capman' from 'internal'
I <cmod> loading C module 'mapnewsdl' from 'internal'
I <cmod> loading C module 'core' from 'internal'
I <cmod> loading C module 'clientset' from 'internal'
I <cmod> loading C module 'persist' from 'scoring'
I <cmod> loading C module 'idle' from 'internal'
I <cmod> loading C module 'cmdman' from 'internal'
I <cmod> loading C module 'chat' from 'internal'
I <cmod> loading C module 'stats' from 'scoring'
I <cmod> loading C module 'basicstats' from 'scoring'
I <cmod> loading C module 'log_console' from 'internal'
I <cmod> loading C module 'log_file' from 'internal'
I <cmod> loading C module 'log_sysop' from 'internal'
I <cmod> loading C module 'log_staff' from 'internal'
I <cmod> loading C module 'auth_file' from 'internal'
I <cmod> loading C module 'security' from 'security'
I <cmod> loading C module 'auth_ban' from 'internal'
I <cmod> loading C module 'banners' from 'internal'
I <cmod> loading C module 'game_timer' from 'internal'
I <cmod> loading C module 'flagcore' from 'internal'
I <cmod> loading C module 'balls' from 'internal'
I <cmod> loading C module 'bricks' from 'internal'
I <cmod> loading C module 'koth' from 'internal'
I <cmod> loading C module 'fm_normal' from 'internal'
I <cmod> loading C module 'game' from 'internal'
I <cmod> loading C module 'lagaction' from 'internal'
I <cmod> loading C module 'cfghelp' from 'internal'
I <cmod> loading C module 'filetrans' from 'internal'
I <cmod> loading C module 'quickfix' from 'internal'
I <cmod> loading C module 'playercmd' from 'internal'
I <cmod> loading C module 'admincmd' from 'internal'
I <cmod> loading C module 'help' from 'internal'
I <cmod> loading C module 'sendfile' from 'internal'
I <cmod> loading C module 'autowarp' from 'funky'
I <cmod> loading C module 'bricklayer' from 'funky'
I <cmod> loading C module 'buy' from 'internal'
I <cmod> loading C module 'fake' from 'internal'
I <cmod> loading C module 'autoturret' from 'funky'
I <cmod> loading C module 'record' from 'funky'
I <cmod> loading C module 'enc_cont' from 'security'
I <cmod> loading C module 'enc_vie' from 'internal'
D <main> entering main loop
D <mapnewsdl> news file 'news.txt' reread
D <persist> collecting all persistent data and syncing to disk
D <persist> collecting all persistent data and syncing to disk
D <persist> collecting all persistent data and syncing to disk
D <persist> collecting all persistent data and syncing to disk
I'm not even sure if the server is up at this point. It doesn't show in the zone directory though, so I assume not. All it does is spam 'D <persist> collecting all persistent data and syncing to disk' over and over untill I ctrl C to kill it.
i88gerbils - Fri Sep 30, 2005 7:57 pm
Post subject:
Congratulations. You're running ASSS.

This recent thread is pretty much relevant to where you are at right now. It also contains a link to the Server Setup page (in need of beautification & reorganization).

Tip: follow the links.
SyrusMX - Fri Sep 30, 2005 9:36 pm
Post subject:
Word. This thread can be closed. Thanks guys.
Cyan~Fire - Fri Sep 30, 2005 11:16 pm
Post subject:
Do you have Python24 installed? Believe me, you'll want to get pymod running.
SyrusMX - Sat Oct 01, 2005 8:15 am
Post subject:
a) wtf is python24
b) how do i figure it out?
3) why?
Solo Ace - Sat Oct 01, 2005 9:08 am
Post subject:
By "Python24" Cyan means "Python 2.4" where 2.4 would be the version number.

Type "python -V", this will print the version of the current python installaton on your system.

Where are questions 1 and 2?
SyrusMX - Sat Oct 01, 2005 9:26 am
Post subject:
2.2.3, where do I get 2.4?
Purge - Sat Oct 01, 2005 9:32 am
Post subject:
http://python.org/2.4/
Cyan~Fire - Sat Oct 01, 2005 9:56 am
Post subject:
Syrus wrote:
3) why?

Because if you're planning on writing modules, they should be in Python, since Python will not crash the server. The pre-written fg_wz and fg_turf (warzone and turf) are also written in python already.
Bak - Sat Oct 01, 2005 2:57 pm
Post subject:
I wonder if using c++ and exception handling will work faster than using python with the same functionality.
Cyan~Fire - Sun Oct 02, 2005 12:39 am
Post subject:
It would probably be a bit faster, but Python is a great scripting language anyway. It's much, much easier just to throw something together in Python than to use C++.
Dr Brain - Sun Oct 02, 2005 10:16 am
Post subject:
I agree. Mostly because it's very difficult to use C++ in ASSS.

If you meant C, then I find that hard to believe.
D1st0rt - Sun Oct 02, 2005 1:33 pm
Post subject:
I'm guessing using the JNI would be too slow?
Bak - Sun Oct 02, 2005 11:27 pm
Post subject:
it's not very difficult to use c++ with ASSS, just extern "C" the module function
Dr Brain - Mon Oct 03, 2005 8:43 am
Post subject:
I tried that, but I ran in to some other errors. I forget what they were now. I was able to get some helper functions in C++, but never a whole module.
Bak - Mon Oct 03, 2005 3:20 pm
Post subject:
you just need to cast everything. Like when you're getting the chat interface in the module function do

chat = (Ichat*)mm->getInterface(...);

I've made several modules in c++
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group