Error running Bootstrap on Mac OSX 10.9
bradydoll opened this issue · comments
Running Mac OSX 10.9, I recieved the following error message while running ./bootstrap
:
ruby-1.9.3-p362 - #compiling....................
Error running '__rvm_make -j 1',
showing last 15 lines of /Users/brady.doll/.rvm/log/1409157940_ruby-1.9.3-p362/make.log
f_rational_new_no_reduce1(VALUE klass, VALUE x)
^
6 warnings generated.
compiling re.c
compiling regcomp.c
compiling regenc.c
compiling regerror.c
compiling regexec.c
compiling regparse.c
regparse.c:582:15: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
return t->num_entries;
~~~~~~ ~~~^~~~~~~~~~~
1 error generated.
make: *** [regparse.o] Error 1
++ return 2
There has been an error while running make. Halting the installation.
Installing bundler...
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
Installing gems (if any)
bash: line 200: bundle: command not found
Thanks for using ruby-bootstrap. Happy hacking!
ruby-1.9.3-p362 is not installed.
To install do: 'rvm install ruby-1.9.3-p362'
Checking Vagrant environment...
Checking for Vagrant: OK
Preparing Vagrant environment...
Installing the 'vagrant-hosts --version '>= 2.1.4'' plugin. This can take a few minutes...
Installed the plugin 'vagrant-hosts (2.2.0)'!
Installing the 'vagrant-aws' plugin. This can take a few minutes...
Installed the plugin 'vagrant-aws (0.5.0)'!
Installing the 'vagrant-awsinfo' plugin. This can take a few minutes...
Installed the plugin 'vagrant-awsinfo (0.0.8)'!
==> box: Adding box 'centos6-compatible' (v0) for provider: virtualbox
==> box: Adding box 'centos6-compatible' (v0) for provider: aws
Checking Puppet environment...
Checking for librarian-puppet: NOT FOUND
Please run 'bundle install' and then re-run bootstrap
I was able to find a StackOverflow question that seemed to be the same issue that had a solution that worked for me.
The solution:
Install MacPorts, and then run:
sudo port selfupdate
sudo port install apple-gcc42
Then run:
CC=/opt/local/bin/gcc-apple-4.2 rvm install ruby-1.9.3-p362 --enable-shared --without-tk --without-tcl
I had already had MacPorts installed and I believe that apple-gcc42
was installed by some processes during the first call to ./bootstrap
, so I didn't have to run the first steps. After running the above commands I was able to re-run ./bootstrap
and the install completed successfully.
Many thanks for reporting this, Brady! I updated the Wirbelsturm FAQ:
https://github.com/miguno/wirbelsturm#bootstrap-fails-while-compiling-ruby
Do you think I can close this issue, or is there anything else I could do to help?
Michael, I think it's fine to close the issue. The FAQ seems like a good place for this.
Thanks.