Fwd: Trying to compile on Ubuntu 9.10

Richard Bucker richard at bucker.net
Fri Feb 12 06:03:24 EST 2010


The first thing you need to do:

sudo apt-get install libc6-dev-i386


The second thing:

>
> AMD64 platforms seem to be a particular pain point for Spidermonkey and
NSPR. For now, you'll need to edit the makefile  in erlang_js/c_src to get
this to compile. Edit line 13 from this:
>
> @cd deps/nspr_release;../mozilla/nsprpub/configure --disable-debug
--enable-optimize;make
>
> to this:
>
> @cd deps/nspr_release;../mozilla/nsprpub/configure --disable-debug
--enable-optimize --enable-64bit;make
>
> For whatever reason, NSPR doesn't seem to detect AMD64 as a 64-bit
platform. Apologies again for the hacky build process. We are working on
improving the build and should have a smoother process for next release.
>

*+++
Richard Bucker
http://www.bucker.us
LinkedIn: http://www.linkedin.com/in/richardbucker
+++
Florida Freelance IT LLC
General/Custom Hardware & Software Solutions
http://www.fl2it.com
+++
*


---------- Forwarded message ----------
From: Dan Young <danoyoung at gmail.com>
Date: Thu, Feb 11, 2010 at 11:35 PM
Subject: Trying to compile on Ubuntu 9.10
To: riak-users at lists.basho.com


Hello all,

I'm trying to install the latest download of riak and am getting the
following error msg after : make all rel

.....
.....
.....
Compiling c_src/spidermonkey_drv.c
./rebar compile generate
==> protobuffs (compile)
==> mochiweb (compile)
==> webmachine (compile)
==> luke (compile)
==> riak (compile)
==> erlang_js (compile)
Running c_src/build_driver_deps.sh
~/riak/apps/erlang_js/c_src ~/riak/apps/erlang_js
make[1]: Entering directory `/root/riak/apps/erlang_js/c_src'
mkdir: cannot create directory `deps/js': File exists
make[1]: *** [deps/js] Error 1
make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
ERROR: c_src/build_driver_deps.sh failed with error: 2
make: *** [rel] Error 1
root at dyoung-ubuntu:~/riak#


I also tried just make rel and got:

....
....
....
s.o Linux_All_OPT.OBJ/libjs.a  -lm -L../../nspr_release/dist/lib -lnspr4 \
           editline/Linux_All_OPT.OBJ/libedit.a
make[3]: `Linux_All_OPT.OBJ/jsautocfg.h' is up to date.
make[3]: `Linux_All_OPT.OBJ/jscpucfg' is up to date.
make[3]: `Linux_All_OPT.OBJ/jscpucfg.o' is up to date.
make[3]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
make[2]: Leaving directory `/root/riak/apps/erlang_js/c_src/deps/js/src'
make[1]: Leaving directory `/root/riak/apps/erlang_js/c_src'
Compiling c_src/driver_comm.c
Compiling c_src/spidermonkey.c
c_src/spidermonkey.c: In function ‘sm_initialize’:
c_src/spidermonkey.c:126: warning: passing argument 4 of
‘JS_DefineFunction’ from incompatible pointer type
c_src/include/js/jsapi.h:1905: note: expected ‘JSNative’ but argument
is of type ‘JSBool (**)(struct JSContext *, struct JSObject *, uintN,
jsval *, jsval *)’
Compiling c_src/spidermonkey_drv.c
==> rel (generate)
root at dyoung-ubuntu:~/riak#


Any ideas?

Regards,

Dano

_______________________________________________
riak-users mailing list
riak-users at lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20100212/d44729fa/attachment.html>


More information about the riak-users mailing list