您的位置:首页 > 编程语言 > Ruby

Theos的安装

2017-09-26 21:40 1126 查看
下面用##来标记的都是执行步骤。

大家可以对比自己的终端来慢慢观看。

##
## [STEP ONE]
## ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ##

WiKs-Air-18618193883:~ WiKi$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/lib
/usr/local/sbin
/usr/local/share/man/man8
==> The following existing directories will have their owner set to WiKi:
/usr/local/lib
/usr/local/sbin
/usr/local/share/man/man8
==> The following existing directories will have their group set to admin:
/usr/local/lib
/usr/local/sbin
/usr/local/share/man/man8
==> The following new directories will be created:
/usr/local/Cellar
/usr/local/Homebrew
/usr/local/Frameworks
/usr/local/etc
/usr/local/include
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var

##
## [STEP TWO]
## 按下回车键继续
##

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/lib /usr/local/sbin /usr/local/share/man/man8

##
## [STEP THREE]
## 输入电脑的最高权限密码
##

Password:
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/lib /usr/local/sbin /usr/local/share/man/man8
==> /usr/bin/sudo /usr/sbin/chown WiKi /usr/local/lib /usr/local/sbin /usr/local/share/man/man8
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/lib /usr/local/sbin /usr/local/share/man/man8
==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown WiKi /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/etc /usr/local/include /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var
==> /usr/bin/sudo /bin/mkdir -p /Users/apple/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/apple/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown WiKi /Users/apple/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/bin/chgrp admin /Users/apple/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown WiKi /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
remote: Counting objects: 91258, done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 91258 (delta 7), reused 10 (delta 3), pack-reused 91234
Receiving objects: 100% (91258/91258), 21.14 MiB | 433.00 KiB/s, done.
Resolving deltas: 100% (66063/66063), done.
From https://github.com/Homebrew/brew * [new branch]          master     -> origin/master
* [new tag]             0.1        -> 0.1
* [new tag]             0.2        -> 0.2
* [new tag]             0.3        -> 0.3
* [new tag]             0.4        -> 0.4
* [new tag]             0.5        -> 0.5
* [new tag]             0.6        -> 0.6
* [new tag]             0.7        -> 0.7
* [new tag]             0.7.1      -> 0.7.1
* [new tag]             0.8        -> 0.8
* [new tag]             0.8.1      -> 0.8.1
* [new tag]             0.9        -> 0.9
* [new tag]             0.9.1      -> 0.9.1
* [new tag]             0.9.2      -> 0.9.2
* [new tag]             0.9.3      -> 0.9.3
* [new tag]             0.9.4      -> 0.9.4
* [new tag]             0.9.5      -> 0.9.5
* [new tag]             0.9.8      -> 0.9.8
* [new tag]             0.9.9      -> 0.9.9
* [new tag]             1.0.0      -> 1.0.0
* [new tag]             1.0.1      -> 1.0.1
* [new tag]             1.0.2      -> 1.0.2
* [new tag]             1.0.3      -> 1.0.3
* [new tag]             1.0.4      -> 1.0.4
* [new tag]             1.0.5      -> 1.0.5
* [new tag]             1.0.6      -> 1.0.6
* [new tag]             1.0.7      -> 1.0.7
* [new tag]             1.0.8      -> 1.0.8
* [new tag]             1.0.9      -> 1.0.9
* [new tag]             1.1.0      -> 1.1.0
* [new tag]             1.1.1      -> 1.1.1
* [new tag]             1.1.10     -> 1.1.10
* [new tag]             1.1.11     -> 1.1.11
* [new tag]             1.1.12     -> 1.1.12
* [new tag]             1.1.13     -> 1.1.13
* [new tag]             1.1.2      -> 1.1.2
* [new tag]             1.1.3      -> 1.1.3
* [new tag]             1.1.4      -> 1.1.4
* [new tag]             1.1.5      -> 1.1.5
* [new tag]             1.1.6      -> 1.1.6
* [new tag]             1.1.7      -> 1.1.7
* [new tag]             1.1.8      -> 1.1.8
* [new tag]             1.1.9      -> 1.1.9
* [new tag]             1.2.0      -> 1.2.0
* [new tag]             1.2.1      -> 1.2.1
* [new tag]             1.2.2      -> 1.2.2
* [new tag]             1.2.3      -> 1.2.3
* [new tag]             1.2.4      -> 1.2.4
* [new tag]             1.2.5      -> 1.2.5
* [new tag]             1.2.6      -> 1.2.6
* [new tag]             1.3.0      -> 1.3.0
* [new tag]             1.3.1      -> 1.3.1
* [new tag]             1.3.2      -> 1.3.2
* [new tag]             1.3.3      -> 1.3.3
* [new tag]             1.3.4      -> 1.3.4
HEAD is now at 24d747597 Merge pull request #3214 from ilovezfs/bump-formula-pr-fix-duplicates-check
==> Downloading https://homebrew.bintray.com/bottles-portable/portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz ######################################################################## 100.0%
==> Pouring portable-ruby-2.3.3.leopard_64.bottle.1.tar.gz
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Counting objects: 4583, done.
remote: Compressing objects: 100% (4374/4374), done.
remote: Total 4583 (delta 28), reused 349 (delta 6), pack-reused 0
Receiving objects: 100% (4583/4583), 3.82 MiB | 377.00 KiB/s, done.
Resolving deltas: 100% (28/28), done.
Tapped 4365 formulae (4,629 files, 11.9MB)
==> Cleaning up /Library/Caches/Homebrew...
==> Migrating /Library/Caches/Homebrew to /Users/apple/Library/Caches/Homebrew..
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
Error: Could not link:
/usr/local/share/man/man1/brew.1

