Trying to compile on Ubuntu 9.10

Dan Young danoyoung at gmail.com
Fri Feb 12 13:49:29 EST 2010


Looks like I already have libc6-dev/libc6 installed. I don't believe
the AMD64 is applicable since I'm running on 32 Intel.  Also this line
isn't in my Makefile. Any other ideas anyone?

Regards,

Dan

On Fri, Feb 12, 2010 at 4:03 AM, Richard Bucker <richard at bucker.net> wrote:
> 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
>
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>



More information about the riak-users mailing list