我对 linux 及其 shell 完全陌生。我正在尝试按照 http://iphonedevwiki.net/index.php/Theos/Getting_Started#NIC_Example 上的教程进行操作安装 Theos 并部署应用程序,但是我在执行第 4 步时遇到问题
下载ldid到$THEOS/bin:
git clone git://git.saurik.com/ldid.git
cd ldid
git submodule update --init
./make.sh
cp -f ./ldid $THEOS/bin/ldid
第一个命令运行,我得到以下输出
Cloning into 'ldid'...
remote: Counting objects: 175, done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 175 (delta 93), reused 102 (delta 56)
Receiving objects: 100% (175/175), 50.31 KiB | 0 bytes/s, done.
Resolving deltas: 100% (93/93), done.
Checking connectivity... done.
下一个命令 cd ldid
执行,我现在在里面 /home/MYNAME/ldid
我运行下一个命令,但没有输出。
最后这是我怀疑错误的地方。我跑 ./make.sh
我得到了
+ g++ -o ldid ldid.cpp -I. -x c lookup2.c sha1.c
./make.sh: line 19: g++: command not found
我应该提到我在运行 Fedora 20-1 的虚拟机上。
按照建议我安装了 gcc & g++ 运行了 ./make.sh
仍然失败了
+ g++ -arch i386 -arch x86_64 -o ldid ldid.cpp -I. -x c lookup2.c sha1.c
g++: error: i386: No such file or directory
g++: error: x86_64: No such file or directory
g++: error: unrecognized command line option ‘-arch’
g++: error: unrecognized command line option ‘-arch’
git clone https://github.com/daeken/ldid.gitcd ./ldid./make.sh
我是一名优秀的程序员,十分优秀!