I hope this will help you. I just successfully built APE 1.1.2 on CentOS 6.4 32 
bits with MySQL support. Here's the steps I used, all using root:

Install dependencies --> yum install gcc-c++ zip mysql-devel
Edit modules/Makefile in the APE folder you downloaded. You need to tell APE 
where the MySQL lib are in CentOS
Remplace :
MYSQL_FLAGS = -L./deps/mysac/ -I./deps/mysac/ -lmysac -lmysqlclient_r
With:
MYSQL_FLAGS = -L./deps/mysac/ -L/usr/lib/mysql -I./deps/mysac/ -lmysac 
-lmysqlclient_r
For 64 bits, it should be:
MYSQL_FLAGS = -L./deps/mysac/ -L/usr/lib64/mysql -I./deps/mysac/ -lmysac 
-lmysqlclient_r
You can now build --> ./build.sh

Thanks to 
http://redrokk.com/2012/06/16/installing-ape-streaming-server-tutorial/ for the 
edit tip. I had this error without it (and no MySQL) : 

        /usr/bin/ld: cannot find -lmysqlclient_r



Hope this will help you :-)

  - Louis


Le 2013-10-02 à 08:58, Pablo Tejada <[email protected]> a écrit :

> Can you post a list of the mysql packages installed on your machine?
> 
> On Oct 2, 2013 7:49 AM, "Yaron Kufert" <[email protected]> wrote:
> I am lost...
> 
> I've installed version 1.1.2 from gitub  and managed to build it 
> successfully, but the mysql connection fails:
> 
>  ./aped: symbol lookup error: ../modules/lib/libmod_spidermonkey.so: 
> undefined symbol: scramble
> 
> 
> On 1 October 2013 21:13, Pablo Tejada <[email protected]> wrote:
> Yeah, actually my host is running on centOS 6.x 64bit and can successfully 
> build the apr server without problems. Male you have all the required 
> dependencies like mysql-devel
> 
> yum mysql mysql-devel
> 
> Should do, but im not if your suppose to get an specific version. On my 
> server it just works.
> 
> On Oct 1, 2013 1:33 PM, "Yaron Kufert" <[email protected]> wrote:
> I've tried to build both versions over CentOS 5.8 32bit and got "undefined 
> reference to `scramble'", so i thought that it does not support mysql . Have 
> you manage to build it and use mysql? the gitub version? 
> 
> have you tried using it on a 64bit machine?
> 
> 
> On 1 October 2013 14:33, Pablo Tejada <[email protected]> wrote:
> Try to upgrade to either 1.1.2 or 1.1.3-dev they both have MySQL support, 
> just make sure to back your current build in case something goes wrong.
> 
> On Oct 1, 2013 2:53 AM, "Yaron Kufert" <[email protected]> wrote:
> Hi, Thanks for the fast response, 
> 
> I am using version 1.01dev since i need the MySQL support, and yea, the 
> protocol is JSONP
> 
> On Tuesday, October 1, 2013 12:09:53 AM UTC+3, Yaron Kufert wrote:
> Hi,
> 
> I am quite new to the APE project. I had issues when over 200 clients 
> connected to the APE server. When the client connects to the server, it 
> issues a "CONNECT", followed by a "joinChatRoom" call. On the server, the 
> even handler for that call looks like this:
> 
> Ape.registerCmd("joinChatRoom", true, function(params, infos) {
>       var cr = params.chatRoomName;
>       var chan = Ape.getChannelByName(cr);
> 
>     if (!$defined(chan)) {
>         chan = Ape.mkChan(cr);
>       }
> 
>     // This data structure stores all the information about the user.
>     var userState = infos.user.getProperty("userState");
>     if (!userState) {
>               userState = {
>                       credentials: {
>                       watchitoo: {},
>                       twitter: {},
>                       facebook: {},
>                       guest: {}
>                       }
>               };
>     }
> 
>     infos.user.setProperty("userState", userState);
>     infos.user.join(cr);
> 
> });
> 
> 
> the server answer looks like this:
> Ape.transport.read('[{"time":"1380574741","raw":"CHANNEL","data":{"users":[{"casttype":"uni","pubid":"294fa43b43c6b152333d7d255f5496a1","properties":{"userState":{"credentials":{"watchitoo":0,"twitter":0,"facebook":0,"guest":0}}},"level":1}],"pipe":{"casttype":"multi","pubid":"e70bff78a59dcb1524750a93cf7ce943","properties":{"name":"wqd040"}}}}]')
> 
> or parsed:
> 
> [
> {
> "time":"1380574741",
> "raw":"CHANNEL",
> "data":{
> "users":[
> {
> "casttype":"uni",
> "pubid":"294fa43b43c6b152333d7d255f5496a1",
> "properties":{
> "userState":{
> "credentials":{
> "watchitoo":0,
> "twitter":0,
> "facebook":0,
> "guest":0
> }
> }
> },
> "level":1
> }
> ],
> "pipe":{
> "casttype":"multi",
> "pubid":"e70bff78a59dcb1524750a93cf7ce943",
> "properties":{
> "name":"wqd040"
> }
> }
> }
> }
> ]
> 
> As you can see, the server send the list of all connected clients, How can i 
> stop the server from sending this list?
> 
> The problem is that once over 200 clients connected, the server sends a huge 
> list of current users, and for some reason attach another response to it,  
> looking something like:
> Ape.transport.read('......')Ape.transport.read('.....')Ape.transport.read('.......')
> 
> which cause the the ape client to fail on  Uncaught SyntaxError: Unexpected 
> identifier , since it fails to execute the response. 
> 
> I would appreciate any help as I am really stuck... 
> 
> 
> 
> 
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "APE Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> 
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
>  
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "APE Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ape-project/qV_EG6RKPys/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "APE Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
>  
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "APE Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ape-project/qV_EG6RKPys/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> 
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "APE Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> -- 
> You received this message because you are subscribed to the Google
> Groups "APE Project" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> 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/
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "APE Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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/

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to