witharmshigh
witharmshigh

Reputation: 103

Error upgrading 1.9.2p180 to 1.9.3 with RVM on Lion

I'm getting this error when running the following command:

$ rvm upgrade 1.9.2-p180 1.9.3-p0
Are you sure you wish to upgrade from ruby-1.9.2-p180 to     ruby-1.9.3-p0? (Y/n): Y
Installing new ruby ruby-1.9.3-p0
Installing Ruby from source to: /Users/ericjones/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)...

ruby-1.9.3-p0 - #fetching 
ruby-1.9.3-p0 - #extracted to /Users/ericjones/.rvm/src/ruby-1.9.3-p0 (already extracted)
Fetching yaml-0.1.4.tar.gz to /Users/ericjones/.rvm/archives
Extracting yaml-0.1.4.tar.gz to /Users/ericjones/.rvm/src
Configuring yaml in /Users/ericjones/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/ericjones/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/ericjones/.rvm/usr
ruby-1.9.3-p0 - #configuring 
ruby-1.9.3-p0 - #compiling 
ERROR: Error running 'make ', please read /Users/ericjones/.rvm/log/ruby-1.9.3-p0/make.log
ERROR: There has been an error while running make. Halting the installation.
ERROR: Unable to install ruby ruby-1.9.3-p0.         Please install it manually to continue.

When i tail the log i get the following output:

installing default stringio libraries
installing default strscan libraries
installing default syck libraries
installing default syslog libraries
linking shared-object tcltklib.bundle
ld: in /usr/local/lib/libiconv.2.dylib, missing required architecture x86_64 in file for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [../../.ext/x86_64-darwin11.2.0/tcltklib.bundle] Error 1
make[1]: *** [ext/tk/all] Error 2
make: *** [build-ext] Error 2

Any ideas on how to move forward?

Upvotes: 1

Views: 1255

Answers (2)

witharmshigh
witharmshigh

Reputation: 103

This fixed it for me.

rm /usr/local/lib/libiconv.2.dylib
ln -s /usr/lib/libiconv.2.dylib /usr/local/lib/libiconv.2.dylib

kept my XCode 4.2 as well...

found at this blog: http://hello.keewooi.com/ruby-1-9-3-preview-1-available-now/

Upvotes: 9

the Tin Man
the Tin Man

Reputation: 160631

From the message it looks like your iconv isn't compiled for x86_64.

Check rvm notes and rvm requirements to see if they shed more light on the problem.

Upvotes: 0

Related Questions