Server Help

ASSS Questions - Building pymod

D1st0rt - Wed Jun 30, 2004 5:35 pm
Post subject: Building pymod
When I try to build pymod, I get
LINK : fatal error LNK1104: cannot open file 'python23.lib'

any ideas?
50% Packetloss - Wed Jun 30, 2004 5:41 pm
Post subject:
you need python on your comp. Im told that you can compile asss without pythod support?
D1st0rt - Wed Jun 30, 2004 5:44 pm
Post subject:
EDIT: NM, I set the include for the compiler, not the linker
linux_terror - Sat Jul 03, 2004 7:16 pm
Post subject: Python
You can compile asss without python by uncommenting src/Makefile line 36....


before
#no_python = yes

after
no_python = yes


you can also toggle Mysql and DB4 functionality this way.

note:
I have noticed that with mysql 4.0.20, the lib paths are not correct...this is due to mysql changing the libs directory to /var/lib/mysql.....change your paths all!! The libs are no longer in $(mysql_home). This has been a major mysql issue for compiling all mysql dependant programs on linux(not just an ASSS problem). I do believe it effects anything after mysql 3.23.
D1st0rt - Sat Jul 03, 2004 11:14 pm
Post subject:
thats ok though, I wanted pymod, and I got it to build. Now I just need to do 2 things:
1. learn python
2. find the commands that load the py modules
Anonymous - Sun Jul 04, 2004 6:31 pm
Post subject:
I downloaded Python a while back but could never figure out how to make it compile. I edited the paths in the Makefile but I don't know if they are correct:
Quote:
PYTHON_INC = /usr/local/Python-2.3.2/Include
PYTHON_LIB = /usr/local/lib/python2.3

Quote:
$ make pymod.o
gcc -pipe -I. -D_REENTRANT -D_GNU_SOURCE -fPIC -g -Wall -fpedantic -I/usr/local/Python-2.3.2/Include -c -o pymod.o pymod.c
In file included from pymod.c:4:
/usr/local/Python-2.3.2/Include/Python.h:8:22: pyconfig.h: No such file or directory
/usr/local/Python-2.3.2/Include/Python.h:21:2: #error "limits.h is required by std C -- why isn't HAVE_LIMITS_H defined?"
In file included from /usr/local/Python-2.3.2/Include/Python.h:48,
from pymod.c:4:
/usr/local/Python-2.3.2/Include/pyport.h:4:48: pyconfig.h: No such file or directory
/usr/local/Python-2.3.2/Include/pyport.h:536:2: #error "could not set LONG_MAX in pyport.h"
make: *** [pymod.o] Error 1

Also trying a py module using prebuilt binaries doesn't do much but kill parts of the server. A lot of stuff like this seen in the log:
Quote:
E <pymod> python error building args for callback CB_CHATMSG

Anonymous - Sun Jul 04, 2004 6:34 pm
Post subject:
Sorry for double post.
I think the command to load a py module is:
?insmod <py> whatever
No need for .py extension, ?insmod it twice if you get an error the first time (generating .pyc I believe).
D1st0rt - Mon Jul 05, 2004 8:14 pm
Post subject:
I know in catids' vs project, I had to add util.c to it
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group