Please delete these paths and run `brew update`.
Error: Could not link:
/usr/local/share/doc/homebrew

Please delete these paths and run `brew update`.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate user behaviour analytics.
Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics.html 
==> Next steps:
- Run `brew help` to get started
- Further documentation: https://docs.brew.sh 
##
## [STEP FOUR]
##  brew install dpkg ldid
##

WiKs-Air-18618193883:~ WiKi$ brew install dpkg ldid
==> Installing dependencies for dpkg: gnu-tar, gpatch, xz
==> Installing dpkg dependency: gnu-tar
==> Downloading https://homebrew.bintray.com/bottles/gnu-tar-1.29_1.sierra.bottl ######################################################################## 100.0%
==> Pouring gnu-tar-1.29_1.sierra.bottle.tar.gz
==> Caveats
gnu-tar has been installed as "gtar".

If you really need to use it as "tar", you can add a "gnubin" directory
to your PATH from your bashrc like:

PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"

Additionally, you can access their man pages with normal names if you add
the "gnuman" directory to your MANPATH from your bashrc as well:

MANPATH="/usr/local/opt/gnu-tar/libexec/gnuman:$MANPATH"

==> Summary
��  /usr/local/Cellar/gnu-tar/1.29_1: 15 files, 1.7MB
==> Installing dpkg dependency: gpatch
==> Downloading https://homebrew.bintray.com/bottles/gpatch-2.7.5.sierra.bottle. ######################################################################## 100.0%
==> Pouring gpatch-2.7.5.sierra.bottle.tar.gz
��  /usr/local/Cellar/gpatch/2.7.5: 10 files, 290.6KB
==> Installing dpkg dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.3.sierra.bottle.tar. ######################################################################## 100.0%
==> Pouring xz-5.2.3.sierra.bottle.tar.gz
��  /usr/local/Cellar/xz/5.2.3: 92 files, 1.4MB
==> Installing dpkg
==> Downloading https://homebrew.bintray.com/bottles/dpkg-1.18.24.sierra.bottle. ######################################################################## 100.0%
==> Pouring dpkg-1.18.24.sierra.bottle.tar.gz
==> Caveats
This installation of dpkg is not configured to install software, so
commands such as `dpkg -i`, `dpkg --configure` will fail.
==> Summary
��  /usr/local/Cellar/dpkg/1.18.24: 280 files, 5.6MB
==> Installing dependencies for ldid: openssl
==> Installing ldid dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2l.sierra.bottl ######################################################################## 100.0%
==> Pouring openssl-1.0.2l.sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs

and run
/usr/local/opt/openssl/bin/c_rehash

This formula is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
LDFLAGS:  -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary
��  /usr/local/Cellar/openssl/1.0.2l: 1,709 files, 12.2MB
==> Installing ldid
==> Downloading https://homebrew.bintray.com/bottles/ldid-1.2.1.sierra.bottle.1. ######################################################################## 100.0%
==> Pouring ldid-1.2.1.sierra.bottle.1.tar.gz
��  /usr/local/Cellar/ldid/1.2.1: 3 files, 329.9KB

##
##[STEP FIVE]
## sudo git clone --recursive https://github.com/theos/theos.git /opt/theos
##

WiKs-Air-18618193883:~ WiKi$ sudo git clone --recursive https://github.com/theos/theos.git /opt/theos

##
## [STEP SIX]
## 输入电脑密码
##

Password:

Cloning into '/opt/theos'...
remote: Counting objects: 7619, done.
remote: Total 7619 (delta 0), reused 0 (delta 0), pack-reused 7619
Receiving objects: 100% (7619/7619), 1.92 MiB | 179.00 KiB/s, done.
Resolving deltas: 100% (4683/4683), done.
Submodule 'vendor/include' (https://github.com/theos/headers.git) registered for path 'vendor/include'
Submodule 'vendor/lib' (https://github.com/theos/lib.git) registered for path 'vendor/lib'
Cloning into '/opt/theos/vendor/include'...
remote: Counting objects: 1810, done.
remote: Total 1810 (delta 0), reused 0 (delta 0), pack-reused 1810
Receiving objects: 100% (1810/1810), 635.46 KiB | 113.00 KiB/s, done.
Resolving deltas: 100% (725/725), done.
Cloning into '/opt/theos/vendor/lib'...
remote: Counting objects: 425, done.
remote: Total 425 (delta 0), reused 0 (delta 0), pack-reused 425
Receiving objects: 100% (425/425), 402.63 KiB | 29.00 KiB/s, done.
Resolving deltas: 100% (177/177), done.
Submodule path 'vendor/include': checked out '609a308c1333ac3c409307fdd5ae2071981e4242'
Submodule 'CaptainHook' (https://github.com/rpetrich/CaptainHook.git) registered for path 'vendor/include/CaptainHook'
Submodule 'LightMessaging' (https://github.com/rpetrich/LightMessaging.git) registered for path 'vendor/include/LightMessaging'
Submodule 'libactivator' (https://github.com/rpetrich/libactivator.git) registered for path 'vendor/include/libactivator'
Submodule 'rocketbootstrap' (https://github.com/rpetrich/rocketbootstrap.git) registered for path 'vendor/include/rocketbootstrap'
Cloning into '/opt/theos/vendor/include/CaptainHook'...
remote: Counting objects: 126, done.
remote: Total 126 (delta 0), reused 0 (delta 0), pack-reused 126
Receiving objects: 100% (126/126), 26.07 KiB | 104.00 KiB/s, done.
Resolving deltas: 100% (38/38), done.
Cloning into '/opt/theos/vendor/include/LightMessaging'...
remote: Counting objects: 83, done.
remote: Total 83 (delta 0), reused 0 (delta 0), pack-reused 83
Cloning into '/opt/theos/vendor/include/libactivator'...
remote: Counting objects: 4804, done.
remote: Total 4804 (delta 0), reused 0 (delta 0), pack-reused 4804
Receiving objects: 100% (4804/4804), 1.43 MiB | 94.00 KiB/s, done.
Resolving deltas: 100% (2432/2432), done.
Cloning into '/opt/theos/vendor/include/rocketbootstrap'...
remote: Counting objects: 425, done.
remote: Total 425 (delta 0), reused 0 (delta 0), pack-reused 425
Receiving objects: 100% (425/425), 108.88 KiB | 59.00 KiB/s, done.
Resolving deltas: 100% (199/199), done.
Submodule path 'vendor/include/CaptainHook': checked out 'fcd8c1d1596688dc6f6e443114394ca4954a70f4'
Submodule path 'vendor/include/LightMessaging': checked out '7a8e049c4059e1df1ff2f9669afa7ca4eedfb65b'
Submodule path 'vendor/include/libactivator': checked out 'bfac8ee70e8ad6560305dc7f0fa586c1b5696ef1'
Submodule path 'vendor/include/rocketbootstrap': checked out 'bd54f4ac8452ce2dc2978459afc262440ce94f19'
Submodule 'LightMessaging' (git://github.com/rpetrich/LightMessaging.git) registered for path 'vendor/include/rocketbootstrap/LightMessaging'
Cloning into '/opt/theos/vendor/include/rocketbootstrap/LightMessaging'...
remote: Counting objects: 83, done.
remote: Total 83 (delta 0), reused 0 (delta 0), pack-reused 83
Receiving objects: 100% (83/83), 34.81 KiB | 114.00 KiB/s, done.
Resolving deltas: 100% (45/45), done.
Submodule path 'vendor/include/rocketbootstrap/LightMessaging': checked out '496257b11c3e906333797639355db9a43015eb50'
Submodule path 'vendor/lib': checked out '639633b40f1b3e0b9cedfad7ec1feab2e5432033'

##
## [STEP SEVEN]
## sudo chown $(id -u):$(id -g) /opt/theos
##

WiKs-Air-18618193883:~ WiKi$ sudo chown $(id -u):$(id -g) /opt/theos
WiKs-Air-18618193883:~ WiKi$ ls
Applications         Music                chmod
Desktop              Pictures             master
Documents            Public               mycoding_rsa
Downloads            Sites                mycoding_rsa.pub
Library              VirtualBox VMs       prapx.log
Movies               appledoc             support@leancloud.cn

##
## [STEP EIGHT]
## 在〜./ bash_profile中加上这么两句:
## cat .bash_profile
## export THEOS=/opt/theos
## export PATH=/opt/theos/bin/:$PATH

## 如果没有./bash_profile文件,那么就用vim编辑来创建一个
## vim .bash_profile命令来创建,并且用编辑模式在里面添加两行
## export THEOS=/opt/theos
## export PATH=/opt/theos/bin/:$PATH
## 切记,不要随便多加空格哦!
##

WiKs-Air-18618193883:~ WiKi$ cat .bash_profile
# mysql
alias mysql='/usr/local/mysql/bin/mysql'
alias mysqladmin='/usr/local/mysql/binmysqladmin'
# ls
alias ls='ls -G'

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

WiKs-Air-18618193883:~ WiKi$ vim .bash_profile

##
## [STEP NINE]
##  sudo chown $(id -u):$(id -g) /opt/theos
##

WiKs-Air-18618193883:~ WiKi$ sudo chown $(id -u):$(id -g) /opt/theos
Password:

##
## [STEP TEN]
## ls -al 查看一下是否有 .bash_profile文件。
##

WiKs-Air-18618193883:~ WiKi$ ls -al
total 368
drwxr-xr-x+  67 WiKi  staff   2278  9 26 21:06 .
drwxr-xr-x    6 root  admin    204  4  7 14:10 ..
drwxr-xr-x    3 WiKi  staff    102  4 28  2015 .163ui
-rw-r--r--@   1 WiKi  staff     16  3 18  2015 .:F89AA64
-rw-r--r--@   1 WiKi  staff     16  3 10  2015 .AB64CF89
-r--------    1 WiKi  staff      9  4  7 14:19 .CFUserTextEncoding
-rw-r--r--@   1 WiKi  staff  18436  9 26 16:42 .DS_Store
drwx------    6 WiKi  staff    204  9 26 17:25 .Trash
drwxr-xr-x    3 WiKi  staff    102  5  9  2016 .ZendStudio
drwxr-xr-x    5 WiKi  staff    170  5 16 16:45 .android
drwxr-xr-x    5 WiKi  staff    170  5 11  2016 .appledoc
-rw-------    1 WiKi  staff   9889 12  9  2015 .bash_history
-rw-r--r--@   1 WiKi  staff    316  9 26 21:06 .bash_profile
drwx------  488 WiKi  staff  16592  9 26 20:46 .bash_sessions
-rw-r--r--    1 WiKi  staff     68 12  9  2015 .bashrc
drwxr-xr-x    4 WiKi  staff    136 11 21  2016 .cocoapods
drwxr-xr-x    5 WiKi  staff    170  8 24  2015 .config
drwx------    3 WiKi  staff    102  1 17  2017 .cups
-r--------    1 WiKi  staff     20  6 15  2015 .erlang.cookie
drwxr-xr-x    4 WiKi  staff    136  3 15  2015 .gem
-rw-r--r--    1 WiKi  staff    118  1 19  2016 .gemrc
-rw-r--r--    1 WiKi  staff    653  9 25 10:58 .gitconfig
-rw-r--r--@   1 WiKi  staff     44  8 25  2015 .gitignore_global
-rw-r--r--@   1 WiKi  staff     57  8 25  2015 .hgignore_global
drwxr-xr-x   12 WiKi  staff    408  9  6 15:26 .itmstransporter
-rw-------    1 WiKi  staff     59  6 22  2015 .lesshst
-rw-r--r--    1 WiKi  staff     77  2  2  2016 .lldbinit
drwxr-xr-x    3 WiKi  staff    102  4 22  2015 .local
-rw-r--r--    1 WiKi  staff     68 12  9  2015 .mkshrc
-rw-------    1 WiKi  staff      5  5  5  2016 .mysql_history
-rw-------    1 WiKi  staff      5  5  5  2016 .mysql_history.TMP
-rw-------    1 WiKi  staff     99 11 28  2016 .netrc
drwxr-xr-x    3 WiKi  staff    102  5  9  2016 .oracle_jre_usage
-rw-r--r--    1 WiKi  staff    186 12  9  2015 .profile
drwx------    3 WiKi  staff    102  6  7  2016 .putty
drwxr-xr-x   30 WiKi  staff   1020 12  9  2015 .rvm
drwxr-xr-x   66 WiKi  staff   2244  9 26 20:14 .sogouinput
drwx------   11 WiKi  staff    374  4 17 23:58 .ssh
-rw-r--r--@   1 WiKi  staff      0  4 17 22:43 .stCommitMsg
drwxr-xr-x    6 WiKi  staff    204  2 13  2015 .subversion
-rw-------    1 WiKi  staff  12288  3 24  2015 .swp
drwxr-xr-x@   5 WiKi  staff    170  3 17  2017 .tenpaycert
-rw-------    1 WiKi  staff   8072  9 26 21:06 .viminfo
drwx------    4 WiKi  staff    136  7  1  2016 .vnc
drwxr-xr-x    6 WiKi  staff    204  2 15  2016 .yunpan
drwxr-xr-x    3 WiKi  staff    102  5  9  2016 .zend
-rw-r--r--    1 WiKi  staff    118 12  9  2015 .zlogin
-rw-r--r--    1 WiKi  staff      5  5  9  2016 .zs
-rw-r--r--    1 WiKi  staff     68 12  9  2015 .zshrc
drwxr-xr-x    4 WiKi  staff    136  7  1  2016 Applications
drwx------+  28 WiKi  staff    952  9 26 18:26 Desktop
drwx------+  31 WiKi  staff   1054  9 12 18:56 Documents
drwx------+  27 WiKi  staff    918  9 26 18:26 Downloads
drwx------@  80 WiKi  staff   2720  9 25 11:27 Library
drwx------+   7 WiKi  staff    238  4 27  2016 Movies
drwx------+   9 WiKi  staff    306  6 13 14:19 Music
drwx------+   5 WiKi  staff    170  9  6 16:59 Pictures
drwxr-xr-x+   6 WiKi  staff    204  5 17 14:45 Public
drwxr-xr-x    4 root  staff    136  5  5  2016 Sites
drwx------    3 WiKi  staff    102  5 16 16:44 VirtualBox VMs
drwxr-xr-x   33 WiKi  staff   1122 10  9  2016 appledoc
drwxr-xr-x    2 WiKi  staff     68  5  5  2016 chmod
-rw-r--r--    1 WiKi  staff      0 12  9  2015 master
-rw-------    1 WiKi  staff   3326  3 24  2016 mycoding_rsa
-rw-r--r--    1 WiKi  staff    744  3 24  2016 mycoding_rsa.pub
-rw-r--r--    1 WiKi  staff  42586  4  7  2016 prapx.log
-rw-r--r--    1 WiKi  staff      0 10  9  2015 support@leancloud.cn
WiKs-Air-18618193883:~ WiKi$ cat .bash_pro*
# mysql
alias mysql='/usr/local/mysql/bin/mysql'
alias mysqladmin='/usr/local/mysql/binmysqladmin'
# ls
alias ls='ls -G'

[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*

export THEOS=/opt/theos
export PATH=/opt/theos/bin/:$PATH

##
## 接下来测试是否安装成功:
## 切换到我们需要创建代码的目录..新建第一个项目 注意!这个目录不要有中文 cd到这个目录下来
##

WiKs-Air-18618193883:~ WiKi$ cd Desktop/yuyueceshi/

##
## nic.pl
## 创建一个工程。如果有反应,就是成功。
##

WiKs-Air-18618193883:yuyueceshi WiKi$ nic.pl
NIC 2.0 - New Instance Creator
------------------------------
[1.] iphone/activator_event
[2.] iphone/application_modern
[3.] iphone/cydget
[4.] iphone/flipswitch_switch
[5.] iphone/framework
[6.] iphone/ios7_notification_center_widget
[7.] iphone/library
[8.] iphone/notification_center_widget
[9.] iphone/preference_bundle_modern
[10.] iphone/tool
[11.] iphone/tweak
[12.] iphone/xpc_service
Choose a Template (required):

##
## 恭喜你!!!安装成功!!!!
##
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ruby theos mac