Installing Problem: "/usr/bin/ld: cannot find -ljs_static"

261 views
Skip to first unread message

Osman Bulut

unread,
Apr 18, 2013, 4:48:47 AM4/18/13
to ape-p...@googlegroups.com
Hello,

I want to install ape from source, but after "./build.sh" i get this error;

"
...
/usr/bin/ld: cannot find -ljs_static
collect2: ld returned 1 exit status
make: *** [modules] Error 1 "

Is the problem about my gcc/c++? 

regards,

tunisiano

unread,
Apr 18, 2013, 9:47:52 AM4/18/13
to ape-p...@googlegroups.com
try chmod +x -R yourApeDir after that launch build.sh one more time.

Osman Bulut

unread,
Apr 18, 2013, 2:41:39 PM4/18/13
to ape-p...@googlegroups.com
Thanks but unfortunately, result is the same. But i get this error only my ubuntu server; compilation is the successful on red hat or centos. strange...

Thanks again, regards.

Louis Charette

unread,
Apr 18, 2013, 3:07:06 PM4/18/13
to ape-p...@googlegroups.com
It's not the first time I see this and I can never remember how to fix it. I now it's related to the compilation of spidermonkey. Make sure you have all the dependencies to compile it. 

Envoyé de mon iPhone
--
--
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/
 
---
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 ape-project...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

tunisiano

unread,
Apr 19, 2013, 4:18:32 AM4/19/13
to ape-p...@googlegroups.com
try sudo apt-get -f --force-yes -y install make gcc g++ libmysql++-dev after that build.sh


Le jeudi 18 avril 2013 09:48:47 UTC+1, Osman Bulut a écrit :

L O

unread,
Dec 4, 2014, 3:35:38 PM12/4/14
to ape-p...@googlegroups.com
Any other suggestions?

Louis Charette

unread,
Dec 4, 2014, 5:11:14 PM12/4/14
to ape-p...@googlegroups.com
Not sure, but run build.sh and when it fails run again. I saw that error somewhere but I can never recall how I solved it. 

Envoyé de mon iPad
--
--
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/

---
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 ape-project...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

peter.r...@verpeteren.nl

unread,
Dec 5, 2014, 3:56:54 PM12/5/14
to ape-p...@googlegroups.com
hai

The linker cannot find libjs_static.a (-ljs_static).
I guess the spidermonkey dependecy was not build correctly (or the path
is incorrect)



Peter

Louis Charette schreef op 2014-12-04 23:11:
> Not sure, but run build.sh and when it fails run again. I saw that
> error somewhere but I can never recall how I solved it.
>
> Envoyé de mon iPad
>
> Le 2014-12-04 à 15:35, L O <thomps...@gmail.com [8]> a écrit :
>
>> Any other suggestions?
>>
>> On Friday, April 19, 2013 4:18:32 AM UTC-4, tunisiano wrote:
>>
>>> try sudo apt-get -f --force-yes -y install make gcc g++
>>> libmysql++-dev after that build.sh
>>>
>>> Le jeudi 18 avril 2013 09:48:47 UTC+1, Osman Bulut a écrit :
>>>
>>>> Hello,
>>>>
>>>> I want to install ape from source, but after "./build.sh" i get
>>>> this error;
>>>>
>>>> "
>>>> ...
>>>> /usr/bin/ld: cannot find -ljs_static
>>>> collect2: ld returned 1 exit status
>>>> make: *** [modules] Error 1 "
>>>>
>>>> Is the problem about my gcc/c++?
>>>>
>>>> regards,
>>
>> --
>> --
>> 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
>> [1]
>> To unsubscribe from this group, send email to
>> ape-project...@googlegroups.com [2]
>> For more options, visit this group at
>> http://groups.google.com/group/ape-project?hl=en [3]
>> ---
>> APE Project (Ajax Push Engine)
>> Official website : http://www.ape-project.org/ [4]
>> Git Hub : http://github.com/APE-Project/ [5]
>>
>> ---
>> 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 ape-project...@googlegroups.com [6].
>> For more options, visit https://groups.google.com/d/optout [7].
>
> --
> --
> 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 [9]
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/ [10]
> Git Hub : http://github.com/APE-Project/ [11]
>
> ---
> 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 ape-project...@googlegroups.com [12].
> For more options, visit https://groups.google.com/d/optout [13].
>
>
> Links:
> ------
> [1] mailto:ape-p...@googlegroups.com
> [2] mailto:ape-project...@googlegroups.com
> [3] http://groups.google.com/group/ape-project?hl=en
> [4] http://www.ape-project.org/
> [5] http://github.com/APE-Project/
> [6] mailto:ape-project...@googlegroups.com
> [7] https://groups.google.com/d/optout
> [8] mailto:thomps...@gmail.com
> [9] http://groups.google.com/group/ape-project?hl=en
> [10] http://www.ape-project.org/
> [11] http://github.com/APE-Project/
> [12] mailto:ape-project...@googlegroups.com
> [13] https://groups.google.com/d/optout

Abraham Romero

unread,
Apr 20, 2015, 10:42:56 PM4/20/15
to ape-p...@googlegroups.com
I'm new to APE, and I got this same error when installing on my VPS (RedHat-9.3.6)

I'm following this tutorial to install APE

Did you manage to solve it?

peter.r...@verpeteren.nl

unread,
Apr 21, 2015, 10:56:38 PM4/21/15
to ape-p...@googlegroups.com
Hello Abraham



>> /usr/bin/ld: cannot find -ljs_static
that means that the linker cannot find any of the files
`libjs_static.so` or (more likely) `libjs_static.a` in the path that
were send to the linker with `-L` or `-l`.

If I recall correctly, the change to spidermonkey 1.8.5 was quite a big
step forward, and the standard OS-distrubutions were not that fast.


```
cd modules
find ../deps/js -type f -name 'lib*.so'
```

This would probably give something like
`../deps/js/src/libmozjs185.so`.

Thus you could make a small change in the modules/Makefile:
`-L../deps/js/src/ -ljs_static` into `-L../deps/js/src/ -lmozjs185`.

Peter

Abraham Romero schreef op 2015-04-21 04:42:
> --
> --
> 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 [1]
> ---
> APE Project (Ajax Push Engine)
> Official website : http://www.ape-project.org/ [2]
> Git Hub : http://github.com/APE-Project/ [3]
>
> ---
> 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 ape-project...@googlegroups.com [4].
> For more options, visit https://groups.google.com/d/optout [5].
>
>
> Links:
> ------
> [1] http://groups.google.com/group/ape-project?hl=en
> [2] http://www.ape-project.org/
> [3] http://github.com/APE-Project/
> [4] mailto:ape-project...@googlegroups.com
> [5] https://groups.google.com/d/optout

Reply all
Reply to author
Forward
0 new messages