简体   繁体   中英

Cannot port install Ruby

I am having trouble installing ruby through mac ports. The error that I am receiving is this one:

:error:extract org.macports.extract for port ruby returned: command execution failed
:debug:extract Error code: NONE
:debug:extract Backtrace: command execution failed
while executing
"$procedure $targetname"
:info:extract Warning: targets not executed for ruby: org.macports.activate  

Can anyone help with this error? So far I have tried doing:

port -v selfupdate
xcodebuild -license agree

Neither of those seemed to fix my target issue.

Anyone have other tips?

I am not experienced using macports , and would rather prefer homebrew over it, at the moment.

However, to install Ruby (or specific versions of Ruby), I would really recommend using rbenv or RVM .

It seems that you are new to ruby, and if that is the case, I would further advice you to use rbenv over RVM . You will find it more pleasant, at the moment. Just my 2 cents.

To fix this problem what I had to do was go to the MacPorts webpage, download the new Mavericks MacPorts package, and run through that installation. I thought that doing a port -v selfupdate would update my current MacPorts to the Mavericks OS MacPorts but unfortunately it did not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM