I changed the line to
$(LD) -o libmysac.so -shared -soname libmysac.so.1.1.1 libmysac.a
Now if I look at libmod_spidermonkey.so by ldd libmod..., I get:
linux-vdso.so.1 => (0x00007fff4d989000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fc150e00000)
libmysac.so.1.1.1 => not found
<---------------------------------------------------------------------------------------
libmysqlclient_r.so.16 => /usr/lib/libmysqlclient_r.so.16
(0x00007fc1509ed000)
libc.so.6 => /lib/libc.so.6 (0x00007fc150664000)
libm.so.6 => /lib/libm.so.6 (0x00007fc1503e1000)
/lib64/ld-linux-x86-64.so.2 (0x00007fc151648000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fc1501c9000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007fc14ffac000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00007fc14fd73000)
libnsl.so.1 => /lib/libnsl.so.1 (0x00007fc14fb58000)
libz.so.1 => /lib/libz.so.1 (0x00007fc14f941000)
The most surprizing here is that if I look at previous
libmod_spidermonkey.so, there is no line for libmysac. This is really weird
no?
Le mercredi 3 septembre 2014 11:45:44 UTC+1, christian audebert a écrit :
>
> Try to Look at makefile to change makefile
> found here : https://searchcode.com/codesearch/view/7738778/
>
> This line
>
> libmysac.so: libmysac.a
>
> $(LD) -o libmysac.so -shared -soname libmysac.so.0.0 libmysac.a
>
>
>
> Wich specifies libmysac version 0.0 and change it according to your
> library version.
>
> You can found library libmysac here. http://www.arpalert.org/mysac.html
>
>
>
> If you can’t compil succesfully, get binaries to install. They work
> perfectly.
>
> Other option : make a normal install , in VM, and test on it.
>
> I was installed APE-SERVER 1.1.2 last month on ubuntu 14.04 64 with mysql
> storage database moved in /home/mysql/mysql , and all work perfectly with
> binarys from the website ape-server.
>
>
>
> Note : i will ever be a newbe with linux. But, i’m searching, again, and
> again..
>
>
>
>
>
> *De :* [email protected] <javascript:> [mailto:
> [email protected] <javascript:>] *De la part de* Pablo Tejada
> *Envoyé :* mardi 2 septembre 2014 20:20
> *À :* [email protected] <javascript:>
> *Objet :* Re: [APE Project] Recompiling APE with latest Mysql... Error
> libmysac.so.0.0.
>
>
>
> Im not proficient in C but it could be a simlink problem.
>
>
>
> I don't have a dedicated server for APE so the way i made it work was by
> installing the MySQL package in my home directory.
>
> Then modifying the Makefile in the modules directory to reference the
> installation lib directory:
>
>
>
> @$(CC) *-L/home/xxxxxx/mysql/lib* $(CFLAGS) $(CLFLAGS) $(DEBUGFLAGS)
> $(PROFILEFLAGS) -o lib/$(SPIDERMONKEYMOD) $< $(UDNS) $(FLAGS) $(MYSQL_FLAGS)
>
>
>
> And on the bash_profile of the ssh account added this line which also
> references the the custom mysql lib directory:
>
>
>
> export LD_LIBRARY_PATH=$HOME/mysql/lib
>
>
>
> Hope it helps.
>
>
>
> On Tue, Sep 2, 2014 at 1:22 PM, Nicolas <[email protected] <javascript:>>
> wrote:
>
> Actually, I am not sure I ever recompiled with any other version than 0.4.
> That's what I recommended here:
>
>
> https://groups.google.com/forum/#!searchin/ape-project/mysac$20version$20replace/ape-project/Vx9TlmQH1Ac/DR_De4MvKGoJ
>
> but I might not have done it (as I did not have any issue).
>
>
>
> This said, with my latest compile (normal compile from scratch with Mysac
> 0.4 version), I got this error message:
>
>
>
> :TypeError: 0 is not a function
>
>
>
> after calling some basic queries. This made me think of the bug that the
> mysac author had told me about (if the query returns NULL, mysac crashes).
> So, I wanted to try and get rid of this error by updating mysac. It may not
> be possible, you are right.
>
>
>
> But it looks like I have a simlink problem no?
>
>
>
>
>
>
>
>
>
>
> Le mardi 2 septembre 2014 18:13:20 UTC+1, Nicolas a écrit :
>
> I remember compiling APE with version 0.9
>
>
>
> and it worked.
>
>
>
> But this does not seem to be the problem. It looks like I am missing a
> simlink, no?
>
>
>
>
>
> Le mardi 2 septembre 2014 18:10:17 UTC+1, Pablo a écrit :
>
> I dont think you could just replace the MySac library. The API might have
> changed .
>
> On Sep 2, 2014 1:07 PM, "Nicolas" <[email protected]> wrote:
>
> Hi,
>
>
>
> I have just installed the latest APE, but got a Mysql error. I strongly
> suspect that this is due to the fact that APE uses an old version of Mysac
> (0.4) when it should use a newer one.
>
>
>
> So I recompiled APE with the latest Mysac (1.1.1).
>
>
>
> I copied-pasted aped and libmod_spidermonkey.so
>
>
>
> When running APE, I get this message:
>
>
>
> root@server56405:/etc# [Module] Failed to load
> /ape_staging/modules/libmod_spidermonkey.so [Invalid library]
> (libmysac.so.0.0: cannot open shared object file: No such file or directory)
>
>
>
> What should I do?
>
> --
> --
> 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/d/optout.
>
> --
> --
> 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]
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> --
> 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]
> <javascript:>
> To unsubscribe from this group, send email to
> [email protected] <javascript:>
> 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] <javascript:>.
> For more options, visit https://groups.google.com/d/optout.
>
--
--
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/d/optout.