Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mac$ #------------------------------------------------------------------------#
- Rs-Mac-mini:~ mac$
- Rs-Mac-mini:~ mac$ rbenv init
- # Load rbenv automatically by appending
- # the following to ~/.bash_profile:
- eval "$(rbenv init -)"
- Rs-Mac-mini:~ mac$ ls -l
- total 0
- drwx------+ 5 mac staff 170 Jan 21 23:48 Desktop
- drwx------+ 3 mac staff 102 Jan 7 13:26 Documents
- drwx------+ 3 mac staff 102 Jan 7 13:26 Downloads
- drwx------@ 53 mac staff 1802 Jan 21 23:48 Library
- drwx------+ 3 mac staff 102 Jan 7 13:26 Movies
- drwx------+ 3 mac staff 102 Jan 7 13:26 Music
- drwx------+ 3 mac staff 102 Jan 7 13:26 Pictures
- drwxr-xr-x+ 5 mac staff 170 Jan 7 13:26 Public
- Rs-Mac-mini:~ mac$ ls -la
- total 8
- drwxr-xr-x+ 13 mac staff 442 Jan 21 23:21 .
- drwxr-xr-x 5 root admin 170 Jan 7 13:26 ..
- -r-------- 1 mac staff 7 Jan 7 13:26 .CFUserTextEncoding
- drwx------ 2 mac staff 68 Jan 21 19:22 .Trash
- drwx------ 3 mac staff 102 Jan 21 23:21 .bash_sessions
- drwx------+ 5 mac staff 170 Jan 21 23:48 Desktop
- drwx------+ 3 mac staff 102 Jan 7 13:26 Documents
- drwx------+ 3 mac staff 102 Jan 7 13:26 Downloads
- drwx------@ 53 mac staff 1802 Jan 21 23:48 Library
- drwx------+ 3 mac staff 102 Jan 7 13:26 Movies
- drwx------+ 3 mac staff 102 Jan 7 13:26 Music
- drwx------+ 3 mac staff 102 Jan 7 13:26 Pictures
- drwxr-xr-x+ 5 mac staff 170 Jan 7 13:26 Public
- Rs-Mac-mini:~ mac$ pwd
- /Users/mac
- Rs-Mac-mini:~ mac$ nano .bash_profile
- Rs-Mac-mini:~ mac$ ls -la
- total 16
- drwxr-xr-x+ 14 mac staff 476 Jan 22 00:10 .
- drwxr-xr-x 5 root admin 170 Jan 7 13:26 ..
- -r-------- 1 mac staff 7 Jan 7 13:26 .CFUserTextEncoding
- drwx------ 2 mac staff 68 Jan 21 19:22 .Trash
- -rw-r--r-- 1 mac staff 52 Jan 22 00:10 .bash_profile
- drwx------ 3 mac staff 102 Jan 21 23:21 .bash_sessions
- drwx------+ 5 mac staff 170 Jan 21 23:48 Desktop
- drwx------+ 3 mac staff 102 Jan 7 13:26 Documents
- drwx------+ 3 mac staff 102 Jan 7 13:26 Downloads
- drwx------@ 53 mac staff 1802 Jan 21 23:48 Library
- drwx------+ 3 mac staff 102 Jan 7 13:26 Movies
- drwx------+ 3 mac staff 102 Jan 7 13:26 Music
- drwx------+ 3 mac staff 102 Jan 7 13:26 Pictures
- drwxr-xr-x+ 5 mac staff 170 Jan 7 13:26 Public
- Rs-Mac-mini:~ mac$ rbenv init
- # Load rbenv automatically by appending
- # the following to ~/.bash_profile:
- eval "$(rbenv init -)"
- Rs-Mac-mini:~ mac$ cat .bash_profile
- # my bash profile
- echo "Running ... .bash_profile
- Rs-Mac-mini:~ mac$ nano .bash_profile
- Rs-Mac-mini:~ mac$ cat .bash_profile
- # my bash profile
- echo "Running ... .bash_profile"
- Rs-Mac-mini:~ mac$ cat .bash_profile
- # my bash profile
- echo "Running ... .bash_profile"
- Rs-Mac-mini:~ mac$ rbenv init
- # Load rbenv automatically by appending
- # the following to ~/.bash_profile:
- eval "$(rbenv init -)"
- Rs-Mac-mini:~ mac$ cat .bash_profile
- # my bash profile
- echo "Running ... .bash_profile"
- Rs-Mac-mini:~ mac$ rbenv install 2.4.2
- ruby-build: use openssl from homebrew
- Downloading ruby-2.4.2.tar.bz2...
- -> https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.2.tar.bz2
- Installing ruby-2.4.2...
- Installed ruby-2.4.2 to /Users/mac/.rbenv/versions/2.4.2
- Rs-Mac-mini:~ mac$ rbenv global 2.4.2
- Rs-Mac-mini:~ mac$ ls -l
- total 0
- drwx------+ 5 mac staff 170 Jan 21 23:48 Desktop
- drwx------+ 3 mac staff 102 Jan 7 13:26 Documents
- drwx------+ 3 mac staff 102 Jan 7 13:26 Downloads
- drwx------@ 53 mac staff 1802 Jan 21 23:48 Library
- drwx------+ 3 mac staff 102 Jan 7 13:26 Movies
- drwx------+ 3 mac staff 102 Jan 7 13:26 Music
- drwx------+ 3 mac staff 102 Jan 7 13:26 Pictures
- drwxr-xr-x+ 5 mac staff 170 Jan 7 13:26 Public
- Rs-Mac-mini:~ mac$ ls -la
- total 16
- drwxr-xr-x+ 16 mac staff 544 Jan 22 00:14 .
- drwxr-xr-x 5 root admin 170 Jan 7 13:26 ..
- -r-------- 1 mac staff 7 Jan 7 13:26 .CFUserTextEncoding
- drwx------ 2 mac staff 68 Jan 21 19:22 .Trash
- -rw-r--r-- 1 mac staff 53 Jan 22 00:11 .bash_profile
- drwx------ 3 mac staff 102 Jan 21 23:21 .bash_sessions
- drwxr-xr-x 5 mac staff 170 Jan 22 00:21 .rbenv
- drwxr-xr-x 6 mac staff 204 Jan 22 00:14 .subversion
- drwx------+ 5 mac staff 170 Jan 21 23:48 Desktop
- drwx------+ 3 mac staff 102 Jan 7 13:26 Documents
- drwx------+ 3 mac staff 102 Jan 7 13:26 Downloads
- drwx------@ 53 mac staff 1802 Jan 21 23:48 Library
- drwx------+ 3 mac staff 102 Jan 7 13:26 Movies
- drwx------+ 3 mac staff 102 Jan 7 13:26 Music
- drwx------+ 3 mac staff 102 Jan 7 13:26 Pictures
- drwxr-xr-x+ 5 mac staff 170 Jan 7 13:26 Public
- Rs-Mac-mini:~ mac$ cat .bash_profile
- # my bash profile
- echo "Running ... .bash_profile"
- Rs-Mac-mini:~ mac$ nano hello.rb
- Rs-Mac-mini:~ mac$ ls
- Desktop Downloads Movies Pictures hello.rb
- Documents Library Music Public
- Rs-Mac-mini:~ mac$ ./hello.rb
- -bash: ./hello.rb: Permission denied
- Rs-Mac-mini:~ mac$ chmod 777 hello.rb
- Rs-Mac-mini:~ mac$ ./hello.rb
- -bash: ./hello.rb: /bin/ruby: bad interpreter: No such file or directory
- Rs-Mac-mini:~ mac$ ruby hello.rb
- Hello, World!
- Rs-Mac-mini:~ mac$ which ruby
- /usr/bin/ruby
- Rs-Mac-mini:~ mac$ ruby -v
- ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]
- Rs-Mac-mini:~ mac$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement