Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing ruby 1.9.3 of osx mavricsmavrics

I am trying to install ruby 1.9.3 on my osx 10.9 operating system and I keep getting the following error :

Error running 'requirements_osx_port_update_system ruby-1.9.3-p448',
please read /Users/ramesh/.rvm/log/1383430694_ruby-1.9.3-p448/update_system.log
Requirements installation failed with status: 1.

I am using the following command to do the installtion :

 rvm install 1.9.3

The complete log is as given below :

 checking for Tcl configuration... configure: error: Can't find Tcl configuration  definitions
 Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed

Requirements update log :

checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1
Exit code: 1
DEBUG: Error installing new MacPorts base: command execution failed
while executing
"macports::selfupdate [array get global_options] base_updated"
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
like image 944
msrameshp Avatar asked Nov 02 '13 23:11

msrameshp


1 Answers

Finally I found the solution. I had to install the new command line tools for osx 10.9 (Mavrics) using the following command.

sudo xcode-select --install

Then I had to run the following command to do the macports selfupdate.

sudo port -v selfupdate

Then I can successfull install ruby 1.9.3 using the following command.

rvm install 1.9.3

Hope this will be helpful to anyone facing the same dilema.

like image 70
msrameshp Avatar answered Sep 23 '22 00:09

msrameshp