RVM telepítés OS X-en

By | 2014. február 02.

Telepíteni akartam az RVM-et Mac-en, de állandóan elfüstölt már az elején, amikor a MacPort-ot akarta felrakni. A hiba így nézett ki:

rvm 1.25.16 (stable) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.8/x86_64/ruby-2.1.0.tar.bz2
Checking requirements for osx.
Installing requirements for osx.
Updating systemxxx password required for '__rvm_sed -i -e s#^\(Trees: .*\)$#\1 unstable/main# /sw/etc/fink.conf':
.....
Error running 'requirements_osx_fink_update_system ruby-2.1.0',
showing last 15 lines of /Volumes/Users/xxx/.rvm/log/1391351277_ruby-2.1.0/update_system.log
Installing build-lock package...
/sw/bin/dpkg-lockwait -i /sw/src/fink.build/fink-buildlock-fink-0.36.3.1-61_2014.02.02-14.28.12_darwin-x86_64.deb
Selecting previously deselected package fink-buildlock-fink-0.36.3.1-61.
(Reading database ... 28708 files and directories currently installed.)
Unpacking fink-buildlock-fink-0.36.3.1-61 (from .../fink-buildlock-fink-0.36.3.1-61_2014.02.02-14.28.12_darwin-x86_64.deb) ...
Setting up fink-buildlock-fink-0.36.3.1-61 (2014.02.02-14.28.12) ...

Use of uninitialized value $darwin_osx in numeric eq (==) at /sw/lib/perl5/Fink/Services.pm line 1328.
Use of uninitialized value $darwin_osx in concatenation (.) or string at /sw/lib/perl5/Fink/Services.pm line 1328.
Argument "10.8 does not match the expected value of . Please run `..." isn't numeric in exit at /sw/lib/perl5/Fink/Services.pm line 1328.
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-fink-0.36.3.1-61
(Reading database ... 28709 files and directories currently installed.)
Removing fink-buildlock-fink-0.36.3.1-61 ...
Requirements installation failed with status: 10.

Volt fent Fink-em, és láttam, hogy MacPort-ot akar feltolni, gondoltam összeütköznek. Ezért, mivel amúgy sem használtam már a Fink-et, leszedtem ez alapján. Után újra nekifutottam. Jobban festett a helyzet, de újra hiába futottam:

Searching for binary rubies, this might take some time.
Found remote file https://rvm.io/binaries/osx/10.8/x86_64/ruby-2.1.0.tar.bz2
Checking requirements for osx.
Installing macports.......................................................
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
/Volumes/Users/xxx/.rvm/scripts/functions/requirements/osx_port: line 34: port: command not found
Installing requirements for osx.
Updating system.
Error running 'requirements_osx_port_update_system ruby-2.1.0',
showing last 15 lines of /Volumes/Users/xxx/.rvm/log/1391351682_ruby-2.1.0/update_system.log
[2014-02-02 14:35:03] requirements_osx_port_update_system
requirements_osx_port_update_system ()
{
&nbsp;&nbsp;&nbsp; __rvm_try_sudo port -dv selfupdate || return $?
}
current path: /Volumes/Users/xxx/.rvm/src/rvm
PATH=/Volumes/Users/xxx/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/Volumes/Users/xxx/.rvm/bin
command(2): requirements_osx_port_update_system ruby-2.1.0
sudo: port: command not found
Requirements installation failed with status: 1.

Természetesen elkezdtem túrni a guglit, hogy mi lehet a baj…  végül rájöttem, hogy ez a szerencsétlen nem tudja magát feltolni, mivel ugyan Xcode-om van, de az Xcode license in Terminal még nem került elfogadásra korábban. Ezért ki kellett adni a következő paracsot:

$ sudo xcodebuild -license

Azán újra megkíséreltem a telepítést és minden felment elsőre. Jee!

 

Hasonló cikkek

Mac és az RDP esete Újabb OSX probléma. Bár ez azóta probléma számomra, amióta Mac-et (is) használok... De kezdjük az elején. Régebben, amíg csak Windows-on dolgoztam ott...
3-way merge tool Git-hez – P4Merge Aki már dolgozott verziókövető rendszerekkel, tudja, hogy amikor kódot írunk, ráadásul nem egyedül, hanem csapatban fejlesztünk, óhatatlan, hogy egy m...
Rejtett file-ok Finder-ben Több módja is van annak, hogy láthatóvá tegyük a rejtett file-okat a Finde-ben. Többnyire valamilyen alkalmazás segítségével egy checkbox bejelölése a...
Apache újraindítása Terminal-ból OSX-ben Két mód is kínálkozik rá: $ sudo apachectl -k restart vagy $ sudo /usr/sbin/apachectl restart Az eredmény ugyan az... sikeres restart! :)  ...