Riak on Mac OSX 10.7.5
Downloaded Riak 1.4.2 from: http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz Starting Riak as bin/riak gives the error: Error reading /Users/arungup/tools/nosql/riak/riak-1.4.2/bin/../etc/app.config And then a dialog box pops up with the following details: Process: sh [75679] Path:/bin/sh Identifier: sh Version: ??? (???) Code Type: X86-64 (Native) Parent Process: sh [75678] Date/Time: 2013-10-07 16:29:08.889 -0700 OS Version: Mac OS X 10.7.5 (11G63b) Report Version: 9 Sleep/Wake UUID: 233B3AEC-827F-4D69-92BB-3F6579F3BC4B Anonymous UUID: D3AD0D73-8375-41A9-8DF2-7AD38536906E Crashed Thread: Unknown Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x7fff5fc01028 Backtrace not available Unknown thread crashed with X86 Thread State (64-bit): rax: 0x0055 rbx: 0x rcx: 0x rdx: 0x rdi: 0x rsi: 0x rbp: 0x rsp: 0x r8: 0x r9: 0x r10: 0x r11: 0x r12: 0x r13: 0x r14: 0x r15: 0x rip: 0x7fff5fc01028 rfl: 0x00010203 cr2: 0x7fff5fc01028 Logical CPU: 2 Binary images description not available External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 318497 thread_create: 2 thread_set_state: 0 Model: MacBookPro8,2, BootROM MBP81.0047.B27, 4 processors, Intel Core i7, 2 GHz, 16 GB, SMC 1.69f4 Graphics: AMD Radeon HD 6490M, AMD Radeon HD 6490M, PCIe, 256 MB Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1333 MHz, 0x029E, 0x434D5341384758334D31413133433920 Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1333 MHz, 0x029E, 0x434D5341384758334D31413133433920 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.198.19.22) Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en1 Serial ATA Device: ST9500325ASG, 500.11 GB Serial ATA Device: MATSHITADVD-R UJ-8A8 USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa20 / 3 USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfa10 / 2 USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa11 / 5 USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 8 USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0252, 0xfa12 / 4 USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfd10 / 2 USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd11 / 3 Any idea what is wrong ? Arun -- Java EE 7 Essentials: http://shop.oreilly.com/product/0636920030614.do Java EE 6 Pocket Guide from OReilly: http://shop.oreilly.com/product/0636920026464.do ___ riak-users mailing list riak-users@lists.basho.com http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
Re: Riak on Mac OSX 10.7.5
I gave the command: CFLAGS=-O0 ./configure --disable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --enable-darwin-64bit and it showed a whole bunch of lines as shown below ... -- start here -- Ignoring the --cache-file argument since it can cause the system to be erroneously configured Disabling caching checking build system type... i386-apple-darwin11.4.2 checking host system type... i386-apple-darwin11.4.2 checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o ... config.status: creating i386-apple-darwin11.4.2/config.h config.status: creating include/internal/i386-apple-darwin11.4.2/ethread_header_config.h config.status: creating include/i386-apple-darwin11.4.2/erl_int_sizes_config.h * ** APPLICATIONS INFORMATION *** * wx : wxWidgets not found, wx will NOT be usable * * ** DOCUMENTATION INFORMATION ** * documentation : fop is missing. Using fakefop to generate placeholder PDF files. * -- end here -- This was followed by the command: make && sudo make install test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && ERL_TOP=/Users/arungup/code/workspaces/riak/otp_src_R15B01 make generate) make -f i386-apple-darwin11.4.2/Makefile generate LANG=C /usr/bin/perl utils/beam_makeops \ -wordsize 64 \ -outdir i386-apple-darwin11.4.2/opt/plain \ -DUSE_VM_PROBES=0 \ ... which failed with the message: adding: com/ericsson/otp/erlang/OtpServer.class(in = 681) (out= 374)(deflated 45%) adding: com/ericsson/otp/erlang/OtpSystem.class(in = 738) (out= 438)(deflated 40%) make[3]: Nothing to be done for `opt'. === Leaving application jinterface === Entering application ic make[3]: Nothing to be done for `opt'. make -f i386-apple-darwin11.4.2/Makefile TYPE=opt gcc -m64 -O0 -I/Users/arungup/code/workspaces/riak/otp_src_R15B01/erts/i386-apple-darwin11.4.2 -D_XOPEN_SOURCE -fPIC -fno-common -c -o ../priv/obj/i386-apple-darwin11.4.2/ic.o -m64 -O0 -I/Users/arungup/code/workspaces/riak/otp_src_R15B01/erts/i386-apple-darwin11.4.2 -D_XOPEN_SOURCE -DHAVE_CONFIG_H -I../include -I/Users/arungup/code/workspaces/riak/otp_src_R15B01/lib/erl_interface/include -I/Users/arungup/code/workspaces/riak/otp_src_R15B01/lib/erl_interface/src -O0 ./configure --disable-hipe --enable-smp-support --enable-threads --enable-kernel-poll --enable-darwin-64bit ic.c i686-apple-darwin11-llvm-gcc-4.2: ./configure: No such file or directory cc1: error: unrecognized command line option "-fdisable-hipe" cc1: error: unrecognized command line option "-fenable-smp-support" cc1: error: unrecognized command line option "-fenable-threads" cc1: error: unrecognized command line option "-fenable-kernel-poll" cc1: error: unrecognized command line option "-fenable-darwin-64bit" make[4]: *** [../priv/obj/i386-apple-darwin11.4.2/ic.o] Error 1 make[3]: *** [opt] Error 2 make[2]: *** [opt] Error 2 make[1]: *** [opt] Error 2 make: *** [tertiary_bootstrap_build] Error 2 An idea ? Arun On Mon, Oct 7, 2013 at 6:34 PM, Jared Morrow wrote: > As Steve said, this package is for 10.8+. If you would like to build from > source, you can follow the instructions here: > http://docs.basho.com/riak/latest/ops/building/installing/from-source/ If > you would like to build a package to use on other machines, follow the same > instructions, except call 'make package' instead of 'make rel' in the > instructions. > > -Jared > > > On Mon, Oct 7, 2013 at 6:04 PM, Steve Vinoski wrote: >> >> As indicated in the URL for the tarball you downloaded, Riak 1.4.2 for OS >> X was built for 10.8.x, but you're running 10.7.5 so that build won't work >> there. >> >> --steve >> >> >> On Mon, Oct 7, 2013 at 7:34 PM, Arun Gupta wrote: >>> >>> Downloaded Riak 1.4.2 from: >>> >>> >>> http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz >>> >>> Starting Riak as bin/riak gives the error: >>> >>> Error reading >>> /Users/arungup/tools/nosql/riak/riak-1.4.2/bin/../etc/app.config >>> >>> And then a
Re: Riak on Mac OSX 10.7.5
bash Any recommendation on how the command needs to be broken apart ? Arun On Tue, Oct 8, 2013 at 10:09 AM, Steve Vinoski wrote: > Arun, what shell are you using? It looks like your setting of CFLAGS as part > of your very first command ended up taking the entire configure command as > the value, rather than just -O0, and then when the C compiler later tries to > use that whole command line, it unsurprisingly fails. > > --steve > > > On Tue, Oct 8, 2013 at 12:33 PM, Arun Gupta wrote: >> >> I gave the command: >> >> CFLAGS=-O0 ./configure --disable-hipe --enable-smp-support >> --enable-threads --enable-kernel-poll --enable-darwin-64bit >> >> and it showed a whole bunch of lines as shown below ... >> >> -- start here -- >> Ignoring the --cache-file argument since it can cause the system to be >> erroneously configured >> Disabling caching >> checking build system type... i386-apple-darwin11.4.2 >> checking host system type... i386-apple-darwin11.4.2 >> checking for gcc... gcc >> checking for C compiler default output file name... a.out >> checking whether the C compiler works... yes >> checking whether we are cross compiling... no >> checking for suffix of executables... >> checking for suffix of object files... o >> >> ... >> >> config.status: creating i386-apple-darwin11.4.2/config.h >> config.status: creating >> include/internal/i386-apple-darwin11.4.2/ethread_header_config.h >> config.status: creating >> include/i386-apple-darwin11.4.2/erl_int_sizes_config.h >> * >> ** APPLICATIONS INFORMATION *** >> * >> >> wx : wxWidgets not found, wx will NOT be usable >> >> * >> * >> ** DOCUMENTATION INFORMATION ** >> * >> >> documentation : >> fop is missing. >> Using fakefop to generate placeholder PDF files. >> >> * >> -- end here -- >> >> This was followed by the command: >> >> make && sudo make install >> test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && >> ERL_TOP=/Users/arungup/code/workspaces/riak/otp_src_R15B01 make >> generate) >> make -f i386-apple-darwin11.4.2/Makefile generate >> LANG=C /usr/bin/perl utils/beam_makeops \ >> -wordsize 64 \ >> -outdir i386-apple-darwin11.4.2/opt/plain \ >> -DUSE_VM_PROBES=0 \ >> >> ... >> >> which failed with the message: >> >> adding: com/ericsson/otp/erlang/OtpServer.class(in = 681) (out= >> 374)(deflated 45%) >> adding: com/ericsson/otp/erlang/OtpSystem.class(in = 738) (out= >> 438)(deflated 40%) >> make[3]: Nothing to be done for `opt'. >> === Leaving application jinterface >> === Entering application ic >> make[3]: Nothing to be done for `opt'. >> make -f i386-apple-darwin11.4.2/Makefile TYPE=opt >> gcc -m64 -O0 >> -I/Users/arungup/code/workspaces/riak/otp_src_R15B01/erts/i386-apple-darwin11.4.2 >> -D_XOPEN_SOURCE -fPIC -fno-common -c -o >> ../priv/obj/i386-apple-darwin11.4.2/ic.o -m64 -O0 >> >> -I/Users/arungup/code/workspaces/riak/otp_src_R15B01/erts/i386-apple-darwin11.4.2 >> -D_XOPEN_SOURCE -DHAVE_CONFIG_H -I../include >> >> -I/Users/arungup/code/workspaces/riak/otp_src_R15B01/lib/erl_interface/include >> -I/Users/arungup/code/workspaces/riak/otp_src_R15B01/lib/erl_interface/src >> -O0 ./configure --disable-hipe --enable-smp-support --enable-threads >> --enable-kernel-poll --enable-darwin-64bit ic.c >> i686-apple-darwin11-llvm-gcc-4.2: ./configure: No such file or directory >> cc1: error: unrecognized command line option "-fdisable-hipe" >> cc1: error: unrecognized command line option "-fenable-smp-support" >> cc1: error: unrecognized command line option "-fenable-threads" >> cc1: error: unrecognized command line option "-fenable-kernel-poll" >> cc1: error: unrecognized command line option "-fenable-darwin-64bit" >> make[4]: *** [../priv/obj/i386-apple-darwin11.4.2/ic.o] Error 1 >> make[3]: *** [opt] Error 2 >> make[2]: *** [opt] Error 2 >> make[1]: ***
Re: Riak on Mac OSX 10.7.5
No quotes and "echo $IFS" shows a blank line. The sequence of commands succeeded and I could start the server. But it gave a message as: WARNING: ulimit -n is 256; 4096 is the recommended minimum. Is that normal ? How do I know if the server has started properly or not ? log/server.log shows ... 2013-10-08 14:46:36.394 [info] <0.356.0>@riak_kv_js_vm:terminate:240 Spidermonkey VM (pool: riak_kv_js_map) host stopping (<0.356.0>) 2013-10-08 14:46:36.396 [info] <0.288.0>@riak_kv_app:stop:231 Stopped application riak_kv. 2013-10-08 14:46:36.408 [info] <0.142.0>@riak_core_app:prep_stop:103 Stopping application riak_core - disabling web services. 2013-10-08 14:46:36.426 [info] <0.142.0>@riak_core_app:stop:112 Stopped application riak_core. Arun On Tue, Oct 8, 2013 at 12:27 PM, Steve Vinoski wrote: > Strange. I assume you didn't put quotes around the whole command, and that > you don't have your IFS shell variable set to something unusual? > > You might try this instead: > > export CFLAGS=-O0 > ./configure --disable-hipe --enable-smp-support --enable-threads > --enable-kernel-poll --enable-darwin-64bit > unset CFLAGS > make > make install > > Note that you might need to use sudo with that last command, depending on > where you're installing to. > > --steve > > > > On Tue, Oct 8, 2013 at 1:25 PM, Arun Gupta wrote: >> >> bash >> >> Any recommendation on how the command needs to be broken apart ? >> >> Arun >> >> On Tue, Oct 8, 2013 at 10:09 AM, Steve Vinoski wrote: >> > Arun, what shell are you using? It looks like your setting of CFLAGS as >> > part >> > of your very first command ended up taking the entire configure command >> > as >> > the value, rather than just -O0, and then when the C compiler later >> > tries to >> > use that whole command line, it unsurprisingly fails. >> > >> > --steve >> > >> > >> > On Tue, Oct 8, 2013 at 12:33 PM, Arun Gupta >> > wrote: >> >> >> >> I gave the command: >> >> >> >> CFLAGS=-O0 ./configure --disable-hipe --enable-smp-support >> >> --enable-threads --enable-kernel-poll --enable-darwin-64bit >> >> >> >> and it showed a whole bunch of lines as shown below ... >> >> >> >> -- start here -- >> >> Ignoring the --cache-file argument since it can cause the system to be >> >> erroneously configured >> >> Disabling caching >> >> checking build system type... i386-apple-darwin11.4.2 >> >> checking host system type... i386-apple-darwin11.4.2 >> >> checking for gcc... gcc >> >> checking for C compiler default output file name... a.out >> >> checking whether the C compiler works... yes >> >> checking whether we are cross compiling... no >> >> checking for suffix of executables... >> >> checking for suffix of object files... o >> >> >> >> ... >> >> >> >> config.status: creating i386-apple-darwin11.4.2/config.h >> >> config.status: creating >> >> include/internal/i386-apple-darwin11.4.2/ethread_header_config.h >> >> config.status: creating >> >> include/i386-apple-darwin11.4.2/erl_int_sizes_config.h >> >> * >> >> ** APPLICATIONS INFORMATION *** >> >> * >> >> >> >> wx : wxWidgets not found, wx will NOT be usable >> >> >> >> * >> >> * >> >> ** DOCUMENTATION INFORMATION ** >> >> * >> >> >> >> documentation : >> >> fop is missing. >> >> Using fakefop to generate placeholder PDF files. >> >> >> >> * >> >> -- end here -- >> >> >> >> This was followed by the command: >> >> >> >> make && sudo make install >> >> test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator && >> >> ERL_TOP=/Users/arungup/code/workspaces/riak/otp_src_R15B01 make &g
Re: Riak on Mac OSX 10.7.5
Finally got it all working! The sample is now available at: https://github.com/arun-gupta/javaee7-samples/tree/master/extra/nosql/riak Arun On Tue, Oct 8, 2013 at 3:00 PM, Jared Morrow wrote: >> Is that normal ? > > > To adjust your open files limit, see this guide > http://docs.basho.com/riak/latest/ops/tuning/open-files-limit/ > >> How do I know if the server has started properly or not ? > > > A typical thing to make sure Riak comes up is to 'riak ping' after issuing a > 'riak start' > > Since you are just getting started, I highly recommend you following through > the "Five Minute Install" quickstart guide we have here: > http://docs.basho.com/riak/latest/quickstart/ It goes through setting up a > basic cluster and also covers things like that ulimit warning you got above. > From there, you can look around the "Riak for Developers" or "Riak for > Operators" sections depending on your interests. > > Good luck, > Jared > > > On Tue, Oct 8, 2013 at 3:47 PM, Arun Gupta wrote: >> >> No quotes and "echo $IFS" shows a blank line. >> >> The sequence of commands succeeded and I could start the server. But >> it gave a message as: >> >> >> WARNING: ulimit -n is 256; 4096 is the recommended minimum. >> >> >> Is that normal ? >> >> How do I know if the server has started properly or not ? >> >> log/server.log shows ... >> >> 2013-10-08 14:46:36.394 [info] <0.356.0>@riak_kv_js_vm:terminate:240 >> Spidermonkey VM (pool: riak_kv_js_map) host stopping (<0.356.0>) >> 2013-10-08 14:46:36.396 [info] <0.288.0>@riak_kv_app:stop:231 Stopped >> application riak_kv. >> 2013-10-08 14:46:36.408 [info] <0.142.0>@riak_core_app:prep_stop:103 >> Stopping application riak_core - disabling web services. >> 2013-10-08 14:46:36.426 [info] <0.142.0>@riak_core_app:stop:112 >> Stopped application riak_core. >> >> Arun >> >> On Tue, Oct 8, 2013 at 12:27 PM, Steve Vinoski wrote: >> > Strange. I assume you didn't put quotes around the whole command, and >> > that >> > you don't have your IFS shell variable set to something unusual? >> > >> > You might try this instead: >> > >> > export CFLAGS=-O0 >> > ./configure --disable-hipe --enable-smp-support --enable-threads >> > --enable-kernel-poll --enable-darwin-64bit >> > unset CFLAGS >> > make >> > make install >> > >> > Note that you might need to use sudo with that last command, depending >> > on >> > where you're installing to. >> > >> > --steve >> > >> > >> > >> > On Tue, Oct 8, 2013 at 1:25 PM, Arun Gupta wrote: >> >> >> >> bash >> >> >> >> Any recommendation on how the command needs to be broken apart ? >> >> >> >> Arun >> >> >> >> On Tue, Oct 8, 2013 at 10:09 AM, Steve Vinoski wrote: >> >> > Arun, what shell are you using? It looks like your setting of CFLAGS >> >> > as >> >> > part >> >> > of your very first command ended up taking the entire configure >> >> > command >> >> > as >> >> > the value, rather than just -O0, and then when the C compiler later >> >> > tries to >> >> > use that whole command line, it unsurprisingly fails. >> >> > >> >> > --steve >> >> > >> >> > >> >> > On Tue, Oct 8, 2013 at 12:33 PM, Arun Gupta >> >> > wrote: >> >> >> >> >> >> I gave the command: >> >> >> >> >> >> CFLAGS=-O0 ./configure --disable-hipe --enable-smp-support >> >> >> --enable-threads --enable-kernel-poll --enable-darwin-64bit >> >> >> >> >> >> and it showed a whole bunch of lines as shown below ... >> >> >> >> >> >> -- start here -- >> >> >> Ignoring the --cache-file argument since it can cause the system to >> >> >> be >> >> >> erroneously configured >> >> >> Disabling caching >> >> >> checking build system type... i386-apple-darwin11.4.2 >> >> >> checking host system type... i386-apple-darwin11.4.2 >> >> >> checking for gcc... gcc