Fail update ruby from 1.8.2 to 1.8.5 (libruby18-static.a version
issue)
Gordon Pedersen
gordon at visi.com
Sun Sep 10 19:29:33 PDT 2006
Hi,
I need help overcoming an obstacle updating ruby 1.8.2 to 1.8.5.
I run FreeBSD 5.4-STABLE for i386 installed Sep 18 2005.
I just updated the ports tree like this:
# cvsup
# make fetchindex
# portsdb -Uu
"pkgdb -F" shows only a couple issue, and they are not ruby-applicable:
"stale origin" for acroread, plus some linux-atk related stale
dependencies.
I fail to build ruby as both static and non-static with same
error message:
# cd /usr/ports/lang/ruby18 or /usr/ports/lang/ruby18_static
# make
The make fails on this line with accompanying error message.
cc main.o libruby18-static.a -lcrypt -lm -pthread -o miniruby -0 -pipe -march=pentiumpro -fPIC -DRUBY_EXPORT -rdynamic
/usr/local/lib/ruby/1.8/i386-freebsd5/rbconfig.rb:7: ruby lib version (1.8.2) doesn't match executable version (1.8.5) (RuntimeError)
<snip: ...site_ruby/1.8/rubygems 'require' messages>
***Error code 1
Stop in /usr/ports/lang/ruby18/work/ruby-1.8.5.
I notice that libruby18-static.a exists in 2 places:
-rw-r--r-- 1 root wheel 1240338 Sep 30 2005 /usr/local/lib/libruby18-static
-rw-r--r-- 1 root wheel 1265402 Sep 10 21:11 /usr/ports/lang/ruby18/work/ruby-1.8.5/libruby18-static.a
Seems like somehow I could use the latter newer version but I
don't know how to configure for this when using "make" in the
ports.
Or maybe there is a better way. Couldn't find applicable
suggestions using google or the search feature for this mailing
list.
Am not sure of good way to update ruby, any help so I understand
how to manage this and potential other critical components like
perl is appreciated.
Thanks for suggestions.
--
Gordon Pedersen gordon at visi.com
More information about the freebsd-questions
mailing list