Created
August 25, 2010 18:22
-
-
Save adamp83/550022 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'm having trouble getting RVM to work on a Joyent Accelerator running OpenSolaris. I've followed the instructions on http://rvm.beginrescueend.com/rvm/install/ as follows: | |
1. Run bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) | |
2. Added [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" into my .bashrc | |
3. Typed type rvm | head -n1 and received the message "rvm is a function" | |
4. Run source ~/.rvm/scripts/rvm | |
5. Run rvm notes | |
At this point RVM appears to be working. I can run rvm install 1.8.7 and RVM downloads and compiles ruby 1.8.7. If I then run rvm 1.8.7, then ruby -v returns 1.8.7, as expected. However, when I try to install any gems (e.g. running gem install rails --pre) I get the following error: | |
$ gem install rails --pre | |
/home/adam/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/1.8/openssl/ssl-internal.rb:30: [BUG] Segmentation fault | |
ruby 1.8.7 (2010-08-16 patchlevel 302) [i386-solaris2.11] | |
Abort (core dumped) | |
Any ideas what could be causing this? | |
Also, ruby 1.9.2 will not install. If I type rvm install 1.9.2 I get the following error: | |
$ rvm install 1.9.2 | |
info: Installing Ruby from source to: /home/adam/.rvm/rubies/ruby-1.9.2-p0 | |
info: /home/adam/.rvm/src/ruby-1.9.2-p0 has already been extracted. | |
info: Configuring ruby-1.9.2-p0, this may take a while depending on your cpu(s)... | |
info: Compiling ruby-1.9.2-p0, this may take a while depending on your cpu(s)... | |
error: Error running 'make ', please check /home/adam/.rvm/log/ruby-1.9.2-p0/make*.log | |
error: There has been an error while running make. Aborting the installation. | |
The log file make.error.log shows: | |
[2010-08-25 18:06:59] make | |
make: Warning: Illegal dependency list for target `.DEFAULT' | |
Undefined first referenced | |
symbol in file | |
rb_eArgError bug.o (symbol scope specifies local binding) | |
ld: fatal: Symbol referencing errors. No output written to ../../../.ext/i386-solaris2.11/-test-/bug-3662/bug.so | |
collect2: ld returned 1 exit status | |
make: Fatal error: Command failed for target `../../../.ext/i386-solaris2.11/-test-/bug-3662/bug.so' | |
Current working directory /home/adam/.rvm/src/ruby-1.9.2-p0/ext/-test-/bug-3662 | |
make: Fatal error: Command failed for target `mkmain.sh' | |
The file make.log shows: | |
[2010-08-25 18:06:59] make | |
gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -fPIC -L. -R/home/adam/.rvm/rubies/ruby-1.9.2-p0/lib main.o dmydln.o dmyencoding.o dmyversion.o miniprelude.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o flock.o isinf.o signbit.o dmyext.o -lpthread -lrt -lsocket -ldl -lcrypt -lm -o miniruby | |
rbconfig.rb unchanged | |
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./enc/make_encmake.rb --builtin-encs="ascii.o us_ascii.o unicode.o utf_8.o" --builtin-transes="newline.o" enc.mk | |
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb -I. ./tool/compile_prelude.rb ./prelude.rb ./enc/prelude.rb ./gem_prelude.rb prelude.c | |
gcc -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -fPIC -I. -I.ext/include/i386-solaris2.11 -I./include -I. -DRUBY_EXPORT -o prelude.o -c prelude.c | |
ar rcu libruby-static.a dln.o encoding.o version.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o flock.o isinf.o signbit.o prelude.o dmyext.o | |
gcc -shared -Wl,-h,libruby.so.1 dln.o encoding.o version.o array.o bignum.o class.o compar.o complex.o dir.o dln_find.o enum.o enumerator.o error.o eval.o load.o proc.o file.o gc.o hash.o inits.o io.o marshal.o math.o node.o numeric.o object.o pack.o parse.o process.o random.o range.o rational.o re.o regcomp.o regenc.o regerror.o regexec.o regparse.o regsyntax.o ruby.o safe.o signal.o sprintf.o st.o strftime.o string.o struct.o time.o transcode.o util.o variable.o compile.o debug.o iseq.o vm.o vm_dump.o thread.o cont.o ascii.o us_ascii.o unicode.o utf_8.o newline.o flock.o isinf.o signbit.o prelude.o dmyext.o -lpthread -lrt -lsocket -ldl -lcrypt -lm -o libruby.so.1 | |
gobjcopy -w -L 'Init_*' -L '*_threadptr_*' libruby.so.1 | |
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc | |
encdb.h unchanged | |
make -f enc.mk RUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " MINIRUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " enc | |
`enc' is up to date. | |
make -f enc.mk RUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " MINIRUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " srcs | |
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./tool/generic_erb.rb -c -o transdb.h ./template/transdb.h.tmpl ./enc/trans enc/trans | |
transdb.h unchanged | |
make -f enc.mk RUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " MINIRUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " ./enc/trans | |
`enc/trans' is up to date. | |
make -f enc.mk RUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " MINIRUBY="./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb " encs | |
/opt/local/bin/gmkdir -p .ext/i386-solaris2.11/enc .ext/i386-solaris2.11/enc/trans enc enc/trans | |
compiling -test-/bug-3662 | |
gcc -shared -o ../../../.ext/i386-solaris2.11/-test-/bug-3662/bug.so bug.o -L. -L../../.. -L. -lruby -lpthread -lrt -lsocket -ldl -lcrypt -lm -lc | |
*** Error code 1 | |
*** Error code 1 | |
The following command caused the error: | |
./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./ext/extmk.rb --make="make" --command-output=mkmain.sh --dest-dir="" --extout=".ext" --mflags="" --make-flags="" --extension --extstatic --make-flags="MINIRUBY='./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb '" -- | |
Any help with either of these problems would be very much appreciated | |
Many thanks, | |
Adam |
Did you ever find out how to build openssl or Ruby and remove that "referenced symbol not found" error?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update - this is not a Nokogiri problem! I removed the Nokogiri gem, I can now start a rails server but get the following error:
Full stack trace: