view · edit · sidebar · attach · print · history

20130612-setup-bbmb-sandoz-in-fastpower

<< | Index | >>


Summary

  • Install Ruby 1.8.6 via rbenv

Index


Ruby-1.8.6

Failed with MAKEOPTS.

bbmb@fastpower ~/.rbenv/plugins $ MAKEOPTS="-j17" CONFIGURE_OPTS="--enable-shared" rbenv install 1.8.6-p420
Downloading ruby-1.8.6-p420.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/ca1eee44f842e93b5098bc5a2bb9a40b
Installing ruby-1.8.6-p420...

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20130612052501.7770
Results logged to /tmp/ruby-build.20130612052501.7770.log

Last 10 log lines:
rbconfig.rb updated
compiling Win32API
compiling bigdecimal
make[1]: Entering directory `/tmp/ruby-build.20130612052501.7770/ruby-1.8.6-p420/ext/bigdecimal'
mkdir -p ../../.ext/x86_64-linux
/usr/bin/gcc -I. -I../.. -I../../. -I../.././ext/bigdecimal -DBASE=1000000000UL -DBASE_FIG=9 -I'/home/bbmb/.rbenv/versions/1.8.6-p420/include'   -fPIC -g -O2  -fPIC  -c bigdecimal.c
make[1]: *** read jobs pipe: No such file or directory.  Stop.
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/tmp/ruby-build.20130612052501.7770/ruby-1.8.6-p420/ext/bigdecimal'
make: *** [all] Error 1

Then tried without MAKEOPTS (MAKE_OPTS)

bbmb@fastpower ~/.rbenv/plugins $ MAKEOPTS="" CONFIGURE_OPTS="--enable-shared" rbenv install 1.8.6-p420
Downloading ruby-1.8.6-p420.tar.gz...
-> http://dqw8nmjcqpjn7.cloudfront.net/ca1eee44f842e93b5098bc5a2bb9a40b
Installing ruby-1.8.6-p420...

BUILD FAILED

Inspect or clean up the working tree at /tmp/ruby-build.20130612052702.11660
Results logged to /tmp/ruby-build.20130612052702.11660.log

Last 10 log lines:
make[1]: Leaving directory `/tmp/ruby-build.20130612052702.11660/ruby-1.8.6-p420/ext/nkf'
compiling openssl
make[1]: Entering directory `/tmp/ruby-build.20130612052702.11660/ruby-1.8.6-p420/ext/openssl'
/usr/bin/gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I'/home/bbmb/.rbenv/versions/1.8.6-p420/include'   -fPIC -g -O2  -fPIC  -c openssl_missing.c
/usr/bin/gcc -I. -I../.. -I../../. -I../.././ext/openssl -DRUBY_EXTCONF_H=\"extconf.h\" -I'/home/bbmb/.rbenv/versions/1.8.6-p420/include'   -fPIC -g -O2  -fPIC  -c ossl.c
ossl.c:118: error: expected ')' before '*' token
ossl.c:119: error: expected ')' before '*' token
make[1]: *** [ossl.o] Error 1
make[1]: Leaving directory `/tmp/ruby-build.20130612052702.11660/ruby-1.8.6-p420/ext/openssl'
make: *** [all] Error 1

openssl is too new for Ruby-1.8.6.


Note

on production(Fastpower).

# emerge --sync
!!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage'
!!! main-repo not set in DEFAULT and PORTDIR is empty. 
>>> Using /usr/portage.sync/portage as temporary clone directory...
!!! /usr/portage.sync/portage exists and contains files. Please remove so that clone can proceed
  • moved /usr/portage.sync dir
  • run `emerge --sync`

Note

If you use rvm on Fastpower. (without oniguruma patch)

bbmb@fastpower ~ $ /bin/bash --login
bbmb@fastpower ~ $ rvm list

rvm rubies

   ruby-1.8.6-p420 [ x86_64 ]

# Default ruby not set. Try 'rvm alias create default <ruby>'.

# => - current
# =* - current && default
#  * - default

bbmb@fastpower ~ $ rvm use ruby-1.8.6-p420
view · edit · sidebar · attach · print · history
Page last modified on June 13, 2013, at 10:19 AM