installing ape from source on centos5 problem

102 views
Skip to first unread message

Matija Hiti

unread,
Mar 16, 2010, 1:04:36 PM3/16/10
to ape-p...@googlegroups.com
Hi,

I tried to compile the git version on my centos 5 machine. However, the process hangs at:

gcc -D_GNU_SOURCE -Wall -O2 -minline-all-stringops -rdynamic -I ./deps/udns-0.0.9/ src/entry.c src/sock.c src/hash.c src/handle_http.c src/cmd.c src/users.c src/channel.c src/config.c src/json.c src/json_parser.c src/plugins.c src/http.c src/extend.c src/utils.c src/ticks.c src/base64.c src/pipe.c src/raw.c src/events.c src/event_kqueue.c src/event_epoll.c src/transports.c src/servers.c src/dns.c src/sha1.c src/log.c src/parser.c -o bin/aped -ldl -lm -lpthread ./deps/udns-0.0.9/libudns.a -I ./deps/udns-0.0.9/
gcc -D_GNU_SOURCE -Wall -O2 -shared -fPIC -rdynamic -Wl,-soname,libmod_spidermonkey.so -o lib/libmod_spidermonkey.so libape-spidermonkey.c -I../deps/js/src/dist/include/ -L../deps/js/src/ -ljs_static -lstdc++ -L./deps/mysac/ -I./deps/mysac/ -lmysac -lmysqlclient_r
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
make: *** [modules] Error 1
These are the mysql packages on the machine:

rpm -qa | grep mysql
mysql-devel-5.0.77-4.el5_4.2
libdbi-dbd-mysql-0.8.1a-1.2.2
php-mysql-5.1.6-24.el5_4.5
mysql-5.0.77-4.el5_4.2
mysql-server-5.0.77-4.el5_4.2
mysql-connector-odbc-3.51.12-2.2

Can someone please give me a clue how to proceed this problem? a

Best,
Matija

Nicolas Trani

unread,
Mar 16, 2010, 4:37:42 PM3/16/10
to ape-p...@googlegroups.com
Hi,

it seems that APE cannot find mysql header file, try to edit the Makefile in the modules directory and at line 7 try to add -L<path to your mysql library> (it should be /usr/lib/mysql)

I had similar issue on a 64bit CentOS here is what i changed in the modules Makefile :

MYSQL_FLAGS = -L./deps/mysac/ -L/usr/lib64/mysql -I./deps/mysac/ -lmysac -lmysqlclient_r

Regards.
-- 
Nicolas Trani - R&D Web Engineer
Weelya - Improve the web
Tel : 04 67 169 778
http://www.weelya.com / http://www.ape-project.org

Matija Hiti

unread,
Mar 16, 2010, 5:48:00 PM3/16/10
to ape-p...@googlegroups.com
Thank you, Nicolas, it worked.  I got my git version up and running now.

Matija

2010/3/16 Nicolas Trani <n.t...@weelya.com>
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

Reply all
Reply to author
Forward
0 new messages