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 <[email protected]>, Michal Papis <[email protected]> [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

Hogyan csináljunk videót képekből Windowson Adott egy könyvtár, amiben van több száz alkönyvtár, amelyek mindegyikében van több ezer jpg kép. Ezekből kellene videót gyártani... automatizáltan......
Git szerver telepítés Synology NAS-on Az otthoni munkáim során is szükség van verziókövető rendszerre a fejlesztéseknél. A legkézenfekvőbb megoldás, hogy a már amúgy is használatban lévő N...
NodeJs NPM – A nyakkendős modulraktáros A előző NodeJs postban a modulokat taglaltam. Most nézzük meg, hogy mi van, ha nem mi írunk magunknak, hanem már előre elkészített modul-csomagokat sz...
APE Server – 1. rész: A Majom leszállt Tegnap Friday afternoon Project keretén belül elkezdtem feltelepíteni egy APE szervert. Már rég óta tervezem ezt, de eddig még nem jutott rá időm sajn